MpdEmcGeo.cxx 781 B

12345678910111213141516171819202122232425262728293031
  1. #include "MpdEmcGeo.h"
  2. #include "FairGeoNode.h"
  3. ClassImp(MpdEmcGeo)
  4. // ----- Default constructor -------------------------------------------
  5. MpdEmcGeo::MpdEmcGeo() {
  6. // Constructor
  7. fName="emc";
  8. maxSectors=0;
  9. maxModules=10;
  10. }
  11. // -------------------------------------------------------------------------
  12. const char* MpdEmcGeo::getModuleName(Int_t m) {
  13. /** Returns the module name of TutorialDet number m
  14. Setting MyDet here means that all modules names in the
  15. ASCII file should start with TutorialDet otherwise they will
  16. not be constructed
  17. */
  18. sprintf(modName,"emc%i",m+1);
  19. return modName;
  20. }
  21. const char* MpdEmcGeo::getEleName(Int_t m) {
  22. /** Returns the element name of Det number m */
  23. sprintf(eleName,"emc%i",m+1);
  24. return eleName;
  25. }