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