MpdCpcGeo.cxx 626 B

12345678910111213141516171819202122232425262728293031
  1. /////////////////////////////////////////////////////////////
  2. // MpdCpcGeo
  3. //
  4. // Class for geometry of CPC
  5. //
  6. /////////////////////////////////////////////////////////////
  7. #include "MpdCpcGeo.h"
  8. #include "FairGeoNode.h"
  9. ClassImp(MpdCpcGeo)
  10. MpdCpcGeo::MpdCpcGeo() {
  11. // Constructor
  12. fName="cpc";
  13. maxSectors=0;
  14. maxModules=4;
  15. }
  16. const char* MpdCpcGeo::getModuleName(Int_t m) {
  17. // Returns the module name of cpc number m
  18. sprintf(modName,"cpc0%i",m+1);
  19. return modName;
  20. }
  21. const char* MpdCpcGeo::getEleName(Int_t m) {
  22. // Returns the element name of cpc number m
  23. sprintf(eleName,"cpc0%i",m+1);
  24. return eleName;
  25. }