BmnRoot
Loading...
Searching...
No Matches
BmnBdGeoPar.cxx
Go to the documentation of this file.
1#include "BmnBdGeoPar.h"
2#include "FairParamList.h"
3#include <iostream>
4#include <iomanip>
5
6using namespace std;
7
8BmnBdGeoPar::BmnBdGeoPar(const char* name,const char* title,const char* context)
9 : FairParGenericSet(name,title,context)
10{
11 fGeoSensNodes = new TObjArray();
12 fGeoPassNodes = new TObjArray();
13}
14
16{
17 if(fGeoSensNodes) delete fGeoSensNodes;
18 if(fGeoPassNodes) delete fGeoPassNodes;
19}
20
21void BmnBdGeoPar::putParams(FairParamList* l)
22{
23 if (!l) return;
24
25 l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
26 l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
27}
28
29Bool_t BmnBdGeoPar::getParams(FairParamList* l)
30{
31 if (!l) return kFALSE;
32
33 if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes)) return kFALSE;
34 if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) return kFALSE;
35
36 return kTRUE;
37}
Bool_t getParams(FairParamList *)
void putParams(FairParamList *)
BmnBdGeoPar(const char *name="BmnBdGeoPar", const char *title="BD Geometry Parameters", const char *context="BdDefaultContext")
STL namespace.