BmnRoot
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{
18 fGeoSensNodes = new TObjArray();
19 fGeoPassNodes = new TObjArray();
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
42Bool_t BmnHodoGeoPar::getParams(FairParamList* l)
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;
57}
void putParams(FairParamList *)
static bool CheckIfSensitive(std::string name)
TObjArray * fGeoSensNodes
Bool_t getParams(FairParamList *)
TObjArray * fGeoPassNodes
BmnHodoGeoPar(const char *name="BmnHodoGeoPar", const char *title="Hodo Geometry Parameters", const char *context="HodoDefaultContext")
void clear(void)
STL namespace.