add external setter for MC parents list
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALSensorTemp.h
CommitLineData
60ea8d38 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
17class TObject;
18class TClonesArray;
19class TObjArray;
20class TGraph;
21class TVector3;
22class TFile;
23class TString;
24class TTimeStamp;
25
26
27////////////////////////////////////////////////////////////////////////
28// Class AliEMCALSensorTempSensors
29////////////////////////////////////////////////////////////////////////
30
8f79a6d7 31const TString kAmandaString = "PT_%02d.Temperature";
60ea8d38 32
33class AliEMCALSensorTemp : public AliDCSSensor {
34
35public:
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
55protected:
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