BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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>
15using std::cout;
16using std::endl;
17
18// ----- Constructor ---------------------------------------------------
19CbmMvdGeoPar::CbmMvdGeoPar(const char* name, const char* title, const char* context)
20 : FairParGenericSet(name, title, context)
23{}
24// -------------------------------------------------------------------------
25
26// ----- Destructor ----------------------------------------------------
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 -----------------------------------
48{
49 if (fGeoSensNodes)
50 delete fGeoSensNodes;
51 if (fGeoPassNodes)
52 delete fGeoPassNodes;
53}
54// -------------------------------------------------------------------------
55
56// ----- Virtual public method putParams -------------------------------
57void 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 -------------------------------
67Bool_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 Bool_t
constexpr Bool_t kFALSE
constexpr Bool_t kTRUE
CbmMvdGeoPar(const char *name="CbmMvdGeoPar", const char *title="MVD Geometry Parameters", const char *context="Default")
Constructor.
virtual void clear()
Clear parameter set.
TObjArray * fGeoPassNodes
virtual ~CbmMvdGeoPar()
Destructor.
virtual void putParams(FairParamList *parList)
Put parameters.
virtual Bool_t getParams(FairParamList *parList)
Get parameters.
TObjArray * fGeoSensNodes