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 | |
float | getADClsb () |
returns the LSB in MIP currently configured More... | |
float | getADCThreshold () |
std::array< float, 3 > | getTDCForToAOnset () |
float | getTDClsb () |
float | getTDCOnset () |
float | getTimeJitter (float totalCharge, int thickness) |
HGCFEElectronics (const edm::ParameterSet &ps) | |
CTOR. More... | |
void | runShaper (DFr &dataFrame, hgc::HGCSimHitData &chargeColl, hgc::HGCSimHitData &toa, int thickness, CLHEP::HepRandomEngine *engine, float cce=1.0) |
switches according to the firmware version More... | |
void | runShaperWithToT (DFr &dataFrame, hgc::HGCSimHitData &chargeColl, hgc::HGCSimHitData &toa, int thickness, CLHEP::HepRandomEngine *engine, float cce=1.0) |
implements pulse shape and switch to time over threshold including deadtime More... | |
void | runSimpleShaper (DFr &dataFrame, hgc::HGCSimHitData &chargeColl, int thickness, float cce=1.0) |
applies a shape to each time sample and propagates the tails to the subsequent time samples More... | |
void | runTrivialShaper (DFr &dataFrame, hgc::HGCSimHitData &chargeColl, int thickness, float cce=1.0) |
converts charge to digis without pulse shape More... | |
void | setADClsb (float newLSB) |
void | SetNoiseValues (const std::vector< float > &noise_fC) |
uint32_t | toaMode () const |
returns how ToT will be computed More... | |
~HGCFEElectronics () | |
DTOR. More... | |
Private Attributes | |
float | adcLSB_fC_ |
std::array< float, 6 > | adcPulse_ |
float | adcSaturation_fC_ |
float | adcThreshold_fC_ |
std::array< bool, hgc::nSamples > | busyFlags |
uint32_t | fwVersion_ |
std::array< float, 3 > | jitterConstant2_ns_ |
std::array< float, 3 > | jitterNoise2_ns_ |
hgc::HGCSimHitData | newCharge |
std::vector< float > | noise_fC_ |
std::array< float, 6 > | pulseAvgT_ |
std::vector< float > | tdcChargeDrainParameterisation_ |
std::array< float, 3 > | tdcForToAOnset_fC_ |
float | tdcLSB_fC_ |
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 20 of file HGCFEElectronics.h.
enum HGCFEElectronics::HGCFEElectronicsFirmwareVersion |
Enumerator | |
---|---|
TRIVIAL | |
SIMPLE | |
WITHTOT |
Definition at line 24 of file HGCFEElectronics.h.
enum HGCFEElectronics::HGCFEElectronicsTOTMode |
HGCFEElectronics< DFr >::HGCFEElectronics | ( | const edm::ParameterSet & | ps | ) |
CTOR.
Definition at line 11 of file HGCFEElectronics.cc.
References HGCFEElectronics< DFr >::adcLSB_fC_, HGCalUncalibRecHit_cfi::adcNbits, HGCFEElectronics< DFr >::adcPulse_, HGCFEElectronics< DFr >::adcSaturation_fC_, HGCFEElectronics< DFr >::adcThreshold_fC_, MillePedeFileConverter_cfg::e, Exception, objects.autophobj::float, HGCFEElectronics< DFr >::fwVersion_, edm::ParameterSet::getParameter(), mps_fire::i, HGCFEElectronics< DFr >::jitterConstant2_ns_, HGCFEElectronics< DFr >::jitterNoise2_ns_, HGCFEElectronics< DFr >::noise_fC_, funct::pow(), HGCFEElectronics< DFr >::pulseAvgT_, HGCFEElectronics< DFr >::tdcChargeDrainParameterisation_, HGCFEElectronics< DFr >::tdcForToAOnset_fC_, HGCFEElectronics< DFr >::tdcLSB_fC_, HGCalUncalibRecHit_cfi::tdcNbits, HGCFEElectronics< DFr >::tdcOnset_fC_, HGCFEElectronics< DFr >::tdcResolutionInNs_, HGCFEElectronics< DFr >::tdcSaturation_fC_, groupFilesInBlocks::temp, HGCFEElectronics< DFr >::thresholdFollowsMIP_, HGCFEElectronics< DFr >::toaLSB_ns_, HGCFEElectronics< DFr >::toaMode_, heppy_batch::val, and HGCFEElectronics< DFr >::WEIGHTEDBYE.
|
inline |
|
inline |
returns the LSB in MIP currently configured
Definition at line 62 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::adcLSB_fC_.
|
inline |
Definition at line 64 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::adcThreshold_fC_.
|
inline |
Definition at line 66 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::tdcForToAOnset_fC_.
|
inline |
|
inline |
|
inline |
Definition at line 51 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::jitterConstant2_ns_, HGCFEElectronics< DFr >::jitterNoise2_ns_, HGCFEElectronics< DFr >::noise_fC_, funct::pow(), and mathSSE::sqrt().
Referenced by HGCFEElectronics< DFr >::runShaperWithToT().
|
inline |
switches according to the firmware version
Definition at line 35 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::fwVersion_, HGCFEElectronics< DFr >::runShaperWithToT(), HGCFEElectronics< DFr >::runSimpleShaper(), HGCFEElectronics< DFr >::runTrivialShaper(), and HGCFEElectronics< DFr >::SIMPLE.
void HGCFEElectronics< DFr >::runShaperWithToT | ( | DFr & | dataFrame, |
hgc::HGCSimHitData & | chargeColl, | ||
hgc::HGCSimHitData & | toa, | ||
int | thickness, | ||
CLHEP::HepRandomEngine * | engine, | ||
float | cce = 1.0 |
||
) |
implements pulse shape and switch to time over threshold including deadtime
Definition at line 192 of file HGCFEElectronics.cc.
References HGCFEElectronics< DFr >::adcLSB_fC_, HGCFEElectronics< DFr >::adcPulse_, HGCFEElectronics< DFr >::adcSaturation_fC_, HGCFEElectronics< DFr >::adcThreshold_fC_, HGCFEElectronics< DFr >::busyFlags, ALCARECOTkAlJpsiMuMu_cff::charge, constexpr, debug, MillePedeFileConverter_cfg::e, f, myMath::fast_expf(), HGCFEElectronics< DFr >::getTimeJitter(), createfilelist::int, SiStripPI::max, min(), mps_check::msg, HGCFEElectronics< DFr >::newCharge, HGCFEElectronics< DFr >::pulseAvgT_, HGCSample::set(), HGCSample::setToAValid(), HGCFEElectronics< DFr >::tdcChargeDrainParameterisation_, HGCFEElectronics< DFr >::tdcLSB_fC_, HGCFEElectronics< DFr >::tdcOnset_fC_, HGCFEElectronics< DFr >::tdcResolutionInNs_, HGCFEElectronics< DFr >::tdcSaturation_fC_, HGCFEElectronics< DFr >::thresholdFollowsMIP_, HGCFEElectronics< DFr >::toaFlags, HGCFEElectronics< DFr >::toaFromToT, HGCFEElectronics< DFr >::toaLSB_ns_, HGCFEElectronics< DFr >::toaMode_, HGCFEElectronics< DFr >::totFlags, and HGCFEElectronics< DFr >::WEIGHTEDBYE.
Referenced by HGCFEElectronics< DFr >::runShaper(), and HGCFEElectronics< DFr >::setADClsb().
void HGCFEElectronics< DFr >::runSimpleShaper | ( | DFr & | dataFrame, |
hgc::HGCSimHitData & | chargeColl, | ||
int | thickness, | ||
float | cce = 1.0 |
||
) |
applies a shape to each time sample and propagates the tails to the subsequent time samples
Definition at line 140 of file HGCFEElectronics.cc.
References HGCFEElectronics< DFr >::adcLSB_fC_, HGCFEElectronics< DFr >::adcPulse_, HGCFEElectronics< DFr >::adcSaturation_fC_, HGCFEElectronics< DFr >::adcThreshold_fC_, ALCARECOTkAlJpsiMuMu_cff::charge, debug, f, createfilelist::int, min(), mps_check::msg, HGCFEElectronics< DFr >::newCharge, HGCSample::set(), and HGCFEElectronics< DFr >::thresholdFollowsMIP_.
Referenced by HGCFEElectronics< DFr >::runShaper(), and HGCFEElectronics< DFr >::setADClsb().
void HGCFEElectronics< DFr >::runTrivialShaper | ( | DFr & | dataFrame, |
hgc::HGCSimHitData & | chargeColl, | ||
int | thickness, | ||
float | cce = 1.0 |
||
) |
converts charge to digis without pulse shape
Definition at line 107 of file HGCFEElectronics.cc.
References ecalMGPA::adc(), HGCFEElectronics< DFr >::adcLSB_fC_, HGCFEElectronics< DFr >::adcSaturation_fC_, HGCFEElectronics< DFr >::adcThreshold_fC_, debug, createfilelist::int, min(), mps_check::msg, HGCSample::set(), and HGCFEElectronics< DFr >::thresholdFollowsMIP_.
Referenced by HGCFEElectronics< DFr >::runShaper(), and HGCFEElectronics< DFr >::setADClsb().
|
inline |
Definition at line 67 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::adcLSB_fC_, HGCFEElectronics< DFr >::runShaperWithToT(), HGCFEElectronics< DFr >::runSimpleShaper(), and HGCFEElectronics< DFr >::runTrivialShaper().
|
inline |
|
inline |
returns how ToT will be computed
Definition at line 88 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::toaMode_.
|
private |
Definition at line 102 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getADClsb(), HGCFEElectronics< DFr >::HGCFEElectronics(), HGCFEElectronics< DFr >::runShaperWithToT(), HGCFEElectronics< DFr >::runSimpleShaper(), HGCFEElectronics< DFr >::runTrivialShaper(), and HGCFEElectronics< DFr >::setADClsb().
|
private |
Definition at line 99 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics(), HGCFEElectronics< DFr >::runShaperWithToT(), and HGCFEElectronics< DFr >::runSimpleShaper().
|
private |
Definition at line 102 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics(), HGCFEElectronics< DFr >::runShaperWithToT(), HGCFEElectronics< DFr >::runSimpleShaper(), and HGCFEElectronics< DFr >::runTrivialShaper().
|
private |
|
private |
Definition at line 109 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::runShaperWithToT().
|
private |
Definition at line 98 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics(), and HGCFEElectronics< DFr >::runShaper().
|
private |
Definition at line 104 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getTimeJitter(), and HGCFEElectronics< DFr >::HGCFEElectronics().
|
private |
Definition at line 104 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getTimeJitter(), and HGCFEElectronics< DFr >::HGCFEElectronics().
|
private |
Definition at line 110 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::runShaperWithToT(), and HGCFEElectronics< DFr >::runSimpleShaper().
|
private |
Definition at line 105 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getTimeJitter(), HGCFEElectronics< DFr >::HGCFEElectronics(), and HGCFEElectronics< DFr >::SetNoiseValues().
|
private |
Definition at line 99 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics(), and HGCFEElectronics< DFr >::runShaperWithToT().
|
private |
Definition at line 101 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics(), and HGCFEElectronics< DFr >::runShaperWithToT().
|
private |
Definition at line 100 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getTDCForToAOnset(), and HGCFEElectronics< DFr >::HGCFEElectronics().
|
private |
Definition at line 102 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getTDClsb(), HGCFEElectronics< DFr >::HGCFEElectronics(), and HGCFEElectronics< DFr >::runShaperWithToT().
|
private |
Definition at line 102 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getTDCOnset(), HGCFEElectronics< DFr >::HGCFEElectronics(), and HGCFEElectronics< DFr >::runShaperWithToT().
|
private |
Definition at line 102 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics(), and HGCFEElectronics< DFr >::runShaperWithToT().
|
private |
Definition at line 102 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics(), and HGCFEElectronics< DFr >::runShaperWithToT().
|
private |
Definition at line 107 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics(), HGCFEElectronics< DFr >::runShaperWithToT(), HGCFEElectronics< DFr >::runSimpleShaper(), and HGCFEElectronics< DFr >::runTrivialShaper().
|
private |
Definition at line 109 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::runShaperWithToT().
|
private |
Definition at line 110 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::runShaperWithToT().
|
private |
Definition at line 102 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics(), and HGCFEElectronics< DFr >::runShaperWithToT().
|
private |
Definition at line 106 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics(), HGCFEElectronics< DFr >::runShaperWithToT(), and HGCFEElectronics< DFr >::toaMode().
|
private |
Definition at line 109 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::runShaperWithToT().