#ifndef HGEOSECTORS_H #define HGEOSECTORS_H #include "FairGeoSet.h" #include "TString.h" class HGeoMedia; class HGeoSectors : public FairGeoSet { protected: char modName[5]; // name of sector public: HGeoSectors(); ~HGeoSectors() {} const char* getModuleName(Int_t); Int_t getModNumInMod(const TString&); Bool_t read(fstream&,FairGeoMedia*); ClassDef(HGeoSectors,0) // Class for Sectors }; #endif /* !HGEOSECTORS_H */ inline Int_t HGeoSectors::getModNumInMod(const TString& name) { // returns the sector index retrieved from SECx return (Int_t)(name[3]-'0')-1; }