FairRoot/PandaRoot
PndEmcDigiPar.cxx
Go to the documentation of this file.
1 // PndEmcDigiPar
3 //
4 // Container class for Digitisation parameters
5 // class is inherited from FairParGenericSet
6 //
8 
9 #include "PndEmcDigiPar.h"
10 #include <iostream>
11 
13 
14 PndEmcDigiPar::PndEmcDigiPar(const char* name,const char* title,
15  const char* context)
16 : FairParGenericSet(name,title,context),
17  fEnergyHitThreshold(0), fDetectedPhotonsPerMeV(0), fDetectedPhotonsPerMeV_PMT(0), fSensitiveAreaAPD(0), fSensitiveAreaVPT(0), fQuantumEfficiencyAPD(0), fQuantumEfficiencyVPT(0), fQuantumEfficiencyPMT(0), fExcessNoiseFactorAPD(0), fExcessNoiseFactorVPT(0), fExcessNoiseFactorPMT(0), fIncoherent_elec_noise_width_GeV_APD(0), fIncoherent_elec_noise_width_GeV_VPT(0), fEnergyRange(0), fEnergyRangeBW(0), fFirstSamplePhase(0), fASIC_Shaping_int_time(0), fPMT_Shaping_int_time(0), fPMT_Shaping_diff_time(0), fCrystal_time_constant(0), fShashlyk_time_constant(0), fShashlykSamplingFactor(0), fSampleRate(0), fSampleRate_PMT(0), fEnergyDigiThreshold(0), fNBits(0), fNumber_of_samples_in_waveform(0), fNumber_of_samples_in_waveform_pmt(0), fUse_shaped_noise(0), fUse_photon_statistic(0), fUseDigiEffectiveSmearing(0), fNoiseAllChannels(0), fUse_nonuniformity(0)
18 {
19  clear();//WHY?
20 }
21 
22 void PndEmcDigiPar::putParams(FairParamList* list)
23 {
24  if(!list) return;
25  list->add("EnergyHitThreshold",fEnergyHitThreshold);
26  list->add("DetectedPhotonsPerMeV",fDetectedPhotonsPerMeV);
27  list->add("DetectedPhotonsPerMeV_PMT",fDetectedPhotonsPerMeV_PMT);
28  list->add("SensitiveAreaAPD",fSensitiveAreaAPD);
29  list->add("SensitiveAreaVPT",fSensitiveAreaVPT);
30  list->add("QuantumEfficiencyAPD",fQuantumEfficiencyAPD);
31  list->add("QuantumEfficiencyVPT",fQuantumEfficiencyVPT);
32  list->add("QuantumEfficiencyPMT",fQuantumEfficiencyPMT);
33  list->add("ExcessNoiseFactorAPD",fExcessNoiseFactorAPD);
34  list->add("ExcessNoiseFactorVPT",fExcessNoiseFactorVPT);
35  list->add("ExcessNoiseFactorPMT",fExcessNoiseFactorPMT);
36  list->add("Incoherent_elec_noise_width_GeV_APD",fIncoherent_elec_noise_width_GeV_APD);
37  list->add("Incoherent_elec_noise_width_GeV_VPT",fIncoherent_elec_noise_width_GeV_VPT);
38  list->add("EnergyRange",fEnergyRange);
39  list->add("EnergyRangeBW",fEnergyRangeBW);
40  list->add("FirstSamplePhase",fFirstSamplePhase);
41  list->add("ASIC_Shaping_int_time",fASIC_Shaping_int_time);
42  list->add("PMT_Shaping_int_time",fPMT_Shaping_int_time);
43  list->add("PMT_Shaping_diff_time",fPMT_Shaping_diff_time);
44  list->add("FWD_Shaping_int_time",fFWD_Shaping_int_time);
45  list->add("FWD_time_constant",fFWD_time_constant);
46  list->add("Crystal_time_constant",fCrystal_time_constant);
47  list->add("Shashlyk_time_constant",fShashlyk_time_constant);
48  list->add("ShashlykSamplingFactor",fShashlykSamplingFactor);
49  list->add("SampleRate",fSampleRate);
50  list->add("SampleRate_PMT",fSampleRate_PMT);
51  list->add("SampleRate_FWD",fSampleRate_FWD);
52  list->add("EnergyDigiThreshold",fEnergyDigiThreshold);
53  list->add("NBits",fNBits);
54  list->add("Number_of_samples_in_waveform",fNumber_of_samples_in_waveform);
55  list->add("Number_of_samples_in_waveform_pmt",fNumber_of_samples_in_waveform_pmt);
56  list->add("Number_of_samples_in_waveform_fwd",fNumber_of_samples_in_waveform_fwd);
57  list->add("Use_shaped_noise",fUse_shaped_noise);
58  list->add("Use_photon_statistic",fUse_photon_statistic);
59  list->add("UseDigiEffectiveSmearing",fUseDigiEffectiveSmearing);
60  list->add("NoiseAllChannels",fNoiseAllChannels);
61  list->add("Use_nonuniformity",fUse_nonuniformity);
62 }
63 
64 Bool_t PndEmcDigiPar::getParams(FairParamList* list)
65 {
66  if (!list) return kFALSE;
67  if (!list->fill("EnergyHitThreshold",&fEnergyHitThreshold)) return kFALSE;
68  if (!list->fill("DetectedPhotonsPerMeV",&fDetectedPhotonsPerMeV)) return kFALSE;
69  if (!list->fill("DetectedPhotonsPerMeV_PMT",&fDetectedPhotonsPerMeV_PMT)) return kFALSE;
70  if (!list->fill("SensitiveAreaAPD",&fSensitiveAreaAPD)) return kFALSE;
71  if (!list->fill("SensitiveAreaVPT",&fSensitiveAreaVPT)) return kFALSE;
72  if (!list->fill("QuantumEfficiencyAPD",&fQuantumEfficiencyAPD)) return kFALSE;
73  if (!list->fill("QuantumEfficiencyVPT",&fQuantumEfficiencyVPT)) return kFALSE;
74  if (!list->fill("QuantumEfficiencyPMT",&fQuantumEfficiencyPMT)) return kFALSE;
75  if (!list->fill("ExcessNoiseFactorAPD",&fExcessNoiseFactorAPD)) return kFALSE;
76  if (!list->fill("ExcessNoiseFactorVPT",&fExcessNoiseFactorVPT)) return kFALSE;
77  if (!list->fill("ExcessNoiseFactorPMT",&fExcessNoiseFactorPMT)) return kFALSE;
78  if (!list->fill("Incoherent_elec_noise_width_GeV_APD",&fIncoherent_elec_noise_width_GeV_APD)) return kFALSE;
79  if (!list->fill("Incoherent_elec_noise_width_GeV_VPT",&fIncoherent_elec_noise_width_GeV_VPT)) return kFALSE;
80  if (!list->fill("EnergyRange",&fEnergyRange)) return kFALSE;
81  if (!list->fill("EnergyRangeBW",&fEnergyRangeBW)) return kFALSE;
82  if (!list->fill("FirstSamplePhase",&fFirstSamplePhase)) return kFALSE;
83  if (!list->fill("ASIC_Shaping_int_time",&fASIC_Shaping_int_time)) return kFALSE;
84  if (!list->fill("PMT_Shaping_int_time",&fPMT_Shaping_int_time)) return kFALSE;
85  if (!list->fill("PMT_Shaping_diff_time",&fPMT_Shaping_diff_time)) return kFALSE;
86  if (!list->fill("FWD_Shaping_int_time",&fFWD_Shaping_int_time)) return kFALSE;
87  if (!list->fill("FWD_time_constant",&fFWD_time_constant)) return kFALSE;
88  if (!list->fill("Crystal_time_constant",&fCrystal_time_constant)) return kFALSE;
89  if (!list->fill("Shashlyk_time_constant",&fShashlyk_time_constant)) return kFALSE;
90  if (!list->fill("ShashlykSamplingFactor",&fShashlykSamplingFactor)) return kFALSE;
91  if (!list->fill("SampleRate",&fSampleRate)) return kFALSE;
92  if (!list->fill("SampleRate_PMT",&fSampleRate_PMT)) return kFALSE;
93  if (!list->fill("SampleRate_FWD",&fSampleRate_FWD)) return kFALSE;
94  if (!list->fill("EnergyDigiThreshold",&fEnergyDigiThreshold)) return kFALSE;
95  if (!list->fill("NBits",&fNBits)) return kFALSE;
96  if (!list->fill("Number_of_samples_in_waveform",&fNumber_of_samples_in_waveform)) return kFALSE;
97  if (!list->fill("Number_of_samples_in_waveform_pmt",&fNumber_of_samples_in_waveform_pmt)) return kFALSE;
98  if (!list->fill("Number_of_samples_in_waveform_fwd",&fNumber_of_samples_in_waveform_fwd)) return kFALSE;
99  if (!list->fill("Use_shaped_noise",&fUse_shaped_noise)) return kFALSE;
100  if (!list->fill("Use_photon_statistic",&fUse_photon_statistic)) return kFALSE;
101  if (!list->fill("UseDigiEffectiveSmearing",&fUseDigiEffectiveSmearing)) return kFALSE;
102  if (!list->fill("NoiseAllChannels",&fNoiseAllChannels)) return kFALSE;
103  if (!list->fill("Use_nonuniformity",&fUse_nonuniformity)) return kFALSE;
104 
105  return kTRUE;
106 }
107 
Double_t fQuantumEfficiencyAPD
Definition: PndEmcDigiPar.h:70
Double_t fSensitiveAreaVPT
Definition: PndEmcDigiPar.h:69
Double_t fSampleRate_FWD
Definition: PndEmcDigiPar.h:91
Double_t fASIC_Shaping_int_time
Definition: PndEmcDigiPar.h:81
Double_t fQuantumEfficiencyPMT
Definition: PndEmcDigiPar.h:72
void putParams(FairParamList *list)
Int_t fNumber_of_samples_in_waveform_pmt
Definition: PndEmcDigiPar.h:95
Double_t fShashlykSamplingFactor
Definition: PndEmcDigiPar.h:88
Double_t fEnergyDigiThreshold
Definition: PndEmcDigiPar.h:92
Double_t fEnergyHitThreshold
Definition: PndEmcDigiPar.h:65
Double_t fFWD_Shaping_int_time
Definition: PndEmcDigiPar.h:84
Int_t fNumber_of_samples_in_waveform_fwd
Definition: PndEmcDigiPar.h:96
Double_t fDetectedPhotonsPerMeV
Definition: PndEmcDigiPar.h:66
Double_t fPMT_Shaping_diff_time
Definition: PndEmcDigiPar.h:83
Double_t fExcessNoiseFactorPMT
Definition: PndEmcDigiPar.h:75
Double_t fFirstSamplePhase
Definition: PndEmcDigiPar.h:80
Double_t fFWD_time_constant
Definition: PndEmcDigiPar.h:85
Double_t fEnergyRangeBW
Definition: PndEmcDigiPar.h:79
parameter set of Emc digitisation
Definition: PndEmcDigiPar.h:12
Bool_t getParams(FairParamList *list)
Double_t fShashlyk_time_constant
Definition: PndEmcDigiPar.h:87
Int_t fUseDigiEffectiveSmearing
Definition: PndEmcDigiPar.h:99
Double_t fEnergyRange
Definition: PndEmcDigiPar.h:78
TString name
Int_t fNoiseAllChannels
Int_t fNumber_of_samples_in_waveform
Definition: PndEmcDigiPar.h:94
Double_t fExcessNoiseFactorAPD
Definition: PndEmcDigiPar.h:73
Double_t fIncoherent_elec_noise_width_GeV_APD
Definition: PndEmcDigiPar.h:76
Double_t fIncoherent_elec_noise_width_GeV_VPT
Definition: PndEmcDigiPar.h:77
Double_t fSampleRate_PMT
Definition: PndEmcDigiPar.h:90
Int_t fUse_nonuniformity
ClassImp(PndAnaContFact)
Double_t fPMT_Shaping_int_time
Definition: PndEmcDigiPar.h:82
Double_t fCrystal_time_constant
Definition: PndEmcDigiPar.h:86
Int_t fUse_photon_statistic
Definition: PndEmcDigiPar.h:98
Double_t fDetectedPhotonsPerMeV_PMT
Definition: PndEmcDigiPar.h:67
Double_t fSensitiveAreaAPD
Definition: PndEmcDigiPar.h:68
Double_t fExcessNoiseFactorVPT
Definition: PndEmcDigiPar.h:74
Double_t fQuantumEfficiencyVPT
Definition: PndEmcDigiPar.h:71
Double_t fSampleRate
Definition: PndEmcDigiPar.h:89
Int_t fUse_shaped_noise
Definition: PndEmcDigiPar.h:97