calibration Zposition of vertex added
[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
700e6b36 25 void 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;}
59b8a5fc 30 const Float_t GetMeanT0() const {return 1.;} // WARNING: USED IN AliT0Parameters!!!!
a2ad8166 31 void SetCFDvalue(Int_t channel, Int_t number, Float_t val) {fCFDvalue[channel][number]=val;}
32 void SetTimeEq(Int_t channel, Float_t val) {fTimeEq[channel]=val;}
8bfd9a3e 33
b95e8d87 34 void SetMeanVertex(Float_t mean=0) { fMeanVertex = mean; };
35 Float_t GetMeanVertex () {return fMeanVertex;};
36
a2ad8166 37
38 protected:
39
a2ad8166 40 Float_t fCFDvalue[24][5]; // CFD values
41 Float_t fTimeEq[24]; // Time Equalized for OCDB
b95e8d87 42 Float_t fMeanVertex;
a2ad8166 43 //
b95e8d87 44 ClassDef(AliT0CalibTimeEq,3) // T0 Sensor Calibration data
a2ad8166 45};
46
47typedef AliT0CalibTimeEq AliSTARTCalibTimeEq; // for backward compatibility
48
49#endif
50