AliRoot Core  3dc7879 (3dc7879)
AliEMCALSensorTemp.h
Go to the documentation of this file.
1 #ifndef AliEMCALSENSORTEMP_H
2 #define AliEMCALSENSORTEMP_H
3 /* Copyright(c) 2006-07, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
26 
27 // ROOT system
28 #include "TMath.h"
29 #include "TTree.h"
30 
31 class TObject;
32 class TClonesArray;
33 class TObjArray;
34 class TGraph;
35 class TVector3;
36 class TFile;
37 class TString;
38 class TTimeStamp;
39 
40 // AliRoot system
41 #include "AliSplineFit.h"
42 #include "AliDCSSensor.h"
43 
44 const TString kAmandaString = "EMC_PT_%02d.Temperature";
45 
47 {
48 
49 public:
50 
53  virtual ~AliEMCALSensorTemp(){}
55 
56  Int_t GetSide() const { return fSide ; }
57  Int_t GetSector() const { return fSector ; }
58  Int_t GetNum() const { return fNum ; }
59 
60  void SetSide (Int_t side) { fSide = side ; }
61  void SetSector (Int_t sector) { fSector = sector ; }
62  void SetNum (Int_t num) { fNum = num ; }
63 
64 
65  static TClonesArray * ReadList(const char *fname,
66  const TString& amandaString = kAmandaString);
67  static TClonesArray * ReadTree(TTree *tree,
68  const TString& amandaString = kAmandaString);
69 
70 protected:
71 
72  // A SuperModule is defined in hardware land with a sector and a side index
73  Int_t fSide;
74  Int_t fSector;
75  Int_t fNum;
76 
78  ClassDef(AliEMCALSensorTemp,1) ;
80 
81 };
82 
83 #endif // AliEMCALSENSORTEMP_H
static TClonesArray * ReadList(const char *fname, const TString &amandaString=kAmandaString)
Read values from ascii file.
#define TObjArray
Int_t GetNum() const
Container class for temperature sensor positions.
Int_t GetSector() const
Int_t fNum
Number within a SuperModule: 8 sensors => index range 0-7.
Int_t fSide
EMCAL side; 0:Shaft Side (A) – 1:Muon Side (C)
Int_t fSector
Number of sector (0-5)
static TClonesArray * ReadTree(TTree *tree, const TString &amandaString=kAmandaString)
Read selected info from TTree.
TTree * tree
const TString kAmandaString
void SetSide(Int_t side)
void SetSector(Int_t sector)
Int_t GetSide() const
AliEMCALSensorTemp()
Default constructor.
char * fname
AliEMCALSensorTemp & operator=(const AliEMCALSensorTemp &source)
Assignment operator.
void SetNum(Int_t num)