BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
CbmMvdGeoPar.cxx
Go to the documentation of this file.
1
// -------------------------------------------------------------------------
2
// ----- CbmMvdGeoPar source file -----
3
// ----- Created 07/11/06 by V. Friese -----
4
// ----- Copied from CbmGeostsPar.cxx (D. Bertini) -----
5
// -------------------------------------------------------------------------
6
7
#include "
CbmMvdGeoPar.h
"
8
9
#include "FairGeoNode.h"
10
#include "FairParamList.h"
11
#include "
TObjArray.h
"
12
13
#include <iomanip>
14
#include <iostream>
15
using
std::cout;
16
using
std::endl;
17
18
// ----- Constructor ---------------------------------------------------
19
CbmMvdGeoPar::CbmMvdGeoPar
(
const
char
* name,
const
char
* title,
const
char
* context)
20
:
FairParGenericSet
(name, title, context)
21
,
fGeoSensNodes
(new
TObjArray
())
22
,
fGeoPassNodes
(new
TObjArray
())
23
{}
24
// -------------------------------------------------------------------------
25
26
// ----- Destructor ----------------------------------------------------
27
CbmMvdGeoPar::~CbmMvdGeoPar
(
void
)
28
{
29
/* commented due to problems during destruction
30
// somehow it is not possible to delete the last volume
31
// even if one get a correct pointer
32
if ( fGeoSensNodes ) {
33
fGeoSensNodes->Delete();
34
delete fGeoSensNodes;
35
}
36
37
if ( fGeoPassNodes ) {
38
fGeoPassNodes->Delete();
39
delete fGeoPassNodes;
40
}
41
42
*/
43
}
44
// -------------------------------------------------------------------------
45
46
// ----- Virtual public method clear -----------------------------------
47
void
CbmMvdGeoPar::clear
()
48
{
49
if
(
fGeoSensNodes
)
50
delete
fGeoSensNodes
;
51
if
(
fGeoPassNodes
)
52
delete
fGeoPassNodes
;
53
}
54
// -------------------------------------------------------------------------
55
56
// ----- Virtual public method putParams -------------------------------
57
void
CbmMvdGeoPar::putParams
(FairParamList* parList)
58
{
59
if
(!parList)
60
return
;
61
parList->addObject(
"FairGeoNodes Sensitive List"
,
fGeoSensNodes
);
62
parList->addObject(
"FairGeoNodes Passive List"
,
fGeoPassNodes
);
63
}
64
// -------------------------------------------------------------------------
65
66
// ----- Virtual public method getParams -------------------------------
67
Bool_t
CbmMvdGeoPar::getParams
(FairParamList* parList)
68
{
69
if
(!parList)
70
return
kFALSE
;
71
if
(!parList->fillObject(
"FairGeoNodes Sensitive List"
,
fGeoSensNodes
))
72
return
kFALSE
;
73
if
(!parList->fillObject(
"FairGeoNodes Passive List"
,
fGeoPassNodes
))
74
return
kFALSE
;
75
return
kTRUE
;
76
}
77
// -------------------------------------------------------------------------
Bool_t
bool Bool_t
kFALSE
constexpr Bool_t kFALSE
kTRUE
constexpr Bool_t kTRUE
TObjArray.h
CbmMvdGeoPar.h
CbmMvdGeoPar::CbmMvdGeoPar
CbmMvdGeoPar(const char *name="CbmMvdGeoPar", const char *title="MVD Geometry Parameters", const char *context="Default")
Constructor.
Definition
CbmMvdGeoPar.cxx:19
CbmMvdGeoPar::clear
virtual void clear()
Clear parameter set.
Definition
CbmMvdGeoPar.cxx:47
CbmMvdGeoPar::fGeoPassNodes
TObjArray * fGeoPassNodes
Definition
CbmMvdGeoPar.h:45
CbmMvdGeoPar::~CbmMvdGeoPar
virtual ~CbmMvdGeoPar()
Destructor.
Definition
CbmMvdGeoPar.cxx:27
CbmMvdGeoPar::putParams
virtual void putParams(FairParamList *parList)
Put parameters.
Definition
CbmMvdGeoPar.cxx:57
CbmMvdGeoPar::getParams
virtual Bool_t getParams(FairParamList *parList)
Get parameters.
Definition
CbmMvdGeoPar.cxx:67
CbmMvdGeoPar::fGeoSensNodes
TObjArray * fGeoSensNodes
Definition
CbmMvdGeoPar.h:44
FairParGenericSet
TObjArray
base
cbm
CbmMvdGeoPar.cxx
Generated on
for BmnRoot by
1.17.0