BmnRoot
Loading...
Searching...
No Matches
BmnFHCalGeoPar.cxx
Go to the documentation of this file.
1
/*************************************************************************************
2
*
3
* Class BmnFHCalGeoPar
4
*
5
************************************************************************************/
6
#include "
BmnFHCalGeoPar.h
"
7
8
#include "
BmnFHCal.h
"
9
#include "FairParamList.h"
10
11
#include <iomanip>
12
#include <iostream>
13
14
using namespace
std
;
15
16
BmnFHCalGeoPar::BmnFHCalGeoPar
(
const
char
* name,
const
char
* title,
const
char
* context)
17
: FairParGenericSet(name, title, context)
18
{
19
fGeoSensNodes
=
new
TObjArray();
20
fGeoPassNodes
=
new
TObjArray();
21
}
22
23
BmnFHCalGeoPar::~BmnFHCalGeoPar
(
void
) {}
24
25
// probably the next funtions can be deleted
26
27
void
BmnFHCalGeoPar::clear
(
void
)
28
{
29
if
(
fGeoSensNodes
)
30
delete
fGeoSensNodes
;
31
if
(
fGeoPassNodes
)
32
delete
fGeoPassNodes
;
33
}
34
35
void
BmnFHCalGeoPar::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
43
Bool_t
BmnFHCalGeoPar::getParams
(FairParamList* l)
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
}
54
55
//------ CheckIfSensitive -----------------------------------------------
56
bool
BmnFHCalGeoPar::CheckIfSensitive
(std::string name)
57
{
58
return
name.find(
SensitiveVolume_name
) != std::string::npos;
59
}
BmnFHCalGeoPar::fGeoSensNodes
TObjArray * fGeoSensNodes
Definition
BmnFHCalGeoPar.h:17
BmnFHCalGeoPar::clear
void clear(void)
Definition
BmnFHCalGeoPar.cxx:27
BmnFHCalGeoPar::BmnFHCalGeoPar
BmnFHCalGeoPar(const char *name="BmnFHCalGeoPar", const char *title="FHCal Geometry Parameters", const char *context="FHCalDefaultContext")
Definition
BmnFHCalGeoPar.cxx:16
BmnFHCalGeoPar::SensitiveVolume_name
static const TString SensitiveVolume_name
Definition
BmnFHCalGeoPar.h:41
BmnFHCalGeoPar::fGeoPassNodes
TObjArray * fGeoPassNodes
Definition
BmnFHCalGeoPar.h:18
BmnFHCalGeoPar::CheckIfSensitive
static bool CheckIfSensitive(std::string name)
Definition
BmnFHCalGeoPar.cxx:56
BmnFHCalGeoPar::getParams
Bool_t getParams(FairParamList *)
Definition
BmnFHCalGeoPar.cxx:43
BmnFHCalGeoPar::putParams
void putParams(FairParamList *)
Definition
BmnFHCalGeoPar.cxx:35
BmnFHCalGeoPar::~BmnFHCalGeoPar
~BmnFHCalGeoPar(void)
Definition
BmnFHCalGeoPar.cxx:23
BmnFHCalGeoPar.h
BmnFHCal.h
std
STL namespace.
detectors
fhcal
BmnFHCalGeoPar.cxx
Generated on Fri May 15 2026 10:40:51 for BmnRoot by
1.9.8