1 #include "ERGadastGeoPar.h" 3 #include "FairParamList.h" 9 ERGadastGeoPar::ERGadastGeoPar(
const char* name,
12 : FairParGenericSet(name,title,context),
13 fGeoSensNodes(new TObjArray()),
14 fGeoPassNodes(new TObjArray())
18 ERGadastGeoPar::~ERGadastGeoPar(
void)
22 void ERGadastGeoPar::clear(
void)
24 if(fGeoSensNodes) {
delete fGeoSensNodes; }
25 if(fGeoPassNodes) {
delete fGeoPassNodes; }
28 void ERGadastGeoPar::putParams(FairParamList* l)
31 l->addObject(
"FairGeoNodes Sensitive List", fGeoSensNodes);
32 l->addObject(
"FairGeoNodes Passive List", fGeoPassNodes);
35 Bool_t ERGadastGeoPar::getParams(FairParamList* l)
37 if (!l) {
return kFALSE; }
38 if (!l->fillObject(
"FairGeoNodes Sensitive List", fGeoSensNodes)) {
return kFALSE; }
39 if (!l->fillObject(
"FairGeoNodes Passive List", fGeoPassNodes)) {
return kFALSE; }