///////////////////////////////////////////////////////////// // R3BGeoTof // // Class for geometry of R3BTof // // Author: J.L. Rodriguez // ///////////////////////////////////////////////////////////// #include "R3BGeoTof.h" #include "FairGeoNode.h" #include using std::cout; using std::endl; ClassImp(R3BGeoTof) R3BGeoTof::R3BGeoTof() { // Constructor fName="sts"; maxSectors=0; maxModules=99; } const char* R3BGeoTof::getModuleName(Int_t m) { // Returns the module name of sts number m if ( m < 0 ) { cout <<"-E- R3BGeoTof::getModuleName:: Module number " << m << " not known!" << endl; return ""; } if ( m < 9 ) sprintf(modName,"tofstation0%i",m+1); else sprintf(modName,"tofstation%i",m+1); return modName; } const char* R3BGeoTof::getEleName(Int_t m) { // Returns the element name of sts number m sprintf(eleName,"tof%i",m+1); return eleName; }