///////////////////////////////////////////////////////////// // DchGeo // // Class for geometry of DCH // ///////////////////////////////////////////////////////////// #include "DchGeo.h" #include "CbmGeoNode.h" ClassImp(DchGeo) // ----- Default constructor ------------------------------------------- DchGeo::DchGeo() { // Constructor fName="dch"; maxSectors=20; maxModules=20; } // ------------------------------------------------------------------------- const char* DchGeo::getModuleName(Int_t m) { // Returns the module name of Tpc number m // Setting tpc here means that all modules names // in the ASCII file should start with tpc otherwise // they will not be constructed sprintf(modName,"dchModule%i",m+1); return modName; // return "dchChamber"; } const char* DchGeo::getEleName(Int_t m) { // Returns the element name of Det number m sprintf(eleName,"dch0%i",m+1); // sprintf(eleName,"dchModule%i",m+1); return eleName; }