BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnDchGeoPar.cxx
Go to the documentation of this file.
1#include "BmnDchGeoPar.h"
2
3#include "FairParamList.h"
4
5#include <iomanip>
6#include <iostream>
7
8using namespace std;
9
10BmnDchGeoPar::BmnDchGeoPar(const char* name, const char* title, const char* context)
11 : FairParGenericSet(name, title, context)
12{
13
16}
17
19
21{
22 if (fGeoSensNodes)
23 delete fGeoSensNodes;
24 if (fGeoPassNodes)
25 delete fGeoPassNodes;
26 fGeoSensNodes = fGeoPassNodes = 0x0; // AZ
27}
28
29void BmnDchGeoPar::putParams(FairParamList* l)
30{
31 if (!l)
32 return;
33 // l->addBinary("FairGeoNodes Sensitive List", fGeoSensNodes);
34 // l->addBinary("FairGeoNodes Passive List", fGeoPassNodes);
35 l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
36 l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
37}
38
40{
41 if (!l)
42 return kFALSE;
43 // if (!l->fillBinary("FairGeoNodes Sensitive List", fGeoSensNodes)) return kFALSE;
44 // if (!l->fillBinary("FairGeoNodes Passive List", fGeoPassNodes)) return kFALSE;
45 if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes))
46 return kFALSE;
47 if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes))
48 return kFALSE;
49
50 return kTRUE;
51}
bool Bool_t
constexpr Bool_t kFALSE
constexpr Bool_t kTRUE
TObjArray * fGeoSensNodes
void clear(void)
Bool_t getParams(FairParamList *)
BmnDchGeoPar(const char *name="BmnDchGeoPar", const char *title="DCH Geometry Parameters", const char *context="TestDefaultContext")
TObjArray * fGeoPassNodes
void putParams(FairParamList *)