FairRoot/PandaRoot
PndGeoFtsPar.cxx
Go to the documentation of this file.
1 //
2 //
3 
4 #include "PndGeoFtsPar.h"
5 #include "FairParamList.h"
6 #include <iostream>
7 #include <iomanip>
8 
10 
11 PndGeoFtsPar::PndGeoFtsPar(const char* name,const char* title,const char* context)
12  : FairParGenericSet(name,title,context),
13  fGeoSensNodes(new TObjArray()),
14  fGeoPassNodes(new TObjArray()),
15  fGeoType(-1),
16  fTubeInRad(0),
17  fTubeOutRad(0)
18 {
19 }
20 
22 {
23 }
24 
26 {
27  if(fGeoSensNodes) {
28  fGeoSensNodes->Delete();
29  delete fGeoSensNodes;
30  }
31  if(fGeoPassNodes) {
32  fGeoPassNodes->Delete();
33  delete fGeoPassNodes;
34  }
35 }
36 
37 void PndGeoFtsPar::putParams(FairParamList* l)
38 {
39  if (!l) return;
40  l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
41  l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
42  l->add("Tube Innen Radius", fTubeInRad);
43  l->add("Tube Outer Radius", fTubeOutRad);
44  l->add("Geometry Type", fGeoType);
45 }
46 
47 Bool_t PndGeoFtsPar::getParams(FairParamList* l)
48 {
49  if (!l) return kFALSE;
50  if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes)) return kFALSE;
51  if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) return kFALSE;
52  if (!l->fill("Tube Innen Radius", &fTubeInRad) ) return kFALSE;
53  if (!l->fill("Tube Outer Radius", &fTubeOutRad)) return kFALSE;
54  if (!l->fill("Geometry Type", &fGeoType)) return kFALSE;
55 
56  return kTRUE;
57 }
TObjArray * fGeoSensNodes
Definition: PndGeoFtsPar.h:14
~PndGeoFtsPar(void)
Int_t fGeoType
Definition: PndGeoFtsPar.h:16
void putParams(FairParamList *)
Bool_t getParams(FairParamList *)
Double_t fTubeInRad
Definition: PndGeoFtsPar.h:17
ClassImp(PndGeoFtsPar) PndGeoFtsPar
Definition: PndGeoFtsPar.cxx:9
TObjArray * fGeoPassNodes
Definition: PndGeoFtsPar.h:15
TString name
Double_t fTubeOutRad
Definition: PndGeoFtsPar.h:17
void clear(void)