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