///////////////////////////////////////////////////////////// // // CbmGeoHypPar // // Class for geometry parameters of EMC // // Created 14/08/06 by S.Spataro // ///////////////////////////////////////////////////////////// using namespace std; #include "CbmGeoHypPar.h" #include "CbmParamList.h" #include "iostream.h" #include "iomanip.h" ClassImp(CbmGeoHypPar) CbmGeoHypPar::CbmGeoHypPar(const char* name,const char* title,const char* context) : CbmParGenericSet(name,title,context) { fGeoSensNodes = new TObjArray(); fGeoPassNodes = new TObjArray(); } CbmGeoHypPar::~CbmGeoHypPar(void) { } // probably the next funtions can be deleted void CbmGeoHypPar::clear(void) { if(fGeoSensNodes) delete fGeoSensNodes; if(fGeoPassNodes) delete fGeoPassNodes; } void CbmGeoHypPar::putParams(CbmParamList* l) { if (!l) return; l->addBinary("CbmGeoNodes Sensitive List", fGeoSensNodes); l->addBinary("CbmGeoNodes Passive List", fGeoPassNodes); } Bool_t CbmGeoHypPar::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; }