]> git.uio.no Git - u/mrichter/AliRoot.git/blob - VZERO/AliVZERODataFEE.h
Implementation of Trigger simulation (Raphael Tieulent)
[u/mrichter/AliRoot.git] / VZERO / AliVZERODataFEE.h
1 #ifndef ALIVZERODATAFEE_H
2 #define ALIVZERODATAFEE_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4  * reserved. 
5  *
6  * See cxx source for full Copyright notice                               
7  */
8 class TMap;
9
10 #include <TObject.h>
11 #include <TString.h>
12 #include <TMap.h>
13
14 class AliVZERODataFEE : public TObject {
15 public:
16         //enum {kNAliases=64};
17         AliVZERODataFEE();
18         AliVZERODataFEE(Int_t nRun, UInt_t startTime, UInt_t endTime);
19         AliVZERODataFEE(const AliVZERODataFEE &dataFEE);
20         AliVZERODataFEE& operator= (const AliVZERODataFEE &dataFEE);
21         virtual ~AliVZERODataFEE();
22         
23         void SetRun(Int_t run) {fRun = run;}
24         void SetStartTime(Int_t startTime) {fStartTime = startTime;}
25         void SetEndTime(Int_t endTime) {fEndTime = endTime;}
26         Int_t GetRun() const {return fRun;}
27         Int_t GetStartTime() const {return fStartTime;}
28         Int_t GetEndTime() const {return fEndTime;}
29
30         void ProcessData(TMap& aliasMap);
31         void Init();
32         void PrintAliases();
33         
34         TMap * GetParameters() const {return fParameters;};
35         
36         enum { kNCIUBoards = 8, kNCIUParam = 13, kNChannelParam = 8, kNCCIUParam = 19, kNAliases  = kNChannelParam*8*kNCIUBoards +kNCIUParam*kNCIUBoards + kNCCIUParam };
37
38 private:
39
40         Int_t fRun;       // Run number
41         Int_t fStartTime; // Start time
42         Int_t fEndTime;   // End time
43         TString fAliasNames[kNAliases]; // aliases for DCS data
44         Bool_t fIsProcessed; // bool to know processing status
45
46         TString GetFEEParamName(Int_t iParam);
47         
48         TMap * fParameters;
49         
50         ClassDef( AliVZERODataFEE, 1 )  
51         
52 };
53
54
55 #endif // ALIVZERODATAFEE_H