CbmGeoStt.cxx 862 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //*-- AUTHOR : Ilse Koenig
  2. //*-- Created : 10/11/2003
  3. /////////////////////////////////////////////////////////////
  4. // CbmGeoTof
  5. //
  6. // Class for geometry of STT
  7. //
  8. /////////////////////////////////////////////////////////////
  9. #include "CbmGeoStt.h"
  10. #include "FairGeoNode.h"
  11. ClassImp(CbmGeoStt)
  12. CbmGeoStt::CbmGeoStt()
  13. {
  14. // Constructor
  15. fName="stt";
  16. maxSectors=0;
  17. maxModules=20; // stt1
  18. }
  19. const char* CbmGeoStt::getModuleName(Int_t m)
  20. {
  21. // Returns the module name of stt number m
  22. // sprintf(modName,"stt%i",m+1);
  23. if ( m < 9 ) sprintf(modName,"stt0%i",m+1);
  24. else sprintf(modName,"stt%i",m+1);
  25. return modName;
  26. }
  27. const char* CbmGeoStt::getEleName(Int_t m)
  28. {
  29. // Returns the element name of sts number m
  30. // sprintf(eleName,"s%i",m+1);
  31. if ( m < 9 ) sprintf(eleName,"stt0%i",m+1);
  32. else sprintf(eleName,"stt%i",m+1);
  33. return eleName;
  34. }