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