FairRoot/PandaRoot
PndSdsGeo.h
Go to the documentation of this file.
1 #ifndef PNDSDSGEO_H
2 #define PNDSDSGEO_H
3 
4 #include "FairGeoSet.h"
5 
6 class PndSdsGeo : public FairGeoSet
7 {
8  public:
9  PndSdsGeo();
11  const char* getModuleName(Int_t m);
12  const char* getEleName(Int_t m);
13  const char* getKeepinName(Int_t i,Int_t j);
14  inline Int_t getModNumInMod(const TString& name) const;
15  protected:
16  char fModName[20]; // name of module
17  char fEleName[20]; // substring for elements in module
18  char fKeepinName[20];
19 
20  ClassDef(PndSdsGeo,1); // Class for PndSds
21 };
22 
23 // TODO: we don't need this?
24 
25 inline Int_t PndSdsGeo::getModNumInMod(const TString& name) const {
27  return (Int_t)(name[3]-'0')-1;
28 }
29 
30 #endif /* !PNDSDSGEO_H */
Int_t i
Definition: run_full.C:25
__m128 m
Definition: P4_F32vec4.h:28
char fEleName[20]
Definition: PndSdsGeo.h:17
char fKeepinName[20]
Definition: PndSdsGeo.h:18
char fModName[20]
Definition: PndSdsGeo.h:16
ClassDef(PndSdsGeo, 1)
TString name
const char * getModuleName(Int_t m)
Definition: PndSdsGeo.cxx:25
~PndSdsGeo()
Definition: PndSdsGeo.h:10
Int_t getModNumInMod(const TString &name) const
Definition: PndSdsGeo.h:25
const char * getEleName(Int_t m)
Definition: PndSdsGeo.cxx:37
const char * getKeepinName(Int_t i, Int_t j)
Definition: PndSdsGeo.cxx:47