Put 0.1 as minimal value of the gas gain (Raphaelle)
[u/mrichter/AliRoot.git] / T0 / AliT0CalibTimeEq.h
CommitLineData
a2ad8166 1#ifndef AliT0CalibTimeEq_H
2#define AliT0CalibTimeEq_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7////////////////////////////////////////////////
8// class for T0 calibration //
9////////////////////////////////////////////////
10
11#include "TNamed.h"
12
13class AliT0CalibTimeEq: public TNamed {
14
15 public:
16 AliT0CalibTimeEq();
17 AliT0CalibTimeEq(const char* name);
18 AliT0CalibTimeEq(const AliT0CalibTimeEq &calibda);
19 AliT0CalibTimeEq& operator= (const AliT0CalibTimeEq &calibda);
20 virtual ~AliT0CalibTimeEq();
21 void Reset();
22
23 virtual void Print(Option_t* option= "") const;
a2ad8166 24
02888358 25 Bool_t ComputeOnlineParams(const char* filePhys);
a2ad8166 26 Float_t GetCFDvalue(Int_t channel,Int_t number) const {return fCFDvalue[channel][number];}
27 Float_t* GetCFDvalue() const {return (float*)fCFDvalue;}
28 Float_t GetTimeEq(Int_t channel) const {return fTimeEq[channel];}
29 Float_t* GetTimeEq() const {return (float*)fTimeEq;}
eef60a6a 30
31 Float_t GetTimeEqRms(Int_t channel) const {return fTimeEqRms[channel];}
32
548f30b4 33 Float_t GetMeanT0() const {return 1.;} // WARNING: USED IN AliT0Parameters!!!!
a2ad8166 34 void SetCFDvalue(Int_t channel, Int_t number, Float_t val) {fCFDvalue[channel][number]=val;}
35 void SetTimeEq(Int_t channel, Float_t val) {fTimeEq[channel]=val;}
eef60a6a 36 void SetTimeEqRms(Int_t channel, Float_t rms) { fTimeEqRms[channel]=rms;}
8bfd9a3e 37
b95e8d87 38 void SetMeanVertex(Float_t mean=0) { fMeanVertex = mean; };
39 Float_t GetMeanVertex () {return fMeanVertex;};
40
eef60a6a 41 void SetRmsVertex(Float_t rms=0) { fRmsVertex = rms; };
42 Float_t GetRmsVertex () {return fRmsVertex;};
a2ad8166 43
44 protected:
45
a2ad8166 46 Float_t fCFDvalue[24][5]; // CFD values
47 Float_t fTimeEq[24]; // Time Equalized for OCDB
eef60a6a 48 Float_t fTimeEqRms[24]; // RMS of Time Equalized for OCDB
49 Float_t fMeanVertex; // mean of vertex distribution
50 Float_t fRmsVertex; // RMS of vertex distribution
a2ad8166 51 //
eef60a6a 52 ClassDef(AliT0CalibTimeEq,4) // T0 Sensor Calibration data
a2ad8166 53};
54
55typedef AliT0CalibTimeEq AliSTARTCalibTimeEq; // for backward compatibility
56
57#endif
58