FairRoot/PandaRoot
PndEmcRecoPar.cxx
Go to the documentation of this file.
1 // PndEmcRecoPar
3 //
4 // Container class for Reconstruction parameters
5 //
7 
8 #include "PndEmcRecoPar.h"
9 
10 
12 
13 PndEmcRecoPar::PndEmcRecoPar(const char* name,const char* title,
14  const char* context)
15  : FairParGenericSet(name,title,context), fEnergyThresholdBarrel(0), fEnergyThresholdFWD(0), fEnergyThresholdBWD(0), fEnergyThresholdShashlyk(0), fClusterActiveTime(0.), fEmcClusterPosMethod(), fOffsetParmA(0), fOffsetParmB(0), fOffsetParmC(0), fEmcDigiPositionDepthPWO(0), fEmcDigiPositionDepthShashlyk(0), fMaxECut(0), fNeighbourECut(0), fCutSlope(0), fCutOffset(0), fERatioCorr(0), fTheNeighbourLevel(0), fMoliereRadius(0), fMoliereRadiusShashlyk(0), fExponentialConstant(0), fMaxIterations(0), fCentroidShift(0), fMaxBumps(0), fMinDigiEnergy(0)
16 {
17  clear();
18 }
19 
20 void PndEmcRecoPar::putParams(FairParamList* list)
21 {
22  if(!list) return;
23  list->add("EnergyThresholdBarrel",fEnergyThresholdBarrel);
24  list->add("EnergyThresholdFWD",fEnergyThresholdFWD);
25  list->add("EnergyThresholdBWD",fEnergyThresholdBWD);
26  list->add("EnergyThresholdShashlyk",fEnergyThresholdShashlyk);
27  list->add("ClusterActiveTime",fClusterActiveTime);
28  list->add("EmcClusterPosMethod",fEmcClusterPosMethod);
29  list->add("OffsetParmA",fOffsetParmA);
30  list->add("OffsetParmB",fOffsetParmB);
31  list->add("OffsetParmC",fOffsetParmC);
32  list->add("EmcDigiPositionDepthPWO",fEmcDigiPositionDepthPWO);
33  list->add("EmcDigiPositionDepthShashlyk",fEmcDigiPositionDepthShashlyk);
34 
35  // parameters related to bump splitting
36  list->add("MaxECut",fMaxECut);
37  list->add("NeighbourECut",fNeighbourECut);
38  list->add("CutSlope",fCutSlope);
39  list->add("CutOffset",fCutOffset);
40  list->add("ERatioCorr",fERatioCorr);
41  list->add("TheNeighbourLevel",fTheNeighbourLevel);
42  list->add("MoliereRadius",fMoliereRadius);
43  list->add("MoliereRadiusShashlyk",fMoliereRadiusShashlyk);
44  list->add("ExponentialConstant",fExponentialConstant);
45  list->add("MaxIterations",fMaxIterations);
46  list->add("CentroidShift",fCentroidShift);
47  list->add("MaxBumps",fMaxBumps);
48  list->add("MinDigiEnergy",fMinDigiEnergy);
49 }
50 
51 Bool_t PndEmcRecoPar::getParams(FairParamList* list)
52 {
53  if (!list) return kFALSE;
54  if (!list->fill("EnergyThresholdBarrel",&fEnergyThresholdBarrel)) return kFALSE;
55  if (!list->fill("EnergyThresholdFWD",&fEnergyThresholdFWD)) return kFALSE;
56  if (!list->fill("EnergyThresholdBWD",&fEnergyThresholdBWD)) return kFALSE;
57  if (!list->fill("EnergyThresholdShashlyk",&fEnergyThresholdShashlyk)) return kFALSE;
58  if (!list->fill("ClusterActiveTime",&fClusterActiveTime)) return kFALSE;
59  if (!list->fill("EmcClusterPosMethod",fEmcClusterPosMethod,10)) return kFALSE;
60  if (!list->fill("OffsetParmA",&fOffsetParmA)) return kFALSE;
61  if (!list->fill("OffsetParmB",&fOffsetParmB)) return kFALSE;
62  if (!list->fill("OffsetParmC",&fOffsetParmC)) return kFALSE;
63  if (!list->fill("EmcDigiPositionDepthPWO",&fEmcDigiPositionDepthPWO)) return kFALSE;
64  if (!list->fill("EmcDigiPositionDepthShashlyk",&fEmcDigiPositionDepthShashlyk)) return kFALSE;
65 
66  // parameters related to bump splitting
67  if (!list->fill("MaxECut",&fMaxECut)) return kFALSE;
68  if (!list->fill("NeighbourECut",&fNeighbourECut)) return kFALSE;
69  if (!list->fill("CutSlope",&fCutSlope)) return kFALSE;
70  if (!list->fill("CutOffset",&fCutOffset)) return kFALSE;
71  if (!list->fill("ERatioCorr",&fERatioCorr)) return kFALSE;
72  if (!list->fill("TheNeighbourLevel",&fTheNeighbourLevel)) return kFALSE;
73  if (!list->fill("MoliereRadius",&fMoliereRadius)) return kFALSE;
74  if (!list->fill("MoliereRadiusShashlyk",&fMoliereRadiusShashlyk)) return kFALSE;
75  if (!list->fill("ExponentialConstant",&fExponentialConstant)) return kFALSE;
76  if (!list->fill("MaxIterations",&fMaxIterations)) return kFALSE;
77  if (!list->fill("CentroidShift",&fCentroidShift)) return kFALSE;
78  if (!list->fill("MaxBumps",&fMaxBumps)) return kFALSE;
79  if (!list->fill("MinDigiEnergy",&fMinDigiEnergy)) return kFALSE;
80 
81  return kTRUE;
82 }
83 
Double_t fERatioCorr
Definition: PndEmcRecoPar.h:73
Double_t fCutSlope
Definition: PndEmcRecoPar.h:71
Double_t fEnergyThresholdShashlyk
Definition: PndEmcRecoPar.h:53
Double_t fOffsetParmB
Definition: PndEmcRecoPar.h:61
Double_t fOffsetParmA
Definition: PndEmcRecoPar.h:60
Double_t fMinDigiEnergy
Definition: PndEmcRecoPar.h:82
Double_t fEnergyThresholdFWD
Definition: PndEmcRecoPar.h:51
Double_t fEmcDigiPositionDepthPWO
Definition: PndEmcRecoPar.h:64
Double_t fOffsetParmC
Definition: PndEmcRecoPar.h:62
Double_t fEnergyThresholdBarrel
Definition: PndEmcRecoPar.h:50
Double_t fMoliereRadiusShashlyk
Definition: PndEmcRecoPar.h:77
Double_t fEmcDigiPositionDepthShashlyk
Definition: PndEmcRecoPar.h:65
Double_t fCutOffset
Definition: PndEmcRecoPar.h:72
Double_t fClusterActiveTime
Definition: PndEmcRecoPar.h:54
Int_t fMaxIterations
Definition: PndEmcRecoPar.h:79
Double_t fNeighbourECut
Definition: PndEmcRecoPar.h:70
void putParams(FairParamList *list)
ClassImp(PndEmcRecoPar) PndEmcRecoPar
TString name
Double_t fExponentialConstant
Definition: PndEmcRecoPar.h:78
Double_t fEnergyThresholdBWD
Definition: PndEmcRecoPar.h:52
Bool_t getParams(FairParamList *list)
Double_t fMoliereRadius
Definition: PndEmcRecoPar.h:76
Double_t fMaxECut
Definition: PndEmcRecoPar.h:69
Text_t fEmcClusterPosMethod[10]
Definition: PndEmcRecoPar.h:57
Parameter set for Emc Reco.
Definition: PndEmcRecoPar.h:12
Int_t fTheNeighbourLevel
Definition: PndEmcRecoPar.h:74
Double_t fCentroidShift
Definition: PndEmcRecoPar.h:80