MpdDchGeo.cxx 858 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /////////////////////////////////////////////////////////////
  2. // MpdDchGeo
  3. //
  4. // Class for geometry of Dch
  5. //
  6. /////////////////////////////////////////////////////////////
  7. #include "MpdDchGeo.h"
  8. #include "FairGeoNode.h"
  9. ClassImp(MpdDchGeo)
  10. MpdDchGeo::MpdDchGeo() {
  11. // Constructor
  12. fName="Dch";
  13. maxSectors=0;
  14. maxModules=24;
  15. }
  16. const char* MpdDchGeo::getModuleName(Int_t m) {
  17. // Returns the module name of Dch number m
  18. // std::cout << "Dch module: " << m << "\n";
  19. if (m < 9) {
  20. sprintf(modName,"dch0%i",m+1);
  21. } else {
  22. sprintf(modName,"dch%i",m+1);
  23. }
  24. return modName;
  25. }
  26. const char* MpdDchGeo::getEleName(Int_t m) {
  27. // Returns the element name of Dch number m
  28. // std::cout << "Dch element: " << m << "\n";
  29. if (m < 9) {
  30. sprintf(eleName,"dch0%i",m+1);
  31. } else {
  32. sprintf(eleName,"dch%i",m+1);
  33. }
  34. return eleName;
  35. }