#ifndef HGEOSHOWER_H #define HGEOSHOWER_H #include "FairGeoSet.h" #include "TString.h" class HGeoShower : public FairGeoSet { protected: char keepinName[5]; // name of Shower keepin volume char modName[6]; // name of module char eleName[3]; // substring for elements in module public: HGeoShower(); ~HGeoShower() {} const char* getKeepinName(Int_t,Int_t); const char* getModuleName(Int_t); const char* getEleName(Int_t); Int_t getSecNumInMod(const TString&); Int_t getModNumInMod(const TString&); ClassDef(HGeoShower,0) // Class for Shower }; #endif /* !HGEOSHOWER_H */ inline Int_t HGeoShower::getSecNumInMod(const TString& name) { // returns the sector index retrieved from SHxMx return (Int_t)(name[4]-'0')-1; } inline Int_t HGeoShower::getModNumInMod(const TString& name) { // returns the sector index retrieved from SHxMx return (Int_t)(name[2]-'0')-1; }