#include "FairRutherfordGeoPar.h" #include "FairParamList.h" // for FairParamList #include "TObjArray.h" // for TObjArray ClassImp(FairRutherfordGeoPar) FairRutherfordGeoPar ::FairRutherfordGeoPar(const char* name, const char* title, const char* context) : FairParGenericSet(name,title,context), fGeoSensNodes(new TObjArray()), fGeoPassNodes(new TObjArray()) { } FairRutherfordGeoPar::~FairRutherfordGeoPar(void) { } void FairRutherfordGeoPar::clear(void) { if(fGeoSensNodes) { delete fGeoSensNodes; } if(fGeoPassNodes) { delete fGeoPassNodes; } } void FairRutherfordGeoPar::putParams(FairParamList* l) { if (!l) { return; } l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes); l->addObject("FairGeoNodes Passive List", fGeoPassNodes); } Bool_t FairRutherfordGeoPar::getParams(FairParamList* l) { if (!l) { return kFALSE; } if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes)) { return kFALSE; } if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) { return kFALSE; } return kTRUE; }