48 if (&source ==
this)
return *
this;
59 const TString& amandaString)
61 TTree *
tree =
new TTree(
"asci",
"asci");
62 tree->ReadFile(fname,
"");
63 TClonesArray *arr =
ReadTree(tree, amandaString);
72 const TString& amandaString)
74 Int_t nentries = tree->GetEntries();
85 tree->SetBranchAddress(
"Sensor",&sensor);
86 tree->SetBranchAddress(
"Side",&side);
87 tree->SetBranchAddress(
"Sec",§or);
88 tree->SetBranchAddress(
"Num",&num);
89 tree->SetBranchAddress(
"ECha",&echa);
97 TClonesArray *
array =
new TClonesArray(
"AliEMCALSensorTemp",nentries);
99 for (Int_t isensor=0; isensor<nentries; isensor++)
102 tree->GetEntry(isensor);
107 TString stringID = Form (amandaString.Data(),echa);
110 if (side[0]==
'C') temp->
SetSide(1);
static TClonesArray * ReadList(const char *fname, const TString &amandaString=kAmandaString)
Read values from ascii file.
Container class for temperature sensor positions.
void SetStringID(const TString &stringID)
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.
void SetIdDCS(Int_t iddcs)
void SetSector(Int_t sector)
AliEMCALSensorTemp()
Default constructor.
AliEMCALSensorTemp & operator=(const AliEMCALSensorTemp &source)
Assignment operator.