MpdSftGeo.cxx 896 B

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