#ifndef ALICTPTIMEPARAMS_H
#define ALICTPTIMEPARAMS_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+* See cxx source for full Copyright notice */
+/* $Id$ */
#include<TNamed.h>
#include<TObjArray.h>
+#include<AliCTPInputTimeParams.h>
class TNamed;
static AliCTPTimeParams* LoadCTPTimeParams(TString filename);
static AliCTPTimeParams* LoadCTPTimeParamsFromString(const char* timeparams);
Bool_t ProcessCTPTimeParamsLine(const char* line);
- Bool_t WriteCTPTimeParamsOCDB();
- Bool_t GetCTPTimeParamsDAQLog();
- void AddInput( TString& inputName, UInt_t& inputLevel, UInt_t inputDelay, TString inputEdge );
+ void AddInput( TString& inputName, UInt_t& inputLevel, UInt_t inputDelay, TString inputEdge, UInt_t deltamin, UInt_t deltamax );
void AddDelayL0L1L2(UInt_t delayL1L0, UInt_t delayL2L0);
virtual void Print(const Option_t* opt="") const;
//Setters
//Getters
- UInt_t GetDelayL1L0() const { return fDelayL1L0; }
- UInt_t GetDelayL2L0() const { return fDelayL2L0; }
-/* UInt_t* GetDelayInputs() { return fDelayInputs; }
- Bool_t* GetInputIndex() { return fInputIndex; }
- UInt_t* GetInputLevel() { return fInputLevel; }*/
+ UInt_t GetDelayL1L0() const { return fDelayL1L0; }
+ UInt_t GetDelayL2L0() const { return fDelayL2L0; } const TObjArray* GetInputTimeParams() const { return &fCTPInputTimeParams; }
+ AliCTPInputTimeParams* GetTimeParamsForInput(TString inputname);
+ Int_t GetDeltasforClass(TString classname,Int_t& deltamin,Int_t& deltamax);
enum {kNMaxInputs = 60}; //CTP can manage up to 60 trigger detector inputs
private:
UInt_t fDelayL1L0;
UInt_t fDelayL2L0;
TObjArray fCTPInputTimeParams;
-/*
- UInt_t fInputDelay[kNMaxInputs];
- Bool_t fInputFlag[kNMaxInputs];
- UInt_t fInputLevel[kNMaxInputs];
- TString fInputName[kNMaxInputs];
- Char_t fInputEdge[kNMaxInputs];
-*/
- static const TString fgkCTPTimeParamsFileName; //Name of file containing the CTPTimeParams
-
- ClassDef( AliCTPTimeParams, 1 )
+
+ ClassDef( AliCTPTimeParams, 2 )
};
#endif