using namespace std; #include "CbmGeoMuoPar.h" #include "CbmParamList.h" #include "iostream.h" #include "iomanip.h" ClassImp(CbmGeoMuoPar) CbmGeoMuoPar::CbmGeoMuoPar(const char* name,const char* title,const char* context) : CbmParGenericSet(name,title,context) { fGeoSensNodes = new TObjArray(); fGeoPassNodes = new TObjArray(); barrel_y = 1884.; dplane = 30.; barrel_z = -350.; dstrip = 10.; nbox = 19; dbox = 82.44; dtube = 10.; ntube = 8; } CbmGeoMuoPar::~CbmGeoMuoPar(void) { } void CbmGeoMuoPar::clear(void) { if(fGeoSensNodes) delete fGeoSensNodes; if(fGeoPassNodes) delete fGeoPassNodes; } void CbmGeoMuoPar::putParams(CbmParamList* l) { if (!l) return; l->addBinary("CbmGeoNodes Sensitive List", fGeoSensNodes); l->addBinary("CbmGeoNodes Passive List", fGeoPassNodes); } Bool_t CbmGeoMuoPar::getParams(CbmParamList* l) { if (!l) return kFALSE; if (!l->fillBinary("CbmGeoNodes Sensitive List", fGeoSensNodes)) return kFALSE; if (!l->fillBinary("CbmGeoNodes Passive List", fGeoPassNodes)) return kFALSE; return kTRUE; }