BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
8
using namespace
std
;
9
10
BmnMwpcGeoPar::BmnMwpcGeoPar
(
const
char
* name,
const
char
* title,
const
char
* context)
11
:
FairParGenericSet
(name, title, context)
12
{
13
14
fGeoSensNodes
=
new
TObjArray
();
15
fGeoPassNodes
=
new
TObjArray
();
16
}
17
18
BmnMwpcGeoPar::~BmnMwpcGeoPar
(
void
) {}
19
20
void
BmnMwpcGeoPar::clear
(
void
)
21
{
22
if
(
fGeoSensNodes
)
23
delete
fGeoSensNodes
;
24
if
(
fGeoPassNodes
)
25
delete
fGeoPassNodes
;
26
fGeoSensNodes
=
fGeoPassNodes
= 0x0;
// AZ
27
}
28
29
void
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
39
Bool_t
BmnMwpcGeoPar::getParams
(FairParamList* l)
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_t
bool Bool_t
kFALSE
constexpr Bool_t kFALSE
kTRUE
constexpr Bool_t kTRUE
BmnMwpcGeoPar::getParams
Bool_t getParams(FairParamList *)
Definition
BmnMwpcGeoPar.cxx:39
BmnMwpcGeoPar::putParams
void putParams(FairParamList *)
Definition
BmnMwpcGeoPar.cxx:29
BmnMwpcGeoPar::fGeoPassNodes
TObjArray * fGeoPassNodes
Definition
BmnMwpcGeoPar.h:12
BmnMwpcGeoPar::clear
void clear(void)
Definition
BmnMwpcGeoPar.cxx:20
BmnMwpcGeoPar::~BmnMwpcGeoPar
~BmnMwpcGeoPar(void)
Definition
BmnMwpcGeoPar.cxx:18
BmnMwpcGeoPar::BmnMwpcGeoPar
BmnMwpcGeoPar(const char *name="BmnMwpcGeoPar", const char *title="MWPC Geometry Parameters", const char *context="TestDefaultContext")
Definition
BmnMwpcGeoPar.cxx:10
BmnMwpcGeoPar::fGeoSensNodes
TObjArray * fGeoSensNodes
Definition
BmnMwpcGeoPar.h:11
FairParGenericSet
TObjArray
BmnMwpcGeoPar.h
std
Definition
json.hpp:4446
detectors
mwpc
BmnMwpcGeoPar.cxx
Generated on
for BmnRoot by
1.17.0