#ifndef CBMRUTHERFORDGEO_H #define CBMRUTHERFORDGEO_H #include "FairGeoSet.h" // for FairGeoSet #include "Rtypes.h" // for Int_t, etc #include "TString.h" // for TString class FairRutherfordGeo : public FairGeoSet { protected: char modName[20]; // name of module char eleName[20]; // substring for elements in module public: FairRutherfordGeo(); ~FairRutherfordGeo() {} const char* getModuleName(Int_t); const char* getEleName(Int_t); inline Int_t getModNumInMod(const TString&); ClassDef(FairRutherfordGeo,1) }; inline Int_t FairRutherfordGeo::getModNumInMod(const TString& name) { /** returns the module index from module name ?? in name[??] has to be the length of the detector name in the .geo file. For example if all nodes in this file starts with newdetector ?? has to be 11. */ return (Int_t)(name[10]-'0')-1; // } #endif