FairRoot/PandaRoot
PndRichGeoPar.cxx
Go to the documentation of this file.
1 #include "PndRichGeoPar.h"
2 
3 #include "FairParamList.h"
4 
5 #include "TObjArray.h"
6 
7 #include <iostream>
8 
10 
12  const char* title,
13  const char* context)
14  : FairParGenericSet(name,title,context),
15  fGeoSensNodes(new TObjArray()),
16  fGeoPassNodes(new TObjArray())
17 {
18 }
19 
21 {
22 }
23 
25 {
26  if(fGeoSensNodes) { delete fGeoSensNodes; }
27  if(fGeoPassNodes) { delete fGeoPassNodes; }
28 }
29 
30 void PndRichGeoPar::putParams(FairParamList* l)
31 {
32  if (!l) { return; }
33  l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
34  l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
35 }
36 
38 {
39  if (!l) { return kFALSE; }
40  if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes)) { return kFALSE; }
41  if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) { return kFALSE; }
42  return kTRUE;
43 }
Bool_t getParams(FairParamList *)
TObjArray * fGeoPassNodes
Definition: PndRichGeoPar.h:17
void putParams(FairParamList *)
void clear(void)
TString name
TObjArray * fGeoSensNodes
Definition: PndRichGeoPar.h:14
ClassImp(PndAnaContFact)