1 #ifndef ALICTPTIMEPARAMS_H
2 #define ALICTPTIMEPARAMS_H
10 class AliCTPTimeParams : public TNamed {
14 virtual ~AliCTPTimeParams();
16 AliCTPTimeParams(const AliCTPTimeParams &timeparams);
17 AliCTPTimeParams& operator=(const AliCTPTimeParams& timeparams);
20 static AliCTPTimeParams* LoadCTPTimeParams(TString filename);
21 static AliCTPTimeParams* LoadCTPTimeParamsFromString(const char* timeparams);
22 Bool_t ProcessCTPTimeParamsLine(const char* line);
23 Bool_t WriteCTPTimeParamsOCDB();
24 Bool_t GetCTPTimeParamsDAQLog();
25 void AddInput( TString& inputName, UInt_t& inputLevel, UInt_t inputDelay, TString inputEdge );
26 void AddDelayL0L1L2(UInt_t delayL1L0, UInt_t delayL2L0);
27 virtual void Print(const Option_t* opt="") const;
31 UInt_t GetDelayL1L0() const { return fDelayL1L0; }
32 UInt_t GetDelayL2L0() const { return fDelayL2L0; }
33 /* UInt_t* GetDelayInputs() { return fDelayInputs; }
34 Bool_t* GetInputIndex() { return fInputIndex; }
35 UInt_t* GetInputLevel() { return fInputLevel; }*/
37 enum {kNMaxInputs = 60}; //CTP can manage up to 60 trigger detector inputs
41 TObjArray fCTPInputTimeParams;
43 UInt_t fInputDelay[kNMaxInputs];
44 Bool_t fInputFlag[kNMaxInputs];
45 UInt_t fInputLevel[kNMaxInputs];
46 TString fInputName[kNMaxInputs];
47 Char_t fInputEdge[kNMaxInputs];
49 static const TString fgkCTPTimeParamsFileName; //Name of file containing the CTPTimeParams
51 ClassDef( AliCTPTimeParams, 1 )