new DA for amplitude calibration
[u/mrichter/AliRoot.git] / T0 / AliT0CalibWalk.h
CommitLineData
a2ad8166 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////////////////////////////////////////////////
8f1790c4 8// class for T0 amplitude calibration //
a2ad8166 9////////////////////////////////////////////////
10
11#include "TNamed.h"
12#include "TGraph.h"
13#include "TObjArray.h"
14
15class 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
083f0bec 25 TGraph *GetWalk(Int_t ipmt ) const {return (TGraph*)fWalk.At(ipmt);}
a2ad8166 26 void SetWalk(Int_t ipmt) ;
c883fdf2 27 TObjArray* GetfWalk() {return &fWalk;}
28
29 TGraph *GetQTC(Int_t ipmt ) const {return (TGraph*)fQTC.At(ipmt);}
8f1790c4 30 Float_t GetQTCpar(Int_t channel, Int_t ipar) const
31 {return fQTCpar[channel][ ipar ];}
32 void SetQTCpar(Int_t channel,Int_t ipar, Float_t val)
33 {fQTCpar[channel][ipar]=val;}
34
c883fdf2 35 TGraph *GetAmpLED(Int_t ipmt ) const {return (TGraph*)fAmpLED.At(ipmt);}
8f1790c4 36 Float_t GetLEDpar(Int_t channel, Int_t ipar) const
37 {return fAmpLEDpar[channel][ ipar ];}
38 void SetAmpLEDpar(Int_t channel,Int_t ipar, Float_t val)
39 {fAmpLEDpar[channel][ipar]=val;}
c883fdf2 40
a2ad8166 41 void MakeWalkCorrGraph(const char *laserFile);
42
c883fdf2 43
a2ad8166 44
45 TGraph * GetAmpLEDRec(Int_t ipmt) const {return (TGraph*)fAmpLEDRec.At(ipmt);}
8f1790c4 46 void SetAmpLEDRec(Int_t ipmt) ;
a2ad8166 47
48 protected:
49
50 TObjArray fWalk; //time - amp. walk
8f1790c4 51 TObjArray fAmpLEDRec; //time - amp. LED-CFD for reconstruction
c883fdf2 52 TObjArray fQTC; //time - amp. walk
8f1790c4 53 TObjArray fAmpLED; //time - amp. LED-CFD for reconstruction
54 Float_t fQTCpar[24][2]; // fitted parameters QTC amplitude
55 Float_t fAmpLEDpar[24][2]; // fitted parameters fAmpLEDpar amplitude
c883fdf2 56
a2ad8166 57 //
8f1790c4 58 ClassDef(AliT0CalibWalk,4) // T0 Amplitude Calibration data
a2ad8166 59 };
60
61 typedef AliT0CalibWalk AliSTARTCalibWalk; // for backward compatibility
62
63#endif
64