BmnRoot
Loading...
Searching...
No Matches
BmnHodoGeoPar.cxx
Go to the documentation of this file.
1
/*************************************************************************************
2
*
3
* Class BmnHodoGeoPar
4
*
5
************************************************************************************/
6
#include "
BmnHodoGeoPar.h
"
7
8
#include "FairParamList.h"
9
10
#include <iomanip>
11
#include <iostream>
12
13
using namespace
std
;
14
15
BmnHodoGeoPar::BmnHodoGeoPar
(
const
char
* name,
const
char
* title,
const
char
* context)
16
: FairParGenericSet(name, title, context)
17
{
18
fGeoSensNodes
=
new
TObjArray();
19
fGeoPassNodes
=
new
TObjArray();
20
}
21
22
BmnHodoGeoPar::~BmnHodoGeoPar
(
void
) {}
23
24
// probably the next funtions can be deleted
25
26
void
BmnHodoGeoPar::clear
(
void
)
27
{
28
if
(
fGeoSensNodes
)
29
delete
fGeoSensNodes
;
30
if
(
fGeoPassNodes
)
31
delete
fGeoPassNodes
;
32
}
33
34
void
BmnHodoGeoPar::putParams
(FairParamList* l)
35
{
36
if
(!l)
37
return
;
38
l->addObject(
"FairGeoNodes Sensitive List"
,
fGeoSensNodes
);
39
l->addObject(
"FairGeoNodes Passive List"
,
fGeoPassNodes
);
40
}
41
42
Bool_t
BmnHodoGeoPar::getParams
(FairParamList* l)
43
{
44
if
(!l)
45
return
kFALSE;
46
if
(!l->fillObject(
"FairGeoNodes Sensitive List"
,
fGeoSensNodes
))
47
return
kFALSE;
48
if
(!l->fillObject(
"FairGeoNodes Passive List"
,
fGeoPassNodes
))
49
return
kFALSE;
50
51
return
kTRUE;
52
}
53
54
bool
BmnHodoGeoPar::CheckIfSensitive
(std::string name)
55
{
56
return
name.find(
"sens"
) != std::string::npos;
57
}
BmnHodoGeoPar::putParams
void putParams(FairParamList *)
Definition
BmnHodoGeoPar.cxx:34
BmnHodoGeoPar::CheckIfSensitive
static bool CheckIfSensitive(std::string name)
Definition
BmnHodoGeoPar.cxx:54
BmnHodoGeoPar::fGeoSensNodes
TObjArray * fGeoSensNodes
Definition
BmnHodoGeoPar.h:11
BmnHodoGeoPar::getParams
Bool_t getParams(FairParamList *)
Definition
BmnHodoGeoPar.cxx:42
BmnHodoGeoPar::~BmnHodoGeoPar
~BmnHodoGeoPar(void)
Definition
BmnHodoGeoPar.cxx:22
BmnHodoGeoPar::fGeoPassNodes
TObjArray * fGeoPassNodes
Definition
BmnHodoGeoPar.h:12
BmnHodoGeoPar::BmnHodoGeoPar
BmnHodoGeoPar(const char *name="BmnHodoGeoPar", const char *title="Hodo Geometry Parameters", const char *context="HodoDefaultContext")
Definition
BmnHodoGeoPar.cxx:15
BmnHodoGeoPar::clear
void clear(void)
Definition
BmnHodoGeoPar.cxx:26
BmnHodoGeoPar.h
std
STL namespace.
detectors
hodo
BmnHodoGeoPar.cxx
Generated on Fri May 15 2026 10:40:51 for BmnRoot by
1.9.8