#ifndef HGEOTOF_H #define HGEOTOF_H #include "FairGeoSet.h" #include "TString.h" class HGeoTof : public FairGeoSet { protected: char keepinName[5]; // name of Tofino keepin volume char modName[6]; // name of module char eleName[4]; // substring for elements in module public: HGeoTof(); ~HGeoTof() {} 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&); Bool_t replaceTofKeepin(); ClassDef(HGeoTof,0) // Class for Tof }; #endif /* !HGEOTOF_H */ inline Int_t HGeoTof::getSecNumInMod(const TString& name) { // returns the sector index retrieved from TxxFx return (Int_t)(name[4]-'0')-1; } inline Int_t HGeoTof::getModNumInMod(const TString& name) { // returns the module index retrieved from TxxFx Int_t m=(Int_t)(name[1]-'0')*10+(Int_t)(name[2]-'0'); return (m<=22) ? (22-m) : (m-15); }