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