]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCSensorTemp.h
Changing internal representation of the corrections
[u/mrichter/AliRoot.git] / TPC / AliTPCSensorTemp.h
1 #ifndef AliTPCSensorTemp_H
2 #define AliTPCSensorTemp_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 AliTPCSensorTempSensors
29 ////////////////////////////////////////////////////////////////////////
30
31 const TString kAmandaString = "tpc_temp:PT_%d.Temperature";
32
33 class AliTPCSensorTemp : public AliDCSSensor {
34
35 public:
36   AliTPCSensorTemp();
37   AliTPCSensorTemp(const AliTPCSensorTemp& source);
38   virtual ~AliTPCSensorTemp(){}
39   AliTPCSensorTemp& operator=(const AliTPCSensorTemp& source);
40   
41   Int_t       GetType()   const {return fType;   }
42   Int_t       GetSide()   const {return fSide;   }
43   Int_t       GetSector() const {return fSector;         }
44   Int_t       GetNum()    const {return fNum;    }
45
46   void SetType   (Int_t type)      {fType   = type;   }
47   void SetSide   (Int_t side)      {fSide   = side;      }
48   void SetSector (Int_t sector)    {fSector = sector;}
49   void SetNum    (Int_t num)       {fNum    = num;   }
50
51
52   static TClonesArray * ReadList(const char *fname,
53                                  const TString& amandaString = kAmandaString);
54   static TClonesArray * ReadTree(TTree *tree, 
55                                  const TString& amandaString = kAmandaString);
56
57 protected:
58   Int_t fType;      // Position of sensors on fieldcage
59                     //  (0=ROC,1=OFC,2=IFC,3=TPC,4=ELM,5=TS,6=COOL)
60   Int_t fSide;      // TPC side; 0:Shaft Side (A) -- 1:Muon Side (C)
61   Int_t fSector;    // Number of sector             (0-17)
62   Int_t fNum;       // Position depands from type of sensor.
63                     //    fType=0(0-4) from inside to outside
64                     //    fType=1(0-5) fom A side to C side
65                     //    fType=2(0-5) fom A side to C side
66                     //    fType=3(0)   one per sector 
67                     //    fType=4()
68                     //    fType=5()
69                     //  fType=6(0-1) 0:input -- 1:output
70
71
72   ClassDef(AliTPCSensorTemp,1)
73 };
74 #endif