LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "OpDigiProperties.h"
Public Member Functions | |
OpDigiProperties (fhicl::ParameterSet const &pset, art::ActivityRegistry ®) | |
~OpDigiProperties () | |
void | reconfigure (fhicl::ParameterSet const &p) |
double | SampleFreq () |
Returns sample frequency in MHz. More... | |
double | TimeBegin () |
Returns window start time in us ... with respect to MC photon T0. More... | |
double | TimeEnd () |
Returns window end time in us ... with respect to MC photon T0. More... | |
std::vector< double > | WaveformInit (std::string WaveformFile) |
optdata::TimeSlice_t | GetTimeSlice (double time_ns) |
double | QE () const |
Returns quantum efficiency. More... | |
double | DarkRate () const |
Returns rate of dark noise. More... | |
double | PedFlucRate () const |
Returns rate of pedestal fluctuation. More... | |
optdata::ADC_Count_t | PedFlucAmp () const |
Returns amplitude of pedestal fluctuation. More... | |
optdata::ADC_Count_t | SaturationScale () const |
Returns the saturation scale of the electronics. More... | |
optdata::ADC_Count_t | ADCBaseline () const |
Returns the ADCBaseline set mean value. More... | |
double | WFTimeConstant () const |
Returns WF time constant used in analytical model. More... | |
double | WFPowerFactor () const |
Returns WF power factor used in analytical model. More... | |
double | LowGainMean () const |
Returns set mean gain value for LOW gain. More... | |
double | HighGainMean () const |
Returns set mean gain value for HIGH gain. More... | |
double | LowGainMean (optdata::Channel_t ch) const |
Returns generated LOW gain value for input channel (PMT-to-PMT spread applied) More... | |
double | HighGainMean (optdata::Channel_t ch) const |
Returns generated HIGH gain value for input channel (PMT-to-PMT spread applied) More... | |
double | GainSpread () const |
Returns set value for intrinsic gain spread (common to HIGH and LOW) More... | |
double | GainSpread_PMT2PMT () const |
Returns set value for PMT-to-PMT gain spread. More... | |
double | LowGain (optdata::Channel_t ch) const |
Generate & return LOW gain value for an input channel using mean & spread for this channel. More... | |
double | HighGain (optdata::Channel_t ch) const |
Generate & return HIGH gain value for an input channel using mean & spread for this channel. More... | |
std::vector< double > | SinglePEWaveform () const |
Returns a vector of double which represents a binned SPE waveform. More... | |
std::vector< double > | HighGainArray () const |
Returns an array of HIGH gain. More... | |
std::vector< double > | LowGainArray () const |
Returns an array of LOW gain. More... | |
std::vector< double > | GainSpreadArray () const |
Returns an array of gain spread. More... | |
std::vector< optdata::ADC_Count_t > | PedMeanArray () const |
Returns an array of generated pedestal mean value per channel. More... | |
double | GetSPEArea () |
Utility function ... To be verified (Kazu 08/05/13) More... | |
double | GetSPECumulativeArea () |
Utility function ... To be verified (Kazu 08/05/13) More... | |
double | GetSPEAmplitude () |
Utility function ... To be verified (Kazu 08/05/13) More... | |
double | GetSPECumulativeAmplitude () |
Utility function ... To be verified (Kazu 08/05/13) More... | |
Private Member Functions | |
std::vector< double > | GenEmpiricalWF (std::string WaveformFile) |
std::vector< double > | GenAnalyticalWF () |
void | GenerateWaveform () |
void | FillGainArray () |
void | FillPedMeanArray () |
Private Attributes | |
double | fSampleFreq |
double | fTimeBegin |
double | fTimeEnd |
double | fPERescale |
bool | fUseEmpiricalGain |
bool | fUseEmpiricalShape |
double | fQE |
double | fPedFlucRate |
optdata::ADC_Count_t | fPedFlucAmp |
double | fDarkRate |
optdata::ADC_Count_t | fSaturationScale |
optdata::ADC_Count_t | fADCBaseline |
double | fADCBaseSpread |
double | fLowGainMean |
double | fHighGainMean |
double | fVoltageAmpForSPE |
double | fWFTimeConstant |
double | fWFPowerFactor |
double | fWFLength |
double | fGainSpread |
double | fGainSpread_PMT2PMT |
TF1 * | fAnalyticalSPE |
std::string | fHighGainFile |
std::string | fLowGainFile |
std::string | fWaveformFile |
std::string | fGainSpreadFile |
std::vector< double > | fWaveform |
bool | fChargeNormalized |
std::vector< double > | fLowGainArray |
std::vector< double > | fHighGainArray |
std::vector< double > | fGainSpreadArray |
std::vector< optdata::ADC_Count_t > | fPedMeanArray |
art::ServiceHandle< geo::Geometry > | fGeometry |
Definition at line 29 of file OpDigiProperties.h.
opdet::OpDigiProperties::OpDigiProperties | ( | fhicl::ParameterSet const & | pset, |
art::ActivityRegistry & | reg | ||
) |
Definition at line 24 of file OpDigiProperties_service.cc.
References reconfigure().
opdet::OpDigiProperties::~OpDigiProperties | ( | ) |
Definition at line 32 of file OpDigiProperties_service.cc.
|
inline |
Returns the ADCBaseline set mean value.
Definition at line 67 of file OpDigiProperties.h.
References fADCBaseline.
|
inline |
|
private |
Definition at line 209 of file OpDigiProperties_service.cc.
References fGainSpread, fGainSpread_PMT2PMT, fGainSpreadArray, fGainSpreadFile, fGeometry, fHighGainArray, fHighGainFile, fHighGainMean, fLowGainArray, fLowGainFile, fLowGainMean, fUseEmpiricalGain, and geo::GeometryCore::NOpChannels().
Referenced by reconfigure().
|
private |
Definition at line 203 of file OpDigiProperties_service.cc.
References fADCBaseline, fADCBaseSpread, fGeometry, fPedMeanArray, and geo::GeometryCore::NOpChannels().
Referenced by reconfigure().
|
inline |
Returns set value for intrinsic gain spread (common to HIGH and LOW)
Definition at line 82 of file OpDigiProperties.h.
References fGainSpread.
|
inline |
Returns set value for PMT-to-PMT gain spread.
Definition at line 84 of file OpDigiProperties.h.
References fGainSpread_PMT2PMT, HighGain(), and LowGain().
|
inline |
Returns an array of gain spread.
Definition at line 97 of file OpDigiProperties.h.
References fGainSpreadArray.
|
private |
Definition at line 342 of file OpDigiProperties_service.cc.
References DEFINE_ART_SERVICE, e, fAnalyticalSPE, fChargeNormalized, fSampleFreq, fVoltageAmpForSPE, fWFLength, fWFPowerFactor, and fWFTimeConstant.
Referenced by GenerateWaveform().
|
private |
Definition at line 307 of file OpDigiProperties_service.cc.
References fChargeNormalized, fSampleFreq, and fWFLength.
Referenced by GenerateWaveform().
|
private |
Definition at line 292 of file OpDigiProperties_service.cc.
References fUseEmpiricalShape, fWaveform, fWaveformFile, GenAnalyticalWF(), and GenEmpiricalWF().
Referenced by reconfigure().
double opdet::OpDigiProperties::GetSPEAmplitude | ( | ) |
Utility function ... To be verified (Kazu 08/05/13)
Definition at line 48 of file OpDigiProperties_service.cc.
References fWaveform.
Referenced by PedMeanArray().
double opdet::OpDigiProperties::GetSPEArea | ( | ) |
Utility function ... To be verified (Kazu 08/05/13)
Definition at line 39 of file OpDigiProperties_service.cc.
References fWaveform.
Referenced by PedMeanArray().
double opdet::OpDigiProperties::GetSPECumulativeAmplitude | ( | ) |
Utility function ... To be verified (Kazu 08/05/13)
Definition at line 69 of file OpDigiProperties_service.cc.
References fWaveform.
Referenced by PedMeanArray().
double opdet::OpDigiProperties::GetSPECumulativeArea | ( | ) |
Utility function ... To be verified (Kazu 08/05/13)
Definition at line 57 of file OpDigiProperties_service.cc.
References fWaveform.
Referenced by PedMeanArray().
optdata::TimeSlice_t opdet::OpDigiProperties::GetTimeSlice | ( | double | time_ns | ) |
Convert the given time into time-slice number. Input time should be in ns unit and measurd w.r.t. MC photon T0
Definition at line 104 of file OpDigiProperties_service.cc.
References fSampleFreq, fTimeBegin, fTimeEnd, and max.
Referenced by TimeEnd().
double opdet::OpDigiProperties::HighGain | ( | optdata::Channel_t | ch | ) | const |
Generate & return HIGH gain value for an input channel using mean & spread for this channel.
Definition at line 99 of file OpDigiProperties_service.cc.
References fGainSpreadArray, and fHighGainArray.
Referenced by GainSpread_PMT2PMT().
|
inline |
Returns an array of HIGH gain.
Definition at line 93 of file OpDigiProperties.h.
References fHighGainArray.
|
inline |
Returns set mean gain value for HIGH gain.
Definition at line 75 of file OpDigiProperties.h.
References fHighGainMean, and LowGainMean().
double opdet::OpDigiProperties::HighGainMean | ( | optdata::Channel_t | ch | ) | const |
Returns generated HIGH gain value for input channel (PMT-to-PMT spread applied)
Definition at line 89 of file OpDigiProperties_service.cc.
References fHighGainArray.
double opdet::OpDigiProperties::LowGain | ( | optdata::Channel_t | ch | ) | const |
Generate & return LOW gain value for an input channel using mean & spread for this channel.
Definition at line 94 of file OpDigiProperties_service.cc.
References fGainSpreadArray, and fLowGainArray.
Referenced by GainSpread_PMT2PMT().
|
inline |
Returns an array of LOW gain.
Definition at line 95 of file OpDigiProperties.h.
References fLowGainArray.
|
inline |
Returns set mean gain value for LOW gain.
Definition at line 73 of file OpDigiProperties.h.
References fLowGainMean.
Referenced by HighGainMean().
double opdet::OpDigiProperties::LowGainMean | ( | optdata::Channel_t | ch | ) | const |
Returns generated LOW gain value for input channel (PMT-to-PMT spread applied)
Definition at line 83 of file OpDigiProperties_service.cc.
References fLowGainArray.
|
inline |
Returns amplitude of pedestal fluctuation.
Definition at line 63 of file OpDigiProperties.h.
References fPedFlucAmp.
|
inline |
Returns rate of pedestal fluctuation.
Definition at line 61 of file OpDigiProperties.h.
References fPedFlucRate.
|
inline |
Returns an array of generated pedestal mean value per channel.
Definition at line 99 of file OpDigiProperties.h.
References fPedMeanArray, GetSPEAmplitude(), GetSPEArea(), GetSPECumulativeAmplitude(), and GetSPECumulativeArea().
|
inline |
Returns quantum efficiency.
Definition at line 57 of file OpDigiProperties.h.
References fQE.
Referenced by opdet::FlashHypothesisCreator::CreateFlashHypothesesFromSegment(), cosmic::BeamFlashTrackMatchTaggerAlg::GetMIPHypotheses(), and opdet::SimPhotonCounterAlg::InitializeCounters().
void opdet::OpDigiProperties::reconfigure | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 113 of file OpDigiProperties_service.cc.
References fADCBaseline, fADCBaseSpread, fChargeNormalized, fDarkRate, fGainSpread, fGainSpread_PMT2PMT, fGainSpreadFile, fGeometry, fHighGainArray, fHighGainFile, fHighGainMean, FillGainArray(), FillPedMeanArray(), fLowGainArray, fLowGainFile, fLowGainMean, fPedFlucAmp, fPedFlucRate, fPedMeanArray, fPERescale, fQE, fSampleFreq, fSaturationScale, fTimeBegin, fTimeEnd, fUseEmpiricalGain, fUseEmpiricalShape, fVoltageAmpForSPE, fWaveformFile, fWFLength, fWFPowerFactor, fWFTimeConstant, GenerateWaveform(), fhicl::ParameterSet::get(), and geo::GeometryCore::NOpChannels().
Referenced by OpDigiProperties().
|
inline |
Returns sample frequency in MHz.
Definition at line 38 of file OpDigiProperties.h.
References fSampleFreq.
|
inline |
Returns the saturation scale of the electronics.
Definition at line 65 of file OpDigiProperties.h.
References fSaturationScale.
|
inline |
Returns a vector of double which represents a binned SPE waveform.
Definition at line 91 of file OpDigiProperties.h.
References fWaveform.
|
inline |
Returns window start time in us ... with respect to MC photon T0.
Definition at line 40 of file OpDigiProperties.h.
References fTimeBegin.
|
inline |
Returns window end time in us ... with respect to MC photon T0.
Definition at line 42 of file OpDigiProperties.h.
References fTimeEnd, GetTimeSlice(), and WaveformInit().
std::vector< double > opdet::OpDigiProperties::WaveformInit | ( | std::string | WaveformFile | ) |
DEPRECATED as far as Kazu is concerned for UBooNE PMT simulation. Any comment? –Kazu 08/05/2013
Definition at line 178 of file OpDigiProperties_service.cc.
References fPERescale.
Referenced by TimeEnd().
|
inline |
Returns WF power factor used in analytical model.
Definition at line 71 of file OpDigiProperties.h.
References fWFPowerFactor.
|
inline |
Returns WF time constant used in analytical model.
Definition at line 69 of file OpDigiProperties.h.
References fWFTimeConstant.
|
private |
Definition at line 130 of file OpDigiProperties.h.
Referenced by ADCBaseline(), FillPedMeanArray(), and reconfigure().
|
private |
Definition at line 131 of file OpDigiProperties.h.
Referenced by FillPedMeanArray(), and reconfigure().
|
private |
Definition at line 140 of file OpDigiProperties.h.
Referenced by GenAnalyticalWF().
|
private |
Definition at line 147 of file OpDigiProperties.h.
Referenced by GenAnalyticalWF(), GenEmpiricalWF(), and reconfigure().
|
private |
Definition at line 128 of file OpDigiProperties.h.
Referenced by DarkRate(), and reconfigure().
|
private |
Definition at line 138 of file OpDigiProperties.h.
Referenced by FillGainArray(), GainSpread(), and reconfigure().
|
private |
Definition at line 139 of file OpDigiProperties.h.
Referenced by FillGainArray(), GainSpread_PMT2PMT(), and reconfigure().
|
private |
Definition at line 150 of file OpDigiProperties.h.
Referenced by FillGainArray(), GainSpreadArray(), HighGain(), and LowGain().
|
private |
Definition at line 145 of file OpDigiProperties.h.
Referenced by FillGainArray(), and reconfigure().
|
private |
Definition at line 152 of file OpDigiProperties.h.
Referenced by FillGainArray(), FillPedMeanArray(), and reconfigure().
|
private |
Definition at line 149 of file OpDigiProperties.h.
Referenced by FillGainArray(), HighGain(), HighGainArray(), HighGainMean(), and reconfigure().
|
private |
Definition at line 142 of file OpDigiProperties.h.
Referenced by FillGainArray(), and reconfigure().
|
private |
Definition at line 133 of file OpDigiProperties.h.
Referenced by FillGainArray(), HighGainMean(), and reconfigure().
|
private |
Definition at line 148 of file OpDigiProperties.h.
Referenced by FillGainArray(), LowGain(), LowGainArray(), LowGainMean(), and reconfigure().
|
private |
Definition at line 143 of file OpDigiProperties.h.
Referenced by FillGainArray(), and reconfigure().
|
private |
Definition at line 132 of file OpDigiProperties.h.
Referenced by FillGainArray(), LowGainMean(), and reconfigure().
|
private |
Definition at line 127 of file OpDigiProperties.h.
Referenced by PedFlucAmp(), and reconfigure().
|
private |
Definition at line 126 of file OpDigiProperties.h.
Referenced by PedFlucRate(), and reconfigure().
|
private |
Definition at line 151 of file OpDigiProperties.h.
Referenced by FillPedMeanArray(), PedMeanArray(), and reconfigure().
|
private |
Definition at line 115 of file OpDigiProperties.h.
Referenced by reconfigure(), and WaveformInit().
|
private |
Definition at line 125 of file OpDigiProperties.h.
Referenced by QE(), and reconfigure().
|
private |
Definition at line 112 of file OpDigiProperties.h.
Referenced by GenAnalyticalWF(), GenEmpiricalWF(), GetTimeSlice(), reconfigure(), and SampleFreq().
|
private |
Definition at line 129 of file OpDigiProperties.h.
Referenced by reconfigure(), and SaturationScale().
|
private |
Definition at line 113 of file OpDigiProperties.h.
Referenced by GetTimeSlice(), reconfigure(), and TimeBegin().
|
private |
Definition at line 114 of file OpDigiProperties.h.
Referenced by GetTimeSlice(), reconfigure(), and TimeEnd().
|
private |
Definition at line 123 of file OpDigiProperties.h.
Referenced by FillGainArray(), and reconfigure().
|
private |
Definition at line 124 of file OpDigiProperties.h.
Referenced by GenerateWaveform(), and reconfigure().
|
private |
Definition at line 134 of file OpDigiProperties.h.
Referenced by GenAnalyticalWF(), and reconfigure().
|
private |
Definition at line 146 of file OpDigiProperties.h.
Referenced by GenerateWaveform(), GetSPEAmplitude(), GetSPEArea(), GetSPECumulativeAmplitude(), GetSPECumulativeArea(), and SinglePEWaveform().
|
private |
Definition at line 144 of file OpDigiProperties.h.
Referenced by GenerateWaveform(), and reconfigure().
|
private |
Definition at line 137 of file OpDigiProperties.h.
Referenced by GenAnalyticalWF(), GenEmpiricalWF(), and reconfigure().
|
private |
Definition at line 136 of file OpDigiProperties.h.
Referenced by GenAnalyticalWF(), reconfigure(), and WFPowerFactor().
|
private |
Definition at line 135 of file OpDigiProperties.h.
Referenced by GenAnalyticalWF(), reconfigure(), and WFTimeConstant().