MpdTofGeo.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. //------------------------------------------------------------------------------------------------------------------------
  2. #ifndef __MPD_TOF_GEO_H
  3. #define __MPD_TOF_GEO_H 1
  4. #include "FairGeoSet.h"
  5. //------------------------------------------------------------------------------------------------------------------------
  6. class MpdTofGeo : public FairGeoSet
  7. {
  8. protected:
  9. char modName[20]; // name of module
  10. char eleName[20]; // substring for elements in module
  11. public:
  12. MpdTofGeo();
  13. ~MpdTofGeo(){};
  14. const char* getModuleName(Int_t);
  15. const char* getEleName(Int_t);
  16. inline Int_t getModNumInMod(const TString&);
  17. ClassDef(MpdTofGeo,0) // Class for Tof
  18. };
  19. //------------------------------------------------------------------------------------------------------------------------
  20. inline Int_t MpdTofGeo::getModNumInMod(const TString& name)
  21. {
  22. // returns the module index from module name
  23. return (Int_t)(name[3]-'0')-1;
  24. }
  25. //------------------------------------------------------------------------------------------------------------------------
  26. #endif