CbmGeoStt.h 621 B

123456789101112131415161718192021222324252627282930
  1. #ifndef CBMGEOSTT_H
  2. #define CBMGEOSTT_H
  3. #include "FairGeoSet.h"
  4. class CbmGeoStt : public FairGeoSet
  5. {
  6. protected:
  7. char modName[20]; // name of module
  8. char eleName[20]; // substring for elements in module
  9. public:
  10. CbmGeoStt();
  11. ~CbmGeoStt() {}
  12. const char* getModuleName(Int_t);
  13. const char* getEleName(Int_t);
  14. inline Int_t getModNumInMod(const TString&);
  15. ClassDef(CbmGeoStt,0) // Class for Stt
  16. };
  17. // TODO: we don't need this?
  18. inline Int_t CbmGeoStt::getModNumInMod(const TString& name) {
  19. // returns the module index from module name
  20. return (Int_t)(name[3]-'0')-1;
  21. }
  22. #endif /* !CBMGEOSTT_H */