AliRoot Core  3dc7879 (3dc7879)
AliEMCALCalibTime.h
Go to the documentation of this file.
1 #ifndef ALIEMCALCALIBTIME_H
2 #define ALIEMCALCALIBTIME_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 //_________________________________________________________________________
19 
20 #include "TNamed.h"
21 #include "AliEMCALGeoParams.h"
22 
23 class AliEMCALCalibTime: public TNamed {
24 
25  public:
26 
28 
29  AliEMCALCalibTime(const char* name);
30 
31  AliEMCALCalibTime(const AliEMCALCalibTime &calibti);
32 
34 
35  virtual ~AliEMCALCalibTime() { ; }
36 
37  void Reset();
38 
39  void Print(Option_t *option = "") const;
40 
41  // Setters and getters,
42  // all indexes start from 0!
43 
44  Float_t GetTimeChannel(Int_t supermodule, Int_t column, Int_t row, Int_t bc) const
45  { return fTimeChannel[supermodule][column][row][bc] ; }
46 
47  Float_t GetTimeChannelDecal(Int_t supermodule, Int_t column, Int_t row) const
48  { return fTimeChannelDecal[supermodule][column][row] ; }
49 
50  void SetTimeChannel(Int_t supermodule, Int_t column, Int_t row, Int_t bc, Float_t value)
51  { fTimeChannel[supermodule][column][row][bc] = value ; }
52 
53  void SetTimeChannelDecal(Int_t supermodule, Int_t column, Int_t row, Float_t value)
54  { fTimeChannelDecal[supermodule][column][row] = value ; }
55 
59  static const int fgkECALDCALModules = 22;
60 
61  protected:
62 
65 
68 
70  ClassDef(AliEMCALCalibTime,1) ;
72 
73 };
74 
75 #endif // ALIEMCALCALIBTIME_H
void Print(Option_t *option="") const
Print tables.
Float_t fTimeChannel[fgkECALDCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows][4]
time shift (ns) of one ADC channel ([mod][col][row][bunch crossing number])
static const int fgkEMCALRows
Number of rows per module for EMCAL.
void Reset()
Set all channels to 0.
void SetTimeChannel(Int_t supermodule, Int_t column, Int_t row, Int_t bc, Float_t value)
AliEMCALCalibTime & operator=(const AliEMCALCalibTime &calibti)
Assignment operator.
Float_t GetTimeChannelDecal(Int_t supermodule, Int_t column, Int_t row) const
Cell time shifts container class.
static const int fgkEMCALCols
Number of columns per module for EMCAL.
static const int fgkECALDCALModules
void SetTimeChannelDecal(Int_t supermodule, Int_t column, Int_t row, Float_t value)
Float_t GetTimeChannel(Int_t supermodule, Int_t column, Int_t row, Int_t bc) const
virtual ~AliEMCALCalibTime()
Float_t fTimeChannelDecal[fgkECALDCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows]
time shift (ns) of one ADC channel ([mod][col][row])
AliEMCALCalibTime()
Default constructor.