BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
CbmGeoSttPar.cxx
Go to the documentation of this file.
1#include "CbmGeoSttPar.h"
2
3#include "FairParamList.h"
4#include "TObjArray.h"
5
6// #include <iostream>
7// #include <iomanip>
8
9CbmGeoSttPar::CbmGeoSttPar(const char* name, const char* title, const char* context)
10 : FairParGenericSet(name, title, context)
13{}
14
16
18{
19 if (fGeoSensNodes)
20 delete fGeoSensNodes;
21 if (fGeoPassNodes)
22 delete fGeoPassNodes;
23}
24
25void CbmGeoSttPar::putParams(FairParamList* l)
26{
27 if (!l)
28 return;
29 l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
30 l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
31}
32
34{
35 if (!l)
36 return kFALSE;
37 if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes))
38 return kFALSE;
39 if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes))
40 return kFALSE;
41
42 return kTRUE;
43}
bool Bool_t
constexpr Bool_t kFALSE
constexpr Bool_t kTRUE
TObjArray * fGeoPassNodes
List of FairGeoNodes for sensitive volumes.
void clear(void)
CbmGeoSttPar(const char *name="CbmGeoSttPar", const char *title="Stt Geometry Parameters", const char *context="TestDefaultContext")
List of FairGeoNodes for sensitive volumes.
void putParams(FairParamList *)
Bool_t getParams(FairParamList *)
TObjArray * fGeoSensNodes