using namespace std; #include "MpdStrawECTGeoPar.h" #include "FairParamList.h" #include #include ClassImp(MpdStrawECTGeoPar) MpdStrawECTGeoPar::MpdStrawECTGeoPar(const char* name,const char* title,const char* context) : FairParGenericSet(name,title,context) { fGeoSensNodes = new TObjArray(); fGeoPassNodes = new TObjArray(); } MpdStrawECTGeoPar::~MpdStrawECTGeoPar(void) { } void MpdStrawECTGeoPar::clear(void) { if(fGeoSensNodes) delete fGeoSensNodes; if(fGeoPassNodes) delete fGeoPassNodes; fGeoSensNodes = fGeoPassNodes = 0x0; //AZ } void MpdStrawECTGeoPar::putParams(FairParamList* l) { if (!l) return; //l->addBinary("FairGeoNodes Sensitive List", fGeoSensNodes); //l->addBinary("FairGeoNodes Passive List", fGeoPassNodes); l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes); l->addObject("FairGeoNodes Passive List", fGeoPassNodes); } Bool_t MpdStrawECTGeoPar::getParams(FairParamList* l) { if (!l) return kFALSE; //if (!l->fillBinary("FairGeoNodes Sensitive List", fGeoSensNodes)) return kFALSE; //if (!l->fillBinary("FairGeoNodes Passive List", fGeoPassNodes)) return kFALSE; if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes)) return kFALSE; if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) return kFALSE; return kTRUE; }