BmnRoot
Loading...
Searching...
No Matches
BmnScWallGeoPar.cxx
Go to the documentation of this file.
1/*************************************************************************************
2 *
3 * Class BmnScWallGeoPar
4 *
5 ************************************************************************************/
6#include "BmnScWallGeoPar.h"
7
8#include "BmnScWall.h"
9#include "FairParamList.h"
10
11#include <iomanip>
12#include <iostream>
13
14using namespace std;
15
16BmnScWallGeoPar::BmnScWallGeoPar(const char* name, const char* title, const char* context)
17 : FairParGenericSet(name, title, context)
18{
19 fGeoSensNodes = new TObjArray();
20 fGeoPassNodes = new TObjArray();
21}
22
24
25// probably the next funtions can be deleted
26
28{
29 if (fGeoSensNodes)
30 delete fGeoSensNodes;
31 if (fGeoPassNodes)
32 delete fGeoPassNodes;
33}
34
35void BmnScWallGeoPar::putParams(FairParamList* l)
36{
37 if (!l)
38 return;
39 l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
40 l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
41}
42
43Bool_t BmnScWallGeoPar::getParams(FairParamList* l)
44{
45 if (!l)
46 return kFALSE;
47 if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes))
48 return kFALSE;
49 if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes))
50 return kFALSE;
51
52 return kTRUE;
53}
54
55//------ CheckIfSensitive -----------------------------------------------
57{
58 return name.find("sens") != std::string::npos && name.find("cutted") != std::string::npos;
59}
static bool CheckIfSensitive(std::string name)
TObjArray * fGeoPassNodes
Bool_t getParams(FairParamList *)
TObjArray * fGeoSensNodes
void putParams(FairParamList *)
BmnScWallGeoPar(const char *name="BmnScWallGeoPar", const char *title="ScWall Geometry Parameters", const char *context="ScWallDefaultContext")
STL namespace.