TpcGeo.cxx 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //-----------------------------------------------------------
  2. // File and Version Information:
  3. // $Id$
  4. //
  5. // Description:
  6. // Implementation of class TpcGeo
  7. // see TpcGeo.hh for details
  8. //
  9. // Environment:
  10. // Software developed for the PANDA Detector at FAIR.
  11. //
  12. // Author List:
  13. // Sebastian Neubert TUM (original author)
  14. //
  15. //
  16. //-----------------------------------------------------------
  17. // Panda Headers ----------------------
  18. // This Class' Header ------------------
  19. #include "TpcGeo.h"
  20. // C/C++ Headers ----------------------
  21. // Collaborating Class Headers --------
  22. #include "FairGeoNode.h"
  23. // Class Member definitions -----------
  24. ClassImp(TpcGeo)
  25. // ----- Default constructor -------------------------------------------
  26. TpcGeo::TpcGeo() {
  27. // Constructor
  28. fName="tpc";
  29. maxSectors=9;
  30. maxModules=9;
  31. }
  32. // -------------------------------------------------------------------------
  33. const char* TpcGeo::getModuleName(Int_t m) {
  34. // Returns the module name of Tpc 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,"tpcChamber%i",m+1);
  37. return modName;
  38. }
  39. const char* TpcGeo::getEleName(Int_t m) {
  40. // Returns the element name of Det number m
  41. sprintf(eleName,"tpc0%i",m+1);
  42. return eleName;
  43. }