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