MpdZdcGeo.cxx 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*************************************************************************************
  2. *
  3. * Class MpdZdcGeo
  4. *
  5. * Adopted for MPD by: Elena Litvinenko
  6. * e-mail: litvin@nf.jinr.ru
  7. * Version: 8-Apr-2008
  8. *
  9. ************************************************************************************/
  10. #include <iostream>
  11. #include "MpdZdcGeo.h"
  12. #include "FairGeoNode.h"
  13. #include <iostream>
  14. using std::cout;
  15. using std::endl;
  16. ClassImp(MpdZdcGeo)
  17. // ----- Default constructor -------------------------------------------
  18. MpdZdcGeo::MpdZdcGeo() {
  19. // Constructor
  20. fName="zdc";
  21. maxSectors=0;
  22. maxModules=4;
  23. }
  24. // -------------------------------------------------------------------------
  25. const char* MpdZdcGeo::getModuleName(Int_t m) {
  26. // Returns the module name of muo number m
  27. sprintf(modName,"zdc0%i",m+1);
  28. return modName;
  29. cout << "MODNAME: " << modName << endl;
  30. }
  31. const char* MpdZdcGeo::getEleName(Int_t m) {
  32. // Returns the element name of muo number m
  33. sprintf(eleName,"s%i",m+1);
  34. return eleName;
  35. cout << "ELENAME: " << eleName << endl;
  36. }