CbmRoot
Loading...
Searching...
No Matches
CbmGeoMuchPar.cxx
Go to the documentation of this file.
1
/* Copyright (C) 2006-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Evgeny Kryshen, Denis Bertini [committer], Florian Uhlig, Mohammad Al-Turany, Mikhail Ryzhinskiy */
4
17
#include "
CbmGeoMuchPar.h
"
18
19
#include <FairParGenericSet.h>
// for FairParGenericSet
20
#include <FairParamList.h>
// for FairParamList
21
22
#include <TObjArray.h>
// for TObjArray
23
24
CbmGeoMuchPar::CbmGeoMuchPar
(
const
char
* name,
const
char
* title,
const
char
* context)
25
: FairParGenericSet(name, title, context)
26
, fGeoSensNodes(new TObjArray())
27
, fGeoPassNodes(new TObjArray())
28
, fStations(new TObjArray())
29
{
30
}
31
32
CbmGeoMuchPar::~CbmGeoMuchPar
(
void
) {}
33
34
void
CbmGeoMuchPar::clear
(
void
)
35
{
36
if
(
fGeoSensNodes
)
delete
fGeoSensNodes
;
37
if
(
fGeoPassNodes
)
delete
fGeoPassNodes
;
38
if
(
fStations
)
delete
fStations
;
39
}
40
41
void
CbmGeoMuchPar::putParams
(FairParamList* l)
42
{
43
if
(!l)
return
;
44
l->addObject(
"FairGeoNodes Sensitive List"
,
fGeoSensNodes
);
45
l->addObject(
"FairGeoNodes Passive List"
,
fGeoPassNodes
);
46
l->addObject(
"CbmMuchStationOlds list"
,
fStations
);
47
}
48
49
Bool_t
CbmGeoMuchPar::getParams
(FairParamList* l)
50
{
51
if
(!l)
return
kFALSE;
52
if
(!l->fillObject(
"FairGeoNodes Sensitive List"
,
fGeoSensNodes
))
return
kFALSE;
53
if
(!l->fillObject(
"FairGeoNodes Passive List"
,
fGeoPassNodes
))
return
kFALSE;
54
if
(!l->fillObject(
"CbmMuchStationOlds list"
,
fStations
))
return
kFALSE;
55
return
kTRUE;
56
}
57
58
ClassImp
(
CbmGeoMuchPar
)
ClassImp
ClassImp(CbmConverterManager)
CbmGeoMuchPar.h
CbmGeoMuchPar
Definition
CbmGeoMuchPar.h:29
CbmGeoMuchPar::fGeoSensNodes
TObjArray * fGeoSensNodes
Definition
CbmGeoMuchPar.h:31
CbmGeoMuchPar::fStations
TObjArray * fStations
Definition
CbmGeoMuchPar.h:33
CbmGeoMuchPar::clear
void clear(void)
Definition
CbmGeoMuchPar.cxx:34
CbmGeoMuchPar::CbmGeoMuchPar
CbmGeoMuchPar(const char *name="CbmGeoMuchPar", const char *title="Much Geometry Parameters", const char *context="TestDefaultContext")
Definition
CbmGeoMuchPar.cxx:24
CbmGeoMuchPar::~CbmGeoMuchPar
~CbmGeoMuchPar(void)
Definition
CbmGeoMuchPar.cxx:32
CbmGeoMuchPar::fGeoPassNodes
TObjArray * fGeoPassNodes
Definition
CbmGeoMuchPar.h:32
CbmGeoMuchPar::putParams
void putParams(FairParamList *)
Definition
CbmGeoMuchPar.cxx:41
CbmGeoMuchPar::getParams
Bool_t getParams(FairParamList *)
Definition
CbmGeoMuchPar.cxx:49
core
detectors
much
CbmGeoMuchPar.cxx
Generated on Sun Dec 22 2024 23:04:09 for CbmRoot by
1.12.0