BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnTOF1GeoPar.cxx
Go to the documentation of this file.
1//--------------------------------------------------------------------------------------------------------------------------------------
2#include "BmnTOF1GeoPar.h"
3
4#include "FairParamList.h"
5
6#include <iomanip>
7#include <iostream>
8
9using namespace std;
10
11BmnTOF1GeoPar::BmnTOF1GeoPar(const char* name, const char* title, const char* context)
12 : FairParGenericSet(name, title, context)
13{
16}
17//--------------------------------------------------------------------------------------------------------------------------------------
18BmnTOF1GeoPar::~BmnTOF1GeoPar(void) // FIXME ???? memleak?
19{}
20//--------------------------------------------------------------------------------------------------------------------------------------
21// probably the next funtions can be deleted FIXME: ?????????
23{
24 if (fGeoSensNodes)
25 delete fGeoSensNodes;
26 if (fGeoPassNodes)
27 delete fGeoPassNodes;
28}
29//--------------------------------------------------------------------------------------------------------------------------------------
30void BmnTOF1GeoPar::putParams(FairParamList* ptr)
31{
32 if (!ptr)
33 return;
34
35 ptr->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
36 ptr->addObject("FairGeoNodes Passive List", fGeoPassNodes);
37}
38//--------------------------------------------------------------------------------------------------------------------------------------
40{
41 if (!ptr)
42 return kFALSE;
43
44 if (!ptr->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes))
45 return kFALSE;
46 if (!ptr->fillObject("FairGeoNodes Passive List", fGeoPassNodes))
47 return kFALSE;
48
49 return kTRUE;
50}
51//--------------------------------------------------------------------------------------------------------------------------------------
bool Bool_t
constexpr Bool_t kFALSE
constexpr Bool_t kTRUE
Bool_t getParams(FairParamList *)
void clear(void)
void putParams(FairParamList *)
TObjArray * fGeoPassNodes
List of FairGeoNodes for sensitive volumes.
BmnTOF1GeoPar(const char *name="BmnTOF1GeoPar", const char *title="TOF1 Geometry Parameters", const char *context="TOF1DefaultContext")
List of FairGeoNodes for passive volumes.
TObjArray * fGeoSensNodes
Definition json.hpp:4446