BmnRoot
Loading...
Searching...
No Matches
BmnMwpcGeoPar.cxx
Go to the documentation of this file.
1#include "BmnMwpcGeoPar.h"
2#include "FairParamList.h"
3#include <iostream>
4#include <iomanip>
5
6using namespace std;
7
8BmnMwpcGeoPar::BmnMwpcGeoPar(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 BmnMwpcGeoPar::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 BmnMwpcGeoPar::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}
Bool_t getParams(FairParamList *)
void putParams(FairParamList *)
TObjArray * fGeoPassNodes
void clear(void)
BmnMwpcGeoPar(const char *name="BmnMwpcGeoPar", const char *title="MWPC Geometry Parameters", const char *context="TestDefaultContext")
TObjArray * fGeoSensNodes
STL namespace.