MpdTofGeo.cxx 1.0 KB

1234567891011121314151617181920212223242526272829
  1. //------------------------------------------------------------------------------------------------------------------------
  2. #include "FairGeoNode.h"
  3. #include "MpdTofGeo.h"
  4. //------------------------------------------------------------------------------------------------------------------------
  5. MpdTofGeo::MpdTofGeo()
  6. {
  7. fName="tof";
  8. maxSectors=0;
  9. maxModules=124;
  10. }
  11. //------------------------------------------------------------------------------------------------------------------------
  12. const char* MpdTofGeo::getModuleName(Int_t m)
  13. {
  14. // Returns the module name of tof number m
  15. sprintf(modName,"tof%i",m+1);
  16. return modName;
  17. }
  18. //------------------------------------------------------------------------------------------------------------------------
  19. const char* MpdTofGeo::getEleName(Int_t m)
  20. {
  21. // Returns the element name of tof number m
  22. sprintf(eleName,"t%i",m+1);
  23. return eleName;
  24. }
  25. //------------------------------------------------------------------------------------------------------------------------
  26. ClassImp(MpdTofGeo)