BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnMwpcGeoPar.cxx
Go to the documentation of this file.
1#include "BmnMwpcGeoPar.h"
2
3#include "FairParamList.h"
4
5#include <iomanip>
6#include <iostream>
7
8using namespace std;
9
10BmnMwpcGeoPar::BmnMwpcGeoPar(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 BmnMwpcGeoPar::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
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
Definition json.hpp:4446