1 #include "ERDetectorGeoPar.h" 3 #include "FairParamList.h" 9 ERDetectorGeoPar ::ERDetectorGeoPar(
const char* name,
12 : FairParGenericSet(name,title,context),
13 fGeoSensNodes(new TObjArray()),
14 fGeoPassNodes(new TObjArray())
18 ERDetectorGeoPar::~ERDetectorGeoPar(
void)
22 void ERDetectorGeoPar::clear(
void)
24 if(fGeoSensNodes) {
delete fGeoSensNodes; }
25 if(fGeoPassNodes) {
delete fGeoPassNodes; }
28 void ERDetectorGeoPar::putParams(FairParamList* l)
31 l->addObject(
"FairGeoNodes Sensitive List", fGeoSensNodes);
32 l->addObject(
"FairGeoNodes Passive List", fGeoPassNodes);
35 Bool_t ERDetectorGeoPar::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; }