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  protected:
8  char modName[40]; // name of module
9  char eleName[40]; // substring for elements in module
10  public:
11  PndGeoFts();
13  const char *getModuleName(Int_t);
14  const char *getEleName(Int_t);
15  inline Int_t getModNumInMod(const TString &);
16  ClassDef(PndGeoFts, 0) // Class for Fts
17 };
18 
19 inline Int_t PndGeoFts::getModNumInMod(const TString &name)
20 {
21  // returns the module index from module name
22 
23  return (Int_t)(name[3] - '0') - 1;
24 }
25 
26 #endif /* !PNDGEOFTS_H */
char modName[40]
Definition: PndGeoFts.h:8
const char * getEleName(Int_t)
char eleName[40]
Definition: PndGeoFts.h:9
~PndGeoFts()
Definition: PndGeoFts.h:12
Int_t getModNumInMod(const TString &)
Definition: PndGeoFts.h:19
const char * getModuleName(Int_t)