![]() |
LArSoft
v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "OpDigiProperties.h"
Public Member Functions | |
OpDigiProperties (fhicl::ParameterSet const &pset) | |
double | SampleFreq () const noexcept |
Returns sample frequency in MHz. More... | |
double | TimeBegin () const noexcept |
Returns window start time in us ... with respect to MC photon T0. More... | |
double | TimeEnd () const noexcept |
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 noexcept |
Returns quantum efficiency. More... | |
double | DarkRate () const noexcept |
Returns rate of dark noise. More... | |
double | PedFlucRate () const noexcept |
Returns rate of pedestal fluctuation. More... | |
optdata::ADC_Count_t | PedFlucAmp () const noexcept |
Returns amplitude of pedestal fluctuation. More... | |
optdata::ADC_Count_t | SaturationScale () const noexcept |
Returns the saturation scale of the electronics. More... | |
optdata::ADC_Count_t | ADCBaseline () const noexcept |
Returns the ADCBaseline set mean value. More... | |
double | WFTimeConstant () const noexcept |
Returns WF time constant used in analytical model. More... | |
double | WFPowerFactor () const noexcept |
Returns WF power factor used in analytical model. More... | |
double | LowGainMean () const noexcept |
Returns set mean gain value for LOW gain. More... | |
double | HighGainMean () const noexcept |
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 noexcept |
Returns set value for intrinsic gain spread (common to HIGH and LOW) More... | |
double | GainSpread_PMT2PMT () const noexcept |
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 > const & | SinglePEWaveform () const noexcept |
Returns a vector of double which represents a binned SPE waveform. More... | |
std::vector< double > const & | HighGainArray () const noexcept |
Returns an array of HIGH gain. More... | |
std::vector< double > const & | LowGainArray () const noexcept |
Returns an array of LOW gain. More... | |
std::vector< double > const & | GainSpreadArray () const noexcept |
Returns an array of gain spread. More... | |
std::vector< optdata::ADC_Count_t > const & | PedMeanArray () const noexcept |
Returns an array of generated pedestal mean value per channel. More... | |
double | GetSPEArea () const |
Utility functions. More... | |
double | GetSPECumulativeArea () const |
double | GetSPEAmplitude () const |
double | GetSPECumulativeAmplitude () const |
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 |
unsigned int | fNOpChannels |
Definition at line 29 of file OpDigiProperties.h.
opdet::OpDigiProperties::OpDigiProperties | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 27 of file OpDigiProperties.cc.
References fADCBaseline, fADCBaseSpread, fChargeNormalized, fDarkRate, fGainSpread, fGainSpread_PMT2PMT, fGainSpreadFile, fHighGainArray, fHighGainFile, fHighGainMean, FillGainArray(), FillPedMeanArray(), fLowGainArray, fLowGainFile, fLowGainMean, fNOpChannels, fPedFlucAmp, fPedFlucRate, fPedMeanArray, fPERescale, fQE, fSampleFreq, fSaturationScale, fTimeBegin, fTimeEnd, fUseEmpiricalGain, fUseEmpiricalShape, fVoltageAmpForSPE, fWaveformFile, fWFLength, fWFPowerFactor, fWFTimeConstant, GenerateWaveform(), Get, and fhicl::ParameterSet::get().
|
inlinenoexcept |
Returns the ADCBaseline set mean value.
Definition at line 63 of file OpDigiProperties.h.
References fADCBaseline.
|
inlinenoexcept |
|
private |
Definition at line 203 of file OpDigiProperties.cc.
References fGainSpread, fGainSpread_PMT2PMT, fGainSpreadArray, fGainSpreadFile, fHighGainArray, fHighGainFile, fHighGainMean, fLowGainArray, fLowGainFile, fLowGainMean, fNOpChannels, and fUseEmpiricalGain.
Referenced by OpDigiProperties().
|
private |
Definition at line 195 of file OpDigiProperties.cc.
References fADCBaseline, fADCBaseSpread, fNOpChannels, and fPedMeanArray.
Referenced by OpDigiProperties().
|
inlinenoexcept |
Returns set value for intrinsic gain spread (common to HIGH and LOW)
Definition at line 78 of file OpDigiProperties.h.
References fGainSpread.
|
inlinenoexcept |
Returns set value for PMT-to-PMT gain spread.
Definition at line 80 of file OpDigiProperties.h.
References fGainSpread_PMT2PMT, HighGain(), and LowGain().
|
inlinenoexcept |
Returns an array of gain spread.
Definition at line 93 of file OpDigiProperties.h.
References fGainSpreadArray.
|
private |
Definition at line 358 of file OpDigiProperties.cc.
References e, fAnalyticalSPE, fChargeNormalized, fSampleFreq, fVoltageAmpForSPE, fWFLength, fWFPowerFactor, and fWFTimeConstant.
Referenced by GenerateWaveform().
|
private |
Definition at line 316 of file OpDigiProperties.cc.
References fChargeNormalized, fSampleFreq, and fWFLength.
Referenced by GenerateWaveform().
|
private |
Definition at line 299 of file OpDigiProperties.cc.
References fUseEmpiricalShape, fWaveform, fWaveformFile, GenAnalyticalWF(), and GenEmpiricalWF().
Referenced by OpDigiProperties().
double opdet::OpDigiProperties::GetSPEAmplitude | ( | ) | const |
Definition at line 104 of file OpDigiProperties.cc.
References fWaveform.
Referenced by PedMeanArray().
double opdet::OpDigiProperties::GetSPEArea | ( | ) | const |
Utility functions.
Definition at line 95 of file OpDigiProperties.cc.
References fWaveform.
Referenced by PedMeanArray().
double opdet::OpDigiProperties::GetSPECumulativeAmplitude | ( | ) | const |
Definition at line 124 of file OpDigiProperties.cc.
References fWaveform.
Referenced by PedMeanArray().
double opdet::OpDigiProperties::GetSPECumulativeArea | ( | ) | const |
Definition at line 113 of file OpDigiProperties.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 157 of file OpDigiProperties.cc.
References fSampleFreq, fTimeBegin, and fTimeEnd.
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 152 of file OpDigiProperties.cc.
References fGainSpreadArray, and fHighGainArray.
Referenced by GainSpread_PMT2PMT().
|
inlinenoexcept |
Returns an array of HIGH gain.
Definition at line 89 of file OpDigiProperties.h.
References fHighGainArray.
|
inlinenoexcept |
Returns set mean gain value for HIGH gain.
Definition at line 71 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 142 of file OpDigiProperties.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 147 of file OpDigiProperties.cc.
References fGainSpreadArray, and fLowGainArray.
Referenced by GainSpread_PMT2PMT().
|
inlinenoexcept |
Returns an array of LOW gain.
Definition at line 91 of file OpDigiProperties.h.
References fLowGainArray.
|
inlinenoexcept |
Returns set mean gain value for LOW gain.
Definition at line 69 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 136 of file OpDigiProperties.cc.
References fLowGainArray.
|
inlinenoexcept |
Returns amplitude of pedestal fluctuation.
Definition at line 59 of file OpDigiProperties.h.
References fPedFlucAmp.
|
inlinenoexcept |
Returns rate of pedestal fluctuation.
Definition at line 57 of file OpDigiProperties.h.
References fPedFlucRate.
|
inlinenoexcept |
Returns an array of generated pedestal mean value per channel.
Definition at line 95 of file OpDigiProperties.h.
References fPedMeanArray, GetSPEAmplitude(), GetSPEArea(), GetSPECumulativeAmplitude(), and GetSPECumulativeArea().
|
inlinenoexcept |
Returns quantum efficiency.
Definition at line 53 of file OpDigiProperties.h.
References fQE.
Referenced by opdet::FlashHypothesisCreator::CreateFlashHypothesesFromSegment(), cosmic::BeamFlashTrackMatchTaggerAlg::GetMIPHypotheses(), and opdet::SimPhotonCounterAlg::InitializeCounters().
|
inlinenoexcept |
Returns sample frequency in MHz.
Definition at line 34 of file OpDigiProperties.h.
References fSampleFreq.
|
inlinenoexcept |
Returns the saturation scale of the electronics.
Definition at line 61 of file OpDigiProperties.h.
References fSaturationScale.
|
inlinenoexcept |
Returns a vector of double which represents a binned SPE waveform.
Definition at line 87 of file OpDigiProperties.h.
References fWaveform.
|
inlinenoexcept |
Returns window start time in us ... with respect to MC photon T0.
Definition at line 36 of file OpDigiProperties.h.
References fTimeBegin.
|
inlinenoexcept |
Returns window end time in us ... with respect to MC photon T0.
Definition at line 38 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 170 of file OpDigiProperties.cc.
References fPERescale.
Referenced by TimeEnd().
|
inlinenoexcept |
Returns WF power factor used in analytical model.
Definition at line 67 of file OpDigiProperties.h.
References fWFPowerFactor.
|
inlinenoexcept |
Returns WF time constant used in analytical model.
Definition at line 65 of file OpDigiProperties.h.
References fWFTimeConstant.
|
private |
Definition at line 122 of file OpDigiProperties.h.
Referenced by ADCBaseline(), FillPedMeanArray(), and OpDigiProperties().
|
private |
Definition at line 123 of file OpDigiProperties.h.
Referenced by FillPedMeanArray(), and OpDigiProperties().
|
private |
Definition at line 132 of file OpDigiProperties.h.
Referenced by GenAnalyticalWF().
|
private |
Definition at line 139 of file OpDigiProperties.h.
Referenced by GenAnalyticalWF(), GenEmpiricalWF(), and OpDigiProperties().
|
private |
Definition at line 120 of file OpDigiProperties.h.
Referenced by DarkRate(), and OpDigiProperties().
|
private |
Definition at line 130 of file OpDigiProperties.h.
Referenced by FillGainArray(), GainSpread(), and OpDigiProperties().
|
private |
Definition at line 131 of file OpDigiProperties.h.
Referenced by FillGainArray(), GainSpread_PMT2PMT(), and OpDigiProperties().
|
private |
Definition at line 142 of file OpDigiProperties.h.
Referenced by FillGainArray(), GainSpreadArray(), HighGain(), and LowGain().
|
private |
Definition at line 137 of file OpDigiProperties.h.
Referenced by FillGainArray(), and OpDigiProperties().
|
private |
Definition at line 141 of file OpDigiProperties.h.
Referenced by FillGainArray(), HighGain(), HighGainArray(), HighGainMean(), and OpDigiProperties().
|
private |
Definition at line 134 of file OpDigiProperties.h.
Referenced by FillGainArray(), and OpDigiProperties().
|
private |
Definition at line 125 of file OpDigiProperties.h.
Referenced by FillGainArray(), HighGainMean(), and OpDigiProperties().
|
private |
Definition at line 140 of file OpDigiProperties.h.
Referenced by FillGainArray(), LowGain(), LowGainArray(), LowGainMean(), and OpDigiProperties().
|
private |
Definition at line 135 of file OpDigiProperties.h.
Referenced by FillGainArray(), and OpDigiProperties().
|
private |
Definition at line 124 of file OpDigiProperties.h.
Referenced by FillGainArray(), LowGainMean(), and OpDigiProperties().
|
private |
Definition at line 144 of file OpDigiProperties.h.
Referenced by FillGainArray(), FillPedMeanArray(), and OpDigiProperties().
|
private |
Definition at line 119 of file OpDigiProperties.h.
Referenced by OpDigiProperties(), and PedFlucAmp().
|
private |
Definition at line 118 of file OpDigiProperties.h.
Referenced by OpDigiProperties(), and PedFlucRate().
|
private |
Definition at line 143 of file OpDigiProperties.h.
Referenced by FillPedMeanArray(), OpDigiProperties(), and PedMeanArray().
|
private |
Definition at line 107 of file OpDigiProperties.h.
Referenced by OpDigiProperties(), and WaveformInit().
|
private |
Definition at line 117 of file OpDigiProperties.h.
Referenced by OpDigiProperties(), and QE().
|
private |
Definition at line 104 of file OpDigiProperties.h.
Referenced by GenAnalyticalWF(), GenEmpiricalWF(), GetTimeSlice(), OpDigiProperties(), and SampleFreq().
|
private |
Definition at line 121 of file OpDigiProperties.h.
Referenced by OpDigiProperties(), and SaturationScale().
|
private |
Definition at line 105 of file OpDigiProperties.h.
Referenced by GetTimeSlice(), OpDigiProperties(), and TimeBegin().
|
private |
Definition at line 106 of file OpDigiProperties.h.
Referenced by GetTimeSlice(), OpDigiProperties(), and TimeEnd().
|
private |
Definition at line 115 of file OpDigiProperties.h.
Referenced by FillGainArray(), and OpDigiProperties().
|
private |
Definition at line 116 of file OpDigiProperties.h.
Referenced by GenerateWaveform(), and OpDigiProperties().
|
private |
Definition at line 126 of file OpDigiProperties.h.
Referenced by GenAnalyticalWF(), and OpDigiProperties().
|
private |
Definition at line 138 of file OpDigiProperties.h.
Referenced by GenerateWaveform(), GetSPEAmplitude(), GetSPEArea(), GetSPECumulativeAmplitude(), GetSPECumulativeArea(), and SinglePEWaveform().
|
private |
Definition at line 136 of file OpDigiProperties.h.
Referenced by GenerateWaveform(), and OpDigiProperties().
|
private |
Definition at line 129 of file OpDigiProperties.h.
Referenced by GenAnalyticalWF(), GenEmpiricalWF(), and OpDigiProperties().
|
private |
Definition at line 128 of file OpDigiProperties.h.
Referenced by GenAnalyticalWF(), OpDigiProperties(), and WFPowerFactor().
|
private |
Definition at line 127 of file OpDigiProperties.h.
Referenced by GenAnalyticalWF(), OpDigiProperties(), and WFTimeConstant().