CbmRoot
CbmGeoMuchPar.cxx
Go to the documentation of this file.
1
13
#include "
CbmGeoMuchPar.h
"
14
15
#include <FairParGenericSet.h>
// for FairParGenericSet
16
#include <FairParamList.h>
// for FairParamList
17
18
#include <TObjArray.h>
// for TObjArray
19
20
CbmGeoMuchPar::CbmGeoMuchPar
(
const
char
* name,
21
const
char
* title,
22
const
char
* context)
23
: FairParGenericSet(name, title, context)
24
, fGeoSensNodes(new TObjArray())
25
, fGeoPassNodes(new TObjArray())
26
, fStations(new TObjArray()) {}
27
28
CbmGeoMuchPar::~CbmGeoMuchPar
(
void
) {}
29
30
void
CbmGeoMuchPar::clear
(
void
) {
31
if
(
fGeoSensNodes
)
delete
fGeoSensNodes
;
32
if
(
fGeoPassNodes
)
delete
fGeoPassNodes
;
33
if
(
fStations
)
delete
fStations
;
34
}
35
36
void
CbmGeoMuchPar::putParams
(FairParamList* l) {
37
if
(!l)
return
;
38
l->addObject(
"FairGeoNodes Sensitive List"
,
fGeoSensNodes
);
39
l->addObject(
"FairGeoNodes Passive List"
,
fGeoPassNodes
);
40
l->addObject(
"CbmMuchStationOlds list"
,
fStations
);
41
}
42
43
Bool_t
CbmGeoMuchPar::getParams
(FairParamList* l) {
44
if
(!l)
return
kFALSE;
45
if
(!l->fillObject(
"FairGeoNodes Sensitive List"
,
fGeoSensNodes
))
46
return
kFALSE;
47
if
(!l->fillObject(
"FairGeoNodes Passive List"
,
fGeoPassNodes
))
return
kFALSE;
48
if
(!l->fillObject(
"CbmMuchStationOlds list"
,
fStations
))
return
kFALSE;
49
return
kTRUE;
50
}
51
52
ClassImp
(
CbmGeoMuchPar
)
CbmGeoMuchPar::putParams
void putParams(FairParamList *)
Definition:
CbmGeoMuchPar.cxx:36
CbmGeoMuchPar::clear
void clear(void)
Definition:
CbmGeoMuchPar.cxx:30
CbmGeoMuchPar
Definition:
CbmGeoMuchPar.h:25
CbmGeoMuchPar::CbmGeoMuchPar
CbmGeoMuchPar(const char *name="CbmGeoMuchPar", const char *title="Much Geometry Parameters", const char *context="TestDefaultContext")
Definition:
CbmGeoMuchPar.cxx:20
CbmGeoMuchPar.h
CbmGeoMuchPar::~CbmGeoMuchPar
~CbmGeoMuchPar(void)
Definition:
CbmGeoMuchPar.cxx:28
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition:
CbmConverterManager.cxx:12
CbmGeoMuchPar::fGeoPassNodes
TObjArray * fGeoPassNodes
Definition:
CbmGeoMuchPar.h:28
CbmGeoMuchPar::fStations
TObjArray * fStations
Definition:
CbmGeoMuchPar.h:29
CbmGeoMuchPar::fGeoSensNodes
TObjArray * fGeoSensNodes
Definition:
CbmGeoMuchPar.h:27
CbmGeoMuchPar::getParams
Bool_t getParams(FairParamList *)
Definition:
CbmGeoMuchPar.cxx:43
core
detectors
much
CbmGeoMuchPar.cxx
Generated on Wed Oct 28 2020 15:11:35 for CbmRoot by
1.8.18