]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALSensorTemp.h
new non linearity function and parameters for latest simulations with better agreemen...
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALSensorTemp.h
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
6
7 ////////////////////////////////////////////////////////////////////////////
8 //              Container class for temperature sensor positions            
9 ////////////////////////////////////////////////////////////////////////////
10
11
12 #include "TMath.h"
13 #include "AliSplineFit.h"
14 #include "AliDCSSensor.h"
15 #include "TTree.h"
16
17 class TObject;
18 class TClonesArray;
19 class TObjArray;
20 class TGraph;
21 class TVector3;
22 class TFile;
23 class TString;
24 class TTimeStamp;
25
26
27 ////////////////////////////////////////////////////////////////////////
28 //              Class AliEMCALSensorTempSensors
29 ////////////////////////////////////////////////////////////////////////
30
31 const TString kAmandaString = "PT_%02d.Temperature";
32
33 class AliEMCALSensorTemp : public AliDCSSensor {
34
35 public:
36   AliEMCALSensorTemp();
37   AliEMCALSensorTemp(const AliEMCALSensorTemp& source);
38   virtual ~AliEMCALSensorTemp(){}
39   AliEMCALSensorTemp& operator=(const AliEMCALSensorTemp& source);
40   
41   Int_t       GetSide()   const {return fSide;   }
42   Int_t       GetSector() const {return fSector;         }
43   Int_t       GetNum()    const {return fNum;    }
44
45   void SetSide   (Int_t side)      {fSide   = side;      }
46   void SetSector (Int_t sector)    {fSector = sector;}
47   void SetNum    (Int_t num)       {fNum    = num;   }
48
49
50   static TClonesArray * ReadList(const char *fname,
51                                  const TString& amandaString = kAmandaString);
52   static TClonesArray * ReadTree(TTree *tree, 
53                                  const TString& amandaString = kAmandaString);
54
55 protected:
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
60
61   ClassDef(AliEMCALSensorTemp,1)
62 };
63 #endif