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 */
7 ////////////////////////////////////////////////////////////////////////////
8 // Container class for temperature sensor positions
9 ////////////////////////////////////////////////////////////////////////////
13 #include "AliSplineFit.h"
14 #include "AliDCSSensor.h"
27 ////////////////////////////////////////////////////////////////////////
28 // Class AliEMCALSensorTempSensors
29 ////////////////////////////////////////////////////////////////////////
31 const TString kAmandaString = "PT_%02d.Temperature";
33 class AliEMCALSensorTemp : public AliDCSSensor {
37 AliEMCALSensorTemp(const AliEMCALSensorTemp& source);
38 virtual ~AliEMCALSensorTemp(){}
39 AliEMCALSensorTemp& operator=(const AliEMCALSensorTemp& source);
41 Int_t GetSide() const {return fSide; }
42 Int_t GetSector() const {return fSector; }
43 Int_t GetNum() const {return fNum; }
45 void SetSide (Int_t side) {fSide = side; }
46 void SetSector (Int_t sector) {fSector = sector;}
47 void SetNum (Int_t num) {fNum = num; }
50 static TClonesArray * ReadList(const char *fname,
51 const TString& amandaString = kAmandaString);
52 static TClonesArray * ReadTree(TTree *tree,
53 const TString& amandaString = kAmandaString);
56 // A SuperModule is defined in hardware land with a sector and a side index
57 Int_t fSide; // EMCAL side; 0:Shaft Side (A) -- 1:Muon Side (C)
58 Int_t fSector; // Number of sector (0-5)
59 Int_t fNum; // Number within a SuperModule: 8 sensors => index range 0-7
61 ClassDef(AliEMCALSensorTemp,1)