23 static Int_t volidmax = 0;
26 if ((Int_t)
fHash.size()<volidmax)
28 fHash.resize(volidmax);
29 for(i=0;i<
fHash.size();i++)
34 if (
fHash[volId]==NULL)
59 Fatal(
"CreateModule",
"All modules in hcal should have type 1");
70 : TNamed(
"hcalStructure",
"Hadron calorimeter structure"),
111 number=(i*100+j)*100;
118 Info(
"Construct()",
"Calorimeter matrix created.");
121 list<hcalModule*> neib;
122 vector<hcalModule*> cl;
123 vector<hcalModule*>::const_iterator pcl;
181 list<hcalModule*>::const_iterator p=
fModules.begin();
185 (*p)->ResetEnergyFast();
202 Int_t cellx = mnum/100;
203 Int_t celly = mnum%100;
204 mnum =
GetNum(cellx, celly);
209 if (module==NULL)
return;
210 x=
module->GetCenterX();
211 y=
module->GetCenterY();
222 Int_t cellx = mnum/100;
223 Int_t celly = mnum%100;
224 mnum =
GetNum(cellx, celly);
Double_t GetModuleSize() const
char GetType(Int_t x, Int_t y) const
std::vector< hcalModule * > fStructure
hcalModule * GetModule(Float_t x, Float_t y) const
hcalModule * CreateModule(char type, Int_t number, Float_t x1, Float_t y1, Float_t x2, Float_t y2)
void GetHitXY(const Int_t hitId, Float_t &x, Float_t &y) const
std::vector< hcalModule * > fHash
Int_t GetNum(Int_t x, Int_t y) const
std::list< hcalModule * > fModules
hcalStructure(hcalInf *hcalinf)
Int_t GetNumber(Int_t x, Int_t y) const
hcalModule * GetHitModule(const Int_t hitId) const
static Bool_t GetCellCoordInf(Int_t fVolumeID, Float_t &x, Float_t &y, Int_t §ion)