Number of sigma pedestal cut increased to 4
[u/mrichter/AliRoot.git] / STEER / AliCTPTimeParams.h
1 #ifndef ALICTPTIMEPARAMS_H
2 #define ALICTPTIMEPARAMS_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6 /* $Id$ */
7
8 #include<TNamed.h>
9 #include<TObjArray.h>
10 #include<AliCTPInputTimeParams.h>
11
12 class TNamed;
13
14 class AliCTPTimeParams : public TNamed {
15
16 public:
17                         AliCTPTimeParams();
18               virtual   ~AliCTPTimeParams();
19         
20                         AliCTPTimeParams(const AliCTPTimeParams &timeparams);
21       AliCTPTimeParams& operator=(const AliCTPTimeParams& timeparams);          
22
23              
24         static AliCTPTimeParams* LoadCTPTimeParams(TString filename);   
25         static AliCTPTimeParams* LoadCTPTimeParamsFromString(const char* timeparams);
26                 Bool_t ProcessCTPTimeParamsLine(const char* line);
27                   void AddInput( TString& inputName, UInt_t& inputLevel, UInt_t inputDelay, TString inputEdge, UInt_t deltamin, UInt_t deltamax );
28                   void AddDelayL0L1L2(Int_t delayL1L0, UInt_t delayL2L0);
29           virtual void Print(const Option_t* opt="") const;
30                 //Setters
31
32                 //Getters
33                 Int_t   GetDelayL1L0()   const { return fDelayL1L0; }
34                 UInt_t  GetDelayL2L0()   const { return fDelayL2L0; }                  const TObjArray* GetInputTimeParams() const { return &fCTPInputTimeParams; }
35       AliCTPInputTimeParams* GetTimeParamsForInput(TString inputname);
36       Int_t GetDeltasforClass(TString classname,Int_t& deltamin,Int_t& deltamax);
37
38                 enum {kNMaxInputs = 60}; //CTP can manage up to 60 trigger detector inputs
39 private:
40                         Int_t  fDelayL1L0;
41                         UInt_t fDelayL2L0;
42                         TObjArray fCTPInputTimeParams;
43
44   ClassDef( AliCTPTimeParams, 3 ) 
45 };
46
47 #endif