models the behavior of the front-end electronics More...
#include <HGCFEElectronics.h>
Public Types | |
enum | HGCFEElectronicsFirmwareVersion { TRIVIAL, SIMPLE, WITHTOT } |
enum | HGCFEElectronicsTOTMode { WEIGHTEDBYE, SIMPLETHRESHOLD } |
Public Member Functions | |
void | generateTimeOffset (CLHEP::HepRandomEngine *engine) |
float | getADClsb () |
returns the LSB currently configured More... | |
float | getADCThreshold () |
hgc_digi::FEADCPulseShape & | getDefaultADCPulse () |
getter for the default ADC pulse configured by python More... | |
float | getMaxADC () |
float | getMaxTDC () |
int | getTargetMipValue () |
std::array< float, 3 > | getTDCForToAOnset () |
float | getTDClsb () |
float | getTDCOnset () |
HGCFEElectronics (const edm::ParameterSet &ps) | |
CTOR. More... | |
void | runShaper (DFr &dataFrame, hgc::HGCSimHitData &chargeColl, hgc::HGCSimHitData &toa, const hgc_digi::FEADCPulseShape &adcPulse, CLHEP::HepRandomEngine *engine, uint32_t thrADC=0, float lsbADC=-1, uint32_t gainIdx=0, float maxADC=-1, int thickness=1, float tdcOnsetAuto=-1, float noiseWidth=-1) |
switches according to the firmware version More... | |
void | runShaper (DFr &dataFrame, hgc::HGCSimHitData &chargeColl, hgc::HGCSimHitData &toa, CLHEP::HepRandomEngine *engine, uint32_t thrADC=0, float lsbADC=-1, uint32_t gainIdx=0, float maxADC=-1, int thickness=1) |
void | runShaperWithToT (DFr &dataFrame, hgc::HGCSimHitData &chargeColl, hgc::HGCSimHitData &toa, CLHEP::HepRandomEngine *engine, uint32_t thrADC, float lsbADC, uint32_t gainIdx, float maxADC, int thickness, float tdcOnsetAuto, float noiseWidth, const hgc_digi::FEADCPulseShape &adcPulse) |
implements pulse shape and switch to time over threshold including deadtime More... | |
void | runShaperWithToT (DFr &dataFrame, hgc::HGCSimHitData &chargeColl, hgc::HGCSimHitData &toa, CLHEP::HepRandomEngine *engine, uint32_t thrADC, float lsbADC, uint32_t gainIdx, float maxADC, int thickness, float tdcOnsetAuto, float noiseWidth) |
void | runSimpleShaper (DFr &dataFrame, hgc::HGCSimHitData &chargeColl, uint32_t thrADC, float lsbADC, uint32_t gainIdx, float maxADC, const hgc_digi::FEADCPulseShape &adcPulse) |
applies a shape to each time sample and propagates the tails to the subsequent time samples More... | |
void | runSimpleShaper (DFr &dataFrame, hgc::HGCSimHitData &chargeColl, uint32_t thrADC, float lsbADC, uint32_t gainIdx, float maxADC) |
void | runTrivialShaper (DFr &dataFrame, hgc::HGCSimHitData &chargeColl, uint32_t thrADC, float lsbADC, uint32_t gainIdx, float maxADC) |
converts charge to digis without pulse shape More... | |
void | setADClsb (float newLSB) |
void | SetNoiseValues (const std::vector< float > &noise_fC) |
void | setTDCfsc (float newTDCfsc) |
uint32_t | toaMode () const |
returns how ToT will be computed More... | |
~HGCFEElectronics () | |
DTOR. More... | |
Private Attributes | |
float | adcLSB_fC_ |
hgc_digi::FEADCPulseShape | adcPulse_ |
float | adcSaturation_fC_ |
float | adcThreshold_fC_ |
std::array< bool, hgc::nSamples > | busyFlags |
std::array< float, 3 > | eventTimeOffset_ns_ |
uint32_t | fwVersion_ |
std::array< float, 3 > | jitterConstant_ns_ |
std::array< float, 3 > | jitterNoise_ns_ |
hgc::HGCSimHitData | newCharge |
std::vector< float > | noise_fC_ |
hgc_digi::FEADCPulseShape | pulseAvgT_ |
uint32_t | targetMIPvalue_ADC_ |
std::vector< float > | tdcChargeDrainParameterisation_ |
std::array< float, 3 > | tdcForToAOnset_fC_ |
float | tdcLSB_fC_ |
uint32_t | tdcNbits_ |
float | tdcOnset_fC_ |
float | tdcResolutionInNs_ |
float | tdcSaturation_fC_ |
bool | thresholdFollowsMIP_ |
std::array< bool, hgc::nSamples > | toaFlags |
hgc::HGCSimHitData | toaFromToT |
float | toaLSB_ns_ |
uint32_t | toaMode_ |
std::array< bool, hgc::nSamples > | totFlags |
models the behavior of the front-end electronics
Definition at line 24 of file HGCFEElectronics.h.
enum HGCFEElectronics::HGCFEElectronicsFirmwareVersion |
Enumerator | |
---|---|
TRIVIAL | |
SIMPLE | |
WITHTOT |
Definition at line 26 of file HGCFEElectronics.h.
enum HGCFEElectronics::HGCFEElectronicsTOTMode |
HGCFEElectronics< DFr >::HGCFEElectronics | ( | const edm::ParameterSet & | ps | ) |
CTOR.
Definition at line 12 of file HGCFEElectronics.cc.
References edm::ParameterSet::getParameter().
|
inline |
|
inline |
Definition at line 91 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::eventTimeOffset_ns_, mps_fire::i, and HGCFEElectronics< DFr >::jitterConstant_ns_.
|
inline |
returns the LSB currently configured
Definition at line 99 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::adcLSB_fC_.
|
inline |
Definition at line 102 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::adcThreshold_fC_.
|
inline |
getter for the default ADC pulse configured by python
Definition at line 185 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::adcPulse_.
|
inline |
Definition at line 103 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::adcSaturation_fC_.
|
inline |
Definition at line 104 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::tdcSaturation_fC_.
|
inline |
Definition at line 101 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::targetMIPvalue_ADC_.
|
inline |
Definition at line 106 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::tdcForToAOnset_fC_.
|
inline |
|
inline |
Definition at line 105 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::tdcOnset_fC_.
|
inline |
switches according to the firmware version
Definition at line 37 of file HGCFEElectronics.h.
References hgceeDigitizer_cfi::adcPulse, HGCFEElectronics< DFr >::fwVersion_, HGCFEElectronics< DFr >::runShaperWithToT(), HGCFEElectronics< DFr >::runSimpleShaper(), HGCFEElectronics< DFr >::runTrivialShaper(), HGCFEElectronics< DFr >::SIMPLE, Calorimetry_cff::thickness, and HGCFEElectronics< DFr >::WITHTOT.
Referenced by HGCFEElectronics< DFr >::runShaper().
|
inline |
Definition at line 75 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::adcPulse_, HGCFEElectronics< DFr >::runShaper(), and Calorimetry_cff::thickness.
void HGCFEElectronics< DFr >::runShaperWithToT | ( | DFr & | dataFrame, |
hgc::HGCSimHitData & | chargeColl, | ||
hgc::HGCSimHitData & | toa, | ||
CLHEP::HepRandomEngine * | engine, | ||
uint32_t | thrADC, | ||
float | lsbADC, | ||
uint32_t | gainIdx, | ||
float | maxADC, | ||
int | thickness, | ||
float | tdcOnsetAuto, | ||
float | noiseWidth, | ||
const hgc_digi::FEADCPulseShape & | adcPulse | ||
) |
implements pulse shape and switch to time over threshold including deadtime
Definition at line 205 of file HGCFEElectronics.cc.
References gpuClustering::adc, hgceeDigitizer_cfi::adcPulse, ALCARECOTkAlJpsiMuMu_cff::charge, ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), debug, MillePedeFileConverter_cfg::e, f, myMath::fast_expf(), createfilelist::int, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, SiStripPI::max, SiStripPI::min, mps_check::msg, hgchebackDigitizer_cfi::noise, HGCSample::set(), HGCSample::setToAValid(), HGCalUncalibRecHit_cfi::tdcOnset, and Calorimetry_cff::thickness.
Referenced by HGCFEElectronics< DFr >::runShaper(), and HGCFEElectronics< DFr >::runShaperWithToT().
|
inline |
Definition at line 152 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::adcPulse_, HGCFEElectronics< DFr >::runShaperWithToT(), and Calorimetry_cff::thickness.
void HGCFEElectronics< DFr >::runSimpleShaper | ( | DFr & | dataFrame, |
hgc::HGCSimHitData & | chargeColl, | ||
uint32_t | thrADC, | ||
float | lsbADC, | ||
uint32_t | gainIdx, | ||
float | maxADC, | ||
const hgc_digi::FEADCPulseShape & | adcPulse | ||
) |
applies a shape to each time sample and propagates the tails to the subsequent time samples
Definition at line 147 of file HGCFEElectronics.cc.
References gpuClustering::adc, hgceeDigitizer_cfi::adcPulse, ALCARECOTkAlJpsiMuMu_cff::charge, debug, f, createfilelist::int, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, SiStripPI::min, mps_check::msg, and HGCSample::set().
Referenced by HGCFEElectronics< DFr >::runShaper(), and HGCFEElectronics< DFr >::runSimpleShaper().
|
inline |
Definition at line 132 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::adcPulse_, and HGCFEElectronics< DFr >::runSimpleShaper().
void HGCFEElectronics< DFr >::runTrivialShaper | ( | DFr & | dataFrame, |
hgc::HGCSimHitData & | chargeColl, | ||
uint32_t | thrADC, | ||
float | lsbADC, | ||
uint32_t | gainIdx, | ||
float | maxADC | ||
) |
converts charge to digis without pulse shape
Definition at line 108 of file HGCFEElectronics.cc.
References gpuClustering::adc, debug, MillePedeFileConverter_cfg::e, createfilelist::int, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, SiStripPI::min, mps_check::msg, and HGCSample::set().
Referenced by HGCFEElectronics< DFr >::runShaper().
|
inline |
|
inline |
Definition at line 87 of file HGCFEElectronics.h.
References hgceeDigitizer_cfi::noise_fC, and HGCFEElectronics< DFr >::noise_fC_.
|
inline |
Definition at line 108 of file HGCFEElectronics.h.
References MillePedeFileConverter_cfg::e, funct::pow(), HGCFEElectronics< DFr >::tdcLSB_fC_, HGCFEElectronics< DFr >::tdcNbits_, and HGCFEElectronics< DFr >::tdcSaturation_fC_.
|
inline |
returns how ToT will be computed
Definition at line 180 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::toaMode_.
|
private |
Definition at line 198 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getADClsb(), and HGCFEElectronics< DFr >::setADClsb().
|
private |
Definition at line 195 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getDefaultADCPulse(), HGCFEElectronics< DFr >::runShaper(), HGCFEElectronics< DFr >::runShaperWithToT(), and HGCFEElectronics< DFr >::runSimpleShaper().
|
private |
Definition at line 198 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getMaxADC().
|
private |
Definition at line 198 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getADCThreshold().
|
private |
Definition at line 207 of file HGCFEElectronics.h.
|
private |
Definition at line 201 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::generateTimeOffset().
|
private |
Definition at line 194 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::runShaper().
|
private |
Definition at line 201 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::generateTimeOffset().
|
private |
Definition at line 201 of file HGCFEElectronics.h.
|
private |
Definition at line 208 of file HGCFEElectronics.h.
|
private |
Definition at line 202 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::SetNoiseValues().
|
private |
Definition at line 195 of file HGCFEElectronics.h.
|
private |
Definition at line 200 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getTargetMipValue().
|
private |
Definition at line 197 of file HGCFEElectronics.h.
|
private |
Definition at line 196 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getTDCForToAOnset().
|
private |
Definition at line 198 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getTDClsb(), and HGCFEElectronics< DFr >::setTDCfsc().
|
private |
Definition at line 204 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::setTDCfsc().
|
private |
Definition at line 198 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getTDCOnset().
|
private |
Definition at line 198 of file HGCFEElectronics.h.
|
private |
Definition at line 198 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getMaxTDC(), and HGCFEElectronics< DFr >::setTDCfsc().
|
private |
Definition at line 205 of file HGCFEElectronics.h.
|
private |
Definition at line 207 of file HGCFEElectronics.h.
|
private |
Definition at line 208 of file HGCFEElectronics.h.
|
private |
Definition at line 198 of file HGCFEElectronics.h.
|
private |
Definition at line 203 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::toaMode().
|
private |
Definition at line 207 of file HGCFEElectronics.h.