BmdGeo.cxx 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //-----------------------------------------------------------
  2. // File and Version Information:
  3. // $Id$
  4. //
  5. // Description:
  6. // Implementation of class BmdGeo
  7. // see BmdGeo.hh for details
  8. //
  9. // Environment:
  10. // Software developed for the PANDA Detector at FAIR.
  11. //
  12. // Author List:
  13. // Pedro González TUM (original author)
  14. //
  15. //
  16. //-----------------------------------------------------------
  17. // Panda Headers --------------------------------------------
  18. // This Class' Header ------------------
  19. #include "BmdGeo.h"
  20. // C/C++ Headers ----------------------
  21. // Collaborating Class Headers --------
  22. #include "FairGeoNode.h"
  23. // Class Member definitions -----------
  24. ClassImp(BmdGeo)
  25. // ----- Default constructor -------------------------------------------
  26. BmdGeo::BmdGeo() {
  27. // Constructor
  28. fName="bmd";
  29. maxSectors=2;
  30. maxModules=160;
  31. }
  32. // -------------------------------------------------------------------------
  33. const char* BmdGeo::getModuleName(Int_t m) {
  34. // Returns the module name of Bmd number m
  35. // Setting tpc here means that all modules names in the ASCII file should start with tpc otherwise they will not be constructed
  36. //sprintf(modName,"bmdChamber%i",m+1);
  37. sprintf(modName,"BMD");
  38. return modName;
  39. }
  40. const char* BmdGeo::getEleName(Int_t m) {
  41. printf("Hola entro a BmdGeo");
  42. // Returns the element name of Det number m
  43. if( m == 0 )
  44. sprintf(eleName,"BMDPLUSA");
  45. else if ( m == 1 )
  46. sprintf(eleName,"BMDPLUSC");
  47. return eleName;
  48. }