BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
}
Bool_t
bool Bool_t
kFALSE
constexpr Bool_t kFALSE
kTRUE
constexpr Bool_t kTRUE
BmnScWallGeoPar::CheckIfSensitive
static bool CheckIfSensitive(std::string name)
Definition
BmnScWallGeoPar.cxx:56
BmnScWallGeoPar::fGeoPassNodes
TObjArray * fGeoPassNodes
List of FairGeoNodes for sensitive volumes.
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")
List of FairGeoNodes for passive volumes.
Definition
BmnScWallGeoPar.cxx:16
BmnScWallGeoPar::~BmnScWallGeoPar
~BmnScWallGeoPar(void)
Definition
BmnScWallGeoPar.cxx:23
BmnScWallGeoPar::clear
void clear(void)
Definition
BmnScWallGeoPar.cxx:27
FairParGenericSet
TObjArray
BmnScWallGeoPar.h
BmnScWall.h
std
Definition
json.hpp:4446
detectors
scwall
BmnScWallGeoPar.cxx
Generated on
for BmnRoot by
1.17.0