FairRoot/PandaRoot
PndGeoFts.h
Go to the documentation of this file.
1 #ifndef PNDGEOFTS_H
2 #define PNDGEOFTS_H
3 
4 #include "FairGeoSet.h"
5 
6 class PndGeoFts : public FairGeoSet
7 {
8  protected:
9  char modName[40]; // name of module
10  char eleName[40]; // substring for elements in module
11  public:
12  PndGeoFts();
14  const char* getModuleName(Int_t);
15  const char* getEleName(Int_t);
16  inline Int_t getModNumInMod(const TString&);
17  ClassDef(PndGeoFts,0) // Class for Fts
18 };
19 
20 inline Int_t PndGeoFts::getModNumInMod(const TString& name) {
21  // returns the module index from module name
22 
23 
24  return (Int_t)(name[3]-'0')-1;
25 }
26 
27 #endif /* !PNDGEOFTS_H */
char modName[40]
Definition: PndGeoFts.h:9
char eleName[40]
Definition: PndGeoFts.h:10
~PndGeoFts()
Definition: PndGeoFts.h:13
Int_t getModNumInMod(const TString &)
Definition: PndGeoFts.h:20
const char * getModuleName(Int_t)
Definition: PndGeoFts.cxx:21
const char * getEleName(Int_t)
Definition: PndGeoFts.cxx:32
TString name