Line data Source code
1 : #ifndef AliT0CalibWalk_H
2 : #define AliT0CalibWalk_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 amplitude calibration //
9 : ////////////////////////////////////////////////
10 :
11 : #include "TNamed.h"
12 : #include "TGraph.h"
13 : #include "TObjArray.h"
14 :
15 : class AliT0CalibWalk: public TNamed {
16 :
17 : public:
18 : AliT0CalibWalk();
19 : AliT0CalibWalk(const char* name);
20 : AliT0CalibWalk(const AliT0CalibWalk &calibda);
21 : AliT0CalibWalk& operator= (const AliT0CalibWalk &calibda);
22 : virtual ~AliT0CalibWalk();
23 :
24 :
25 108 : TGraph *GetWalk(Int_t ipmt ) const {return (TGraph*)fWalk.At(ipmt);}
26 0 : TObjArray* GetfWalk() {return &fWalk;}
27 :
28 144 : TGraph *GetQTC(Int_t ipmt ) const {return (TGraph*)fQTC.At(ipmt);}
29 144 : TGraph *GetAmpLED(Int_t ipmt ) const {return (TGraph*)fAmpLED.At(ipmt);}
30 : Bool_t MakeWalkCorrGraph(const char *laserFile);
31 96 : TGraph * GetAmpLEDRec(Int_t ipmt) const {return (TGraph*)fAmpLEDRec.At(ipmt);}
32 : void GetMeanAndSigma(TH1F* hist, Float_t &mean, Float_t &sigma);
33 0 : void SetCalibByData(Bool_t calib) {fCalibByData=calib;}
34 : void SetWalk2015(TString filename);
35 : void SetWalkDima(TString filename);
36 : void SetWalkZero();
37 : protected:
38 :
39 : TObjArray fWalk; //time - amp. walk
40 : TObjArray fAmpLEDRec; //time - amp. LED-CFD for reconstruction
41 : TObjArray fQTC; //time - amp. walk
42 : TObjArray fAmpLED; //time - amp. LED-CFD for reconstruction
43 : Bool_t fCalibByData;
44 : //
45 44 : ClassDef(AliT0CalibWalk,6) // T0 Amplitude Calibration data
46 : };
47 :
48 : typedef AliT0CalibWalk AliSTARTCalibWalk; // for backward compatibility
49 :
50 : #endif
51 :
|