]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIMUONPEDESTAL_H | |
2 | #define ALIMUONPEDESTAL_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | // $Id$ | |
8 | ||
9 | /// \ingroup calib | |
10 | /// \class AliMUONPedestal | |
11 | /// \brief Implementation of the pedestal computing | |
12 | /// | |
13 | // Author Alberto Baldisseri, JL Charvet | |
14 | ||
15 | #include <TObject.h> | |
16 | ||
17 | #include "AliMpConstants.h" | |
18 | ||
19 | class AliMUONVStore; | |
20 | ||
21 | class TTimeStamp; | |
22 | class THashTable; | |
23 | ||
24 | // global variables | |
25 | const Int_t kNChannels = AliMpConstants::ManuNofChannels(); | |
26 | const Int_t kADCMax = 4095; | |
27 | ||
28 | class AliMUONPedestal : public TObject | |
29 | { | |
30 | public: | |
31 | AliMUONPedestal(); | |
32 | virtual ~AliMUONPedestal(); | |
33 | ||
34 | /// | |
35 | void SetAliNEvents(Int_t events) {fNEvents = events;} | |
36 | /// | |
37 | void SetAliRunNumber(Int_t run) {fRunNumber = run;} | |
38 | /// | |
39 | void SetAliNChannel(Int_t nch) {fNChannel = nch;} | |
40 | /// | |
41 | void SetAlifilcout(ofstream* stream) {fFilcout = stream;} | |
42 | /// | |
43 | TTimeStamp* GetDate() {return fDate;} | |
44 | /// | |
45 | THashTable* GetErrorBuspatchTable() {return fErrorBuspatchTable;} | |
46 | /// | |
47 | Char_t* GetHistoFileName() {return fHistoFileName;} | |
48 | void MakePed(Int_t bp,Int_t manu,Int_t ch,Int_t charge); | |
49 | void MakePedStore(TString flatfile); | |
50 | TString WritePedData(Int_t bp, Int_t manu, Int_t ch, Double_t mean, Double_t sigma); | |
51 | TString WritePedHeader(); | |
52 | ||
53 | /// | |
54 | void SetprefixDA(char* folder) {sprintf(fprefixDA,"%s",folder);} | |
55 | /// | |
56 | void SetAliIndex(Int_t ind) {fIndex = ind;} | |
57 | ||
58 | protected: | |
59 | Int_t fNEvents; ///< | |
60 | Int_t fRunNumber; ///< | |
61 | Int_t fNChannel; ///< | |
62 | Int_t fNManu; ///< | |
63 | THashTable* fErrorBuspatchTable; ///< Table for buspatches with parity errors | |
64 | TTimeStamp* fDate; ///< | |
65 | ofstream* fFilcout; ///< | |
66 | Char_t fHistoFileName[256]; ///< | |
67 | AliMUONVStore* fPedestalStore; ///< | |
68 | Int_t fIndex; ///< | |
69 | Char_t fprefixDA[256]; ///< | |
70 | ||
71 | private: | |
72 | /// Not implemented | |
73 | AliMUONPedestal(const AliMUONPedestal& rhs); | |
74 | /// Not implemented | |
75 | AliMUONPedestal& operator = (const AliMUONPedestal& rhs); | |
76 | ||
77 | ClassDef(AliMUONPedestal,1) // | |
78 | }; | |
79 | ||
80 | #endif |