BmnRoot
Loading...
Searching...
No Matches
BmnDchGeoPar.cxx
Go to the documentation of this file.
1#include "BmnDchGeoPar.h"
2#include "FairParamList.h"
3#include <iostream>
4#include <iomanip>
5
6using namespace std;
7
8BmnDchGeoPar::BmnDchGeoPar(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
17
21 fGeoSensNodes = fGeoPassNodes = 0x0; //AZ
22}
23
24void BmnDchGeoPar::putParams(FairParamList* l) {
25 if (!l) return;
26 //l->addBinary("FairGeoNodes Sensitive List", fGeoSensNodes);
27 //l->addBinary("FairGeoNodes Passive List", fGeoPassNodes);
28 l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
29 l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
30}
31
32Bool_t BmnDchGeoPar::getParams(FairParamList* l) {
33 if (!l) return kFALSE;
34 //if (!l->fillBinary("FairGeoNodes Sensitive List", fGeoSensNodes)) return kFALSE;
35 //if (!l->fillBinary("FairGeoNodes Passive List", fGeoPassNodes)) return kFALSE;
36 if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes)) return kFALSE;
37 if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) return kFALSE;
38
39 return kTRUE;
40}
void clear(void)
TObjArray * fGeoPassNodes
TObjArray * fGeoSensNodes
Bool_t getParams(FairParamList *)
BmnDchGeoPar(const char *name="BmnDchGeoPar", const char *title="DCH Geometry Parameters", const char *context="TestDefaultContext")
void putParams(FairParamList *)
STL namespace.