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