BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnEcalGeoPar.cxx
Go to the documentation of this file.
1
/*************************************************************************************
2
*
3
* Class BmnEcalGeoPar
4
*
5
* Adopted for BMN by: Elena Litvinenko
6
* e-mail: litvin@nf.jinr.ru
7
* Version: 10-02-2016
8
*
9
************************************************************************************/
10
#include "
BmnEcalGeoPar.h
"
11
12
#include "FairParamList.h"
13
14
#include <iomanip>
15
#include <iostream>
16
using namespace
std
;
17
18
BmnEcalGeoPar::BmnEcalGeoPar
(
const
char
* name,
const
char
* title,
const
char
* context)
19
:
FairParGenericSet
(name, title, context)
20
{
21
22
fGeoSensNodes
=
new
TObjArray
();
23
fGeoPassNodes
=
new
TObjArray
();
24
}
25
26
BmnEcalGeoPar::~BmnEcalGeoPar
(
void
) {}
27
28
// probably the next funtions can be deleted
29
30
void
BmnEcalGeoPar::clear
(
void
)
31
{
32
if
(
fGeoSensNodes
)
33
delete
fGeoSensNodes
;
34
if
(
fGeoPassNodes
)
35
delete
fGeoPassNodes
;
36
}
37
38
void
BmnEcalGeoPar::putParams
(FairParamList* l)
39
{
40
if
(!l)
41
return
;
42
l->addObject(
"FairGeoNodes Sensitive List"
,
fGeoSensNodes
);
43
l->addObject(
"FairGeoNodes Passive List"
,
fGeoPassNodes
);
44
}
45
46
Bool_t
BmnEcalGeoPar::getParams
(FairParamList* l)
47
{
48
if
(!l)
49
return
kFALSE
;
50
if
(!l->fillObject(
"FairGeoNodes Sensitive List"
,
fGeoSensNodes
))
51
return
kFALSE
;
52
if
(!l->fillObject(
"FairGeoNodes Passive List"
,
fGeoPassNodes
))
53
return
kFALSE
;
54
55
return
kTRUE
;
56
}
Bool_t
bool Bool_t
kFALSE
constexpr Bool_t kFALSE
kTRUE
constexpr Bool_t kTRUE
BmnEcalGeoPar::clear
void clear(void)
Definition
BmnEcalGeoPar.cxx:30
BmnEcalGeoPar::fGeoSensNodes
TObjArray * fGeoSensNodes
Definition
BmnEcalGeoPar.h:20
BmnEcalGeoPar::BmnEcalGeoPar
BmnEcalGeoPar(const char *name="BmnEcalGeoPar", const char *title="Ecal Geometry Parameters", const char *context="EcalDefaultContext")
List of FairGeoNodes for passive volumes.
Definition
BmnEcalGeoPar.cxx:18
BmnEcalGeoPar::getParams
Bool_t getParams(FairParamList *)
Definition
BmnEcalGeoPar.cxx:46
BmnEcalGeoPar::fGeoPassNodes
TObjArray * fGeoPassNodes
List of FairGeoNodes for sensitive volumes.
Definition
BmnEcalGeoPar.h:21
BmnEcalGeoPar::~BmnEcalGeoPar
~BmnEcalGeoPar(void)
Definition
BmnEcalGeoPar.cxx:26
BmnEcalGeoPar::putParams
void putParams(FairParamList *)
Definition
BmnEcalGeoPar.cxx:38
FairParGenericSet
TObjArray
BmnEcalGeoPar.h
std
Definition
json.hpp:4446
detectors
ecal
BmnEcalGeoPar.cxx
Generated on
for BmnRoot by
1.17.0