BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnZdcGeoPar.cxx
Go to the documentation of this file.
1/*************************************************************************************
2 *
3 * Class BmnZdcGeoPar
4 *
5 * Adopted for BMN by: Elena Litvinenko
6 * e-mail: litvin@nf.jinr.ru
7 * Version: 06-11-2015
8 *
9 ************************************************************************************/
10#include "BmnZdcGeoPar.h"
11
12#include "FairParamList.h"
13
14#include <iomanip>
15#include <iostream>
16
17using namespace std;
18
19BmnZdcGeoPar::BmnZdcGeoPar(const char* name, const char* title, const char* context)
20 : FairParGenericSet(name, title, context)
21{
22
25}
26
28
29// probably the next funtions can be deleted
30
32{
33 if (fGeoSensNodes)
34 delete fGeoSensNodes;
35 if (fGeoPassNodes)
36 delete fGeoPassNodes;
37}
38
39void BmnZdcGeoPar::putParams(FairParamList* l)
40{
41 if (!l)
42 return;
43 l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
44 l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
45}
46
48{
49 if (!l)
50 return kFALSE;
51 if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes))
52 return kFALSE;
53 if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes))
54 return kFALSE;
55
56 return kTRUE;
57}
bool Bool_t
constexpr Bool_t kFALSE
constexpr Bool_t kTRUE
TObjArray * fGeoPassNodes
List of FairGeoNodes for sensitive volumes.
void putParams(FairParamList *)
Bool_t getParams(FairParamList *)
BmnZdcGeoPar(const char *name="BmnZdcGeoPar", const char *title="Zdc Geometry Parameters", const char *context="ZdcDefaultContext")
List of FairGeoNodes for passive volumes.
void clear(void)
TObjArray * fGeoSensNodes