BmnRoot
Loading...
Searching...
No Matches
BmnMwpcGeoPar.cxx
Go to the documentation of this file.
1
#include "
BmnMwpcGeoPar.h
"
2
#include "FairParamList.h"
3
#include <iostream>
4
#include <iomanip>
5
6
using namespace
std
;
7
8
BmnMwpcGeoPar::BmnMwpcGeoPar
(
const
char
* name,
const
char
* title,
const
char
* context)
9
: FairParGenericSet(name,title,context) {
10
11
fGeoSensNodes
=
new
TObjArray();
12
fGeoPassNodes
=
new
TObjArray();
13
}
14
15
BmnMwpcGeoPar::~BmnMwpcGeoPar
(
void
) {
16
}
17
18
void
BmnMwpcGeoPar::clear
(
void
) {
19
if
(
fGeoSensNodes
)
delete
fGeoSensNodes
;
20
if
(
fGeoPassNodes
)
delete
fGeoPassNodes
;
21
fGeoSensNodes
=
fGeoPassNodes
= 0x0;
//AZ
22
}
23
24
void
BmnMwpcGeoPar::putParams
(FairParamList* l) {
25
if
(!l)
return
;
26
//l->addBinary("FairGeoNodes Sensitive List", fGeoSensNodes);
27
//l->addBinary("FairGeoNodes Passive List", fGeoPassNodes);
28
l->addObject(
"FairGeoNodes Sensitive List"
,
fGeoSensNodes
);
29
l->addObject(
"FairGeoNodes Passive List"
,
fGeoPassNodes
);
30
}
31
32
Bool_t
BmnMwpcGeoPar::getParams
(FairParamList* l) {
33
if
(!l)
return
kFALSE;
34
//if (!l->fillBinary("FairGeoNodes Sensitive List", fGeoSensNodes)) return kFALSE;
35
//if (!l->fillBinary("FairGeoNodes Passive List", fGeoPassNodes)) return kFALSE;
36
if
(!l->fillObject(
"FairGeoNodes Sensitive List"
,
fGeoSensNodes
))
return
kFALSE;
37
if
(!l->fillObject(
"FairGeoNodes Passive List"
,
fGeoPassNodes
))
return
kFALSE;
38
39
return
kTRUE;
40
}
BmnMwpcGeoPar::getParams
Bool_t getParams(FairParamList *)
Definition
BmnMwpcGeoPar.cxx:32
BmnMwpcGeoPar::putParams
void putParams(FairParamList *)
Definition
BmnMwpcGeoPar.cxx:24
BmnMwpcGeoPar::fGeoPassNodes
TObjArray * fGeoPassNodes
Definition
BmnMwpcGeoPar.h:11
BmnMwpcGeoPar::clear
void clear(void)
Definition
BmnMwpcGeoPar.cxx:18
BmnMwpcGeoPar::~BmnMwpcGeoPar
~BmnMwpcGeoPar(void)
Definition
BmnMwpcGeoPar.cxx:15
BmnMwpcGeoPar::BmnMwpcGeoPar
BmnMwpcGeoPar(const char *name="BmnMwpcGeoPar", const char *title="MWPC Geometry Parameters", const char *context="TestDefaultContext")
Definition
BmnMwpcGeoPar.cxx:8
BmnMwpcGeoPar::fGeoSensNodes
TObjArray * fGeoSensNodes
Definition
BmnMwpcGeoPar.h:10
BmnMwpcGeoPar.h
std
STL namespace.
detectors
mwpc
BmnMwpcGeoPar.cxx
Generated on Fri May 15 2026 10:40:51 for BmnRoot by
1.9.8