For rare clusters with equal charge pads do just CoG().
[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////////////////////////////////////////////////
8// class for T0 calibration //
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 Float_t GetWalkVal(Int_t ipmt, Float_t mv ) const {return ((TGraph*)fWalk.At(ipmt))->Eval(mv);}
27 void SetWalk(Int_t ipmt) ;
28 void MakeWalkCorrGraph(const char *laserFile);
29
30
31 TGraph * GetAmpLEDRec(Int_t ipmt) const {return (TGraph*)fAmpLEDRec.At(ipmt);}
32 Float_t GetAmpLEDRecVal(Int_t ipmt, Float_t mv) const
33 {return((TGraph*)fAmpLEDRec.At(ipmt))->Eval(mv);}
34 void SetAmpLEDRec(Int_t ipmt) ;
6b7d32f7 35 TObjArray* GetfWalk() {return &fWalk;}
a2ad8166 36
37 protected:
38
39 TObjArray fWalk; //time - amp. walk
40 TObjArray fAmpLEDRec; //time - amp. LED-CFD for reconstruction
41
42 //
43 ClassDef(AliT0CalibWalk,1) // T0 Sensor Calibration data
44 };
45
46 typedef AliT0CalibWalk AliSTARTCalibWalk; // for backward compatibility
47
48#endif
49