T0calib lib added
[u/mrichter/AliRoot.git] / T0 / AliT0CalibSeasonTimeShift.h
CommitLineData
455957bc 1#ifndef AliT0CalibSeasonTimeShift_H
2#define AliT0CalibSeasonTimeShift_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"
cd8ca88e 12class TH1F;
455957bc 13class AliT0CalibSeasonTimeShift: public TNamed {
14
15 public:
16 AliT0CalibSeasonTimeShift();
17 AliT0CalibSeasonTimeShift(const char* name);
18 AliT0CalibSeasonTimeShift(const AliT0CalibSeasonTimeShift &calibda);
19 AliT0CalibSeasonTimeShift & operator= (const AliT0CalibSeasonTimeShift &calibda);
20 virtual ~AliT0CalibSeasonTimeShift();
21 virtual void Print(Option_t* option= "") const;
22 Float_t MeanAC() const {return fMeanPar[0];}
23 Float_t MeanA() const {return fMeanPar[1];}
24 Float_t MeanC() const {return fMeanPar[2];}
25 Float_t T0resolution() const {return fMeanPar[3];}
26
27 Float_t SigmaAC() const {return fSigmaPar[0];}
28 Float_t SigmaA() const {return fSigmaPar[01];}
29 Float_t SigmaC() const {return fSigmaPar[2];}
30 Float_t SigmaT0resolution() const {return fSigmaPar[3];}
31 Float_t *GetT0Means() { return fMeanPar;}
32 Float_t *GetT0Sigmas() { return fSigmaPar;};
33
cd8ca88e 34 Bool_t SetT0Par(Float_t par[4],Float_t spar[4] );
32d3e409 35 Int_t SetT0Par(const char* filePhys , Float_t *cdbtime);
b0ab3f59 36
cd8ca88e 37 void GetMeanAndSigma(TH1F* hist, Float_t &mean, Float_t &sigma);
38
455957bc 39 protected:
40 Float_t fMeanPar[4];
41// [0] (T0A+T0C)/2;
42// [1] T0A corrected by primary vertex
43// [2] T0A corrected by primary vertex
44// [3] T0resolution
45 Float_t fSigmaPar[4];
46// [0] sigma (T0A+T0C)/2;
47// [1] sigma T0A corrected by primary vertex
48// [2]sigma T0A corrected by primary vertex
49// [3]sigma T0resolution
50
51
52 ClassDef(AliT0CalibSeasonTimeShift,1) // T0 Sensor Calibration data
53};
54
55
56#endif
57