BmnRoot
Loading...
Searching...
No Matches
CbmGeoSts.h
Go to the documentation of this file.
1#ifndef CBMGEOSTS_H
2#define CBMGEOSTS_H
3
4#include "FairGeoSet.h"
5
6class CbmGeoSts : public FairGeoSet {
7protected:
8 char modName[200]; // name of module
9 char eleName[200]; // substring for elements in module
10public:
11 CbmGeoSts();
13 const char* getModuleName(Int_t);
14 const char* getEleName(Int_t);
15 inline Int_t getModNumInMod(const TString&);
16 ClassDef(CbmGeoSts,0) // Class for STS
17};
18
19inline Int_t CbmGeoSts::getModNumInMod(const TString& name) {
20 // returns the module index from module name
21 return (Int_t)(name[3]-'0')-1;
22}
23
24#endif /* !CBMGEOSTS_H */
const char * getEleName(Int_t)
Definition CbmGeoSts.cxx:39
const char * getModuleName(Int_t)
Definition CbmGeoSts.cxx:25
char eleName[200]
Definition CbmGeoSts.h:9
Int_t getModNumInMod(const TString &)
Definition CbmGeoSts.h:19
char modName[200]
Definition CbmGeoSts.h:8