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