Event server (Mihai)
[u/mrichter/AliRoot.git] / STEER / STEER / AliCTPTimeParams.h
CommitLineData
fabd1b29 1#ifndef ALICTPTIMEPARAMS_H
2#define ALICTPTIMEPARAMS_H
3
d4b2dc5f 4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5* See cxx source for full Copyright notice */
6/* $Id$ */
fabd1b29 7
7330f0e5 8#include <TNamed.h>
9#include <TObjArray.h>
10#include "AliCTPInputTimeParams.h"
fabd1b29 11
12class TNamed;
13
14class AliCTPTimeParams : public TNamed {
15
16public:
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);
125fd567 27 void AddInput( TString& inputName, UInt_t& inputLevel, UInt_t inputDelay, TString inputEdge, UInt_t deltamin, UInt_t deltamax );
c7ff1a33 28 void AddDelayL0L1L2(Int_t delayL1L0, UInt_t delayL2L0);
fabd1b29 29 virtual void Print(const Option_t* opt="") const;
30 //Setters
31
32 //Getters
c7ff1a33 33 Int_t GetDelayL1L0() const { return fDelayL1L0; }
d4b2dc5f 34 UInt_t GetDelayL2L0() const { return fDelayL2L0; } const TObjArray* GetInputTimeParams() const { return &fCTPInputTimeParams; }
125fd567 35 AliCTPInputTimeParams* GetTimeParamsForInput(TString inputname);
926cebe1 36 Int_t GetDeltasforClass(TString classname,Int_t& deltamin,Int_t& deltamax);
37
fabd1b29 38 enum {kNMaxInputs = 60}; //CTP can manage up to 60 trigger detector inputs
39private:
c7ff1a33 40 Int_t fDelayL1L0;
fabd1b29 41 UInt_t fDelayL2L0;
42 TObjArray fCTPInputTimeParams;
fabd1b29 43
c7ff1a33 44 ClassDef( AliCTPTimeParams, 3 )
fabd1b29 45};
46
47#endif