BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnBdGeoPar.cxx
Go to the documentation of this file.
1#include "BmnBdGeoPar.h"
2
3#include "FairParamList.h"
4
5#include <iomanip>
6#include <iostream>
7
8using namespace std;
9
10BmnBdGeoPar::BmnBdGeoPar(const char* name, const char* title, const char* context)
11 : FairParGenericSet(name, title, context)
12{
15}
16
18{
19 if (fGeoSensNodes)
20 delete fGeoSensNodes;
21 if (fGeoPassNodes)
22 delete fGeoPassNodes;
23}
24
25void BmnBdGeoPar::putParams(FairParamList* l)
26{
27 if (!l)
28 return;
29
30 l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
31 l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
32}
33
35{
36 if (!l)
37 return kFALSE;
38
39 if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes))
40 return kFALSE;
41 if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes))
42 return kFALSE;
43
44 return kTRUE;
45}
bool Bool_t
constexpr Bool_t kFALSE
constexpr Bool_t kTRUE
TObjArray * fGeoSensNodes
Definition BmnBdGeoPar.h:22
Bool_t getParams(FairParamList *)
void putParams(FairParamList *)
BmnBdGeoPar(const char *name="BmnBdGeoPar", const char *title="BD Geometry Parameters", const char *context="BdDefaultContext")
TObjArray * fGeoPassNodes
List of FairGeoNodes for sensitive volumes.
Definition BmnBdGeoPar.h:23
Definition json.hpp:4446