BmnRoot
26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Toggle main menu visibility
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.h
BmnFHCal.h
Bool_t
bool Bool_t
kFALSE
constexpr Bool_t kFALSE
kTRUE
constexpr Bool_t kTRUE
BmnFHCalGeoPar::fGeoPassNodes
TObjArray * fGeoPassNodes
List of FairGeoNodes for sensitive volumes.
Definition
BmnFHCalGeoPar.h:18
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")
List of FairGeoNodes for passive volumes.
Definition
BmnFHCalGeoPar.cxx:16
BmnFHCalGeoPar::CheckIfSensitive
static bool CheckIfSensitive(std::string name)
Definition
BmnFHCalGeoPar.cxx:56
BmnFHCalGeoPar::getParams
Bool_t getParams(FairParamList *)
Definition
BmnFHCalGeoPar.cxx:43
BmnFHCalGeoPar::fGeoSensNodes
TObjArray * fGeoSensNodes
Definition
BmnFHCalGeoPar.h:17
BmnFHCalGeoPar::putParams
void putParams(FairParamList *)
Definition
BmnFHCalGeoPar.cxx:35
BmnFHCalGeoPar::SensitiveVolume_name
static const TString SensitiveVolume_name
Definition
BmnFHCalGeoPar.h:41
BmnFHCalGeoPar::~BmnFHCalGeoPar
~BmnFHCalGeoPar(void)
Definition
BmnFHCalGeoPar.cxx:23
FairParGenericSet
TObjArray
detectors
fhcal
BmnFHCalGeoPar.cxx
Generated on
for BmnRoot by
1.17.0