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