//*-- AUTHOR : Ilse Koenig //*-- Created : 10/11/2003 //_HADES_CLASS_DESCRIPTION ///////////////////////////////////////////////////////////// // HGeomShower // // Class for geometry of SHOWER // ///////////////////////////////////////////////////////////// #include "hgeomshower.h" #include "hgeomshowerhit.h" ClassImp(HGeomShower) HGeomShower::HGeomShower() { // Constructor fName="shower"; maxSectors=6; maxKeepinVolumes=1; maxModules=3; pHit=new HGeomShowerHit(this); } const Char_t* HGeomShower::getKeepinName(Int_t s,Int_t) { // Returns the name of the keepin volume in sector s Char_t tmp[50]; sprintf(tmp,"%i",s+1); sprintf(keepinName,"SHK%.1s",tmp); return keepinName; } const Char_t* HGeomShower::getModuleName(Int_t m) { // Returns the name of module m Char_t tmp[50]; sprintf(tmp,"%i",m+1); sprintf(modName,"SH%.1sM",tmp); return modName; } const Char_t* HGeomShower::getEleName(Int_t m) { // Returns the element name in module m Char_t tmp[50]; sprintf(tmp,"%i",m+1); sprintf(eleName,"S%.1s",tmp); return eleName; }