]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliCTPTimeParams.h
Fix for memory leaks in digits TClonesArrays (Matevz)
[u/mrichter/AliRoot.git] / STEER / AliCTPTimeParams.h
index d88a411199c376d331bf69c36eee225f14483db5..e06d5e177f3dcc421c78f6f6bc4aefd7ac840844 100644 (file)
@@ -1,9 +1,13 @@
 #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;
 
@@ -20,35 +24,24 @@ public:
        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