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