BmnRoot
Loading...
Searching...
No Matches
BmnTOF1GeoPar.cxx
Go to the documentation of this file.
1//--------------------------------------------------------------------------------------------------------------------------------------
2#include "BmnTOF1GeoPar.h"
3#include "FairParamList.h"
4#include <iostream>
5#include <iomanip>
6
7using namespace std;
8
9BmnTOF1GeoPar::BmnTOF1GeoPar(const char* name,const char* title,const char* context)
10 : FairParGenericSet(name,title,context)
11{
12 fGeoSensNodes = new TObjArray();
13 fGeoPassNodes = new TObjArray();
14}
15//--------------------------------------------------------------------------------------------------------------------------------------
16BmnTOF1GeoPar::~BmnTOF1GeoPar(void) // FIXME ???? memleak?
17{
18
19}
20//--------------------------------------------------------------------------------------------------------------------------------------
21// probably the next funtions can be deleted FIXME: ?????????
23{
26}
27//--------------------------------------------------------------------------------------------------------------------------------------
28void BmnTOF1GeoPar::putParams(FairParamList *ptr)
29{
30 if(!ptr) return;
31
32 ptr->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
33 ptr->addObject("FairGeoNodes Passive List", fGeoPassNodes);
34}
35//--------------------------------------------------------------------------------------------------------------------------------------
36Bool_t BmnTOF1GeoPar::getParams(FairParamList *ptr)
37{
38 if(!ptr) return kFALSE;
39
40 if(!ptr->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes)) return kFALSE;
41 if(!ptr->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) return kFALSE;
42
43return kTRUE;
44}
45//--------------------------------------------------------------------------------------------------------------------------------------
46
Bool_t getParams(FairParamList *)
void clear(void)
void putParams(FairParamList *)
TObjArray * fGeoPassNodes
BmnTOF1GeoPar(const char *name="BmnTOF1GeoPar", const char *title="TOF1 Geometry Parameters", const char *context="TOF1DefaultContext")
TObjArray * fGeoSensNodes
STL namespace.