CbmRoot
CbmGeoPassivePar.cxx
Go to the documentation of this file.
1 //*-- AUTHOR : Denis Bertini
2 //*-- Created : 21/06/2005
3 
4 #include "CbmGeoPassivePar.h"
5 
6 #include "FairParamList.h"
7 
8 #include "TObjArray.h"
9 
11 
12  CbmGeoPassivePar::CbmGeoPassivePar(const char* name,
13  const char* title,
14  const char* context)
15  : FairParGenericSet(name, title, context)
16  , fGeoSensNodes(new TObjArray())
17  , fGeoPassNodes(new TObjArray()) {}
18 
20 
22  if (fGeoSensNodes) delete fGeoSensNodes;
23  if (fGeoPassNodes) delete fGeoPassNodes;
24 }
25 
26 void CbmGeoPassivePar::putParams(FairParamList* l) {
27  if (!l) return;
28  l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
29  l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
30 }
31 
32 Bool_t CbmGeoPassivePar::getParams(FairParamList* l) {
33  if (!l) return kFALSE;
34  if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes))
35  return kFALSE;
36  if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) return kFALSE;
37 
38  return kTRUE;
39 }
CbmGeoPassivePar::~CbmGeoPassivePar
~CbmGeoPassivePar(void)
Definition: CbmGeoPassivePar.cxx:19
ClassImp
ClassImp(CbmGeoPassivePar) CbmGeoPassivePar
Definition: CbmGeoPassivePar.cxx:10
CbmGeoPassivePar::CbmGeoPassivePar
CbmGeoPassivePar(const char *name="CbmGeoPassivePar", const char *title="Passive Geometry Parameters", const char *context="TestDefaultContext")
CbmGeoPassivePar
Definition: CbmGeoPassivePar.h:6
CbmGeoPassivePar::fGeoPassNodes
TObjArray * fGeoPassNodes
Definition: CbmGeoPassivePar.h:9
CbmGeoPassivePar::putParams
void putParams(FairParamList *)
Definition: CbmGeoPassivePar.cxx:26
CbmGeoPassivePar::fGeoSensNodes
TObjArray * fGeoSensNodes
Definition: CbmGeoPassivePar.h:8
CbmGeoPassivePar::clear
void clear(void)
Definition: CbmGeoPassivePar.cxx:21
CbmGeoPassivePar::getParams
Bool_t getParams(FairParamList *)
Definition: CbmGeoPassivePar.cxx:32
CbmGeoPassivePar.h