]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - T0/AliT0Parameters.h
new method to retrieve the QAbit set. Requested by AMORE.
[u/mrichter/AliRoot.git] / T0 / AliT0Parameters.h
index f51a59fb3d629e5b0be665b5217683219fcdb96a..2a2282f1712da64275052dd894ac7295b3bb86ac 100644 (file)
@@ -3,7 +3,7 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
  * reserved. 
  *
- * Latest changes by Christian Holm Christensen <cholm@nbi.dk>
+ * Alla Maevskaya INR RAS alla@inr.ru
  *
  * See cxx source for full Copyright notice                               
  */
@@ -21,6 +21,8 @@
 #include <TObjArray.h>
 class AliT0CalibData;
 class AliCDBEntry;
+class AliT0CalibWalk;
+class AliT0CalibTimeEq;
 
 class AliT0Parameters : public TNamed
 {
@@ -45,7 +47,7 @@ public:
   void SetPMTeff(Int_t ipmt);  
 
   void SetTimeDelayTVD(Float_t r=150)   { fTimeDelayTVD = r; };
-  Float_t GetTimeDelayTVD()   { return fTimeDelayTVD; }
+  Float_t GetTimeDelayTVD() const   { return fTimeDelayTVD; }
 
  
   // Get `Fixed' various parameters
@@ -67,21 +69,23 @@ public:
 
 
   TGraph *  GetAmpLEDRec(Int_t ipmt) const;  
   TGraph *GetWalk(Int_t ipmt )  const;
-  Float_t  GetWalkVal(Int_t ipmt, Float_t mv ) const ;
+  TGraph *GetQTC(Int_t ipmt) const;
+  TGraph *GetAmpLED(Int_t ipmt) const;
    
   Float_t GetTimeDelayCFD(Int_t ipmt);
-  Float_t GetTimeDelayDA(Int_t ipmt);
+//  Float_t GetTimeV0(Int_t ipmt = 512) {return  fTimeV0;}
 
-  //  void SetMeanT0(Int_t mean=500) { fMeanT0 = mean; };
-  Int_t GetMeanT0 (); //{return fMeanT0;};
+  void SetMeanT0(Float_t mean=512) { fMeanT0 = mean; };
+  Float_t GetMeanT0 () {return fMeanT0;};
+  void SetMeanVertex(Float_t mean=0) { fMeanVertex = mean; };
+   Float_t GetMeanVertex ();
 
-    TMap * GetMapLookup();
+  TMap * GetMapLookup();
   Int_t GetChannel(Int_t trm,  Int_t tdc, Int_t chain, Int_t channel);
   Int_t GetNumberOfTRMs();
   void SetNumberOfTRMs(Int_t ntrms=2) {fNumberOfTRMs = ntrms;}
-
+  
  protected:
   static AliT0Parameters* fgInstance; // Static singleton instance
   
@@ -96,19 +100,23 @@ public:
   TObjArray fAmpLEDRec;  // array of amlitude vs LED-CFD (simulation & reconstruction)
   TObjArray fPMTeff; //array PMT registration efficiency
   TObjArray fWalk; //array time-amplitude walk
+  TObjArray fQTC; //array of TGraphs for QTC vs number of MIPs
+  TObjArray fAmpLED; //array of TGraphs for LED-CFD vs number of MIPs
+
   
-  Float_t   fTimeDelayDA;  //  sum time delay for LED channel
   Float_t   fTimeDelayCFD;  // sum time delay for CFD channel
+ // Float_t   fTimeV0;  // sum time delay for CFD channel
   Float_t   fTimeDelayTVD;  //time delay for TVD (vertex trigger channel)
-  Int_t     fMeanT0; //mean of T0distribution with vertex=0;
+  Float_t     fMeanT0; //mean of T0distribution with vertex=0;
+  Float_t     fMeanVertex; // mean of vertex distribution;
   
   TMap      fLookUp;           //lookup table
   Int_t     fNumberOfTRMs;    // number of TRMs in setup
   
 
-  static AliT0CalibData * fgCalibData; // singleton for Calibration data
+  static AliT0CalibTimeEq * fgCalibData; // singleton for Calibration data
   static AliT0CalibData * fgLookUp; // singleton for Calibration data
-  static AliT0CalibData * fgSlewCorr; // singleton for Calibration data
+  static AliT0CalibWalk * fgSlewCorr; // singleton for Calibration data
   
   AliCDBEntry*   fCalibentry ;  // pointer to T0 calibration object
   AliCDBEntry*   fLookUpentry ;  // pointer to T0 lokkup table
@@ -118,7 +126,7 @@ public:
   AliT0Parameters(const  AliT0Parameters&);
   AliT0Parameters& operator=(const AliT0Parameters&);
   
-  ClassDef(AliT0Parameters,4)
+  ClassDef(AliT0Parameters,5)
  
 };