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 () |
float | getTDClsb () |
float | getTDCOnset () |
HGCFEElectronics (const edm::ParameterSet &ps) | |
CTOR. More... | |
void | runShaper (DFr &dataFrame, hgc::HGCSimHitData &chargeColl, hgc::HGCSimHitData &toa, int thickness, CLHEP::HepRandomEngine *engine) |
switches according to the firmware version More... | |
void | runShaperWithToT (DFr &dataFrame, hgc::HGCSimHitData &chargeColl, hgc::HGCSimHitData &toa, int thickness, CLHEP::HepRandomEngine *engine) |
implements pulse shape and switch to time over threshold including deadtime More... | |
void | runSimpleShaper (DFr &dataFrame, hgc::HGCSimHitData &chargeColl, int thickness) |
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) |
converts charge to digis without pulse shape More... | |
void | setADClsb (float newLSB) |
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_ |
hgc::HGCSimHitData | newCharge |
std::array< float, 6 > | pulseAvgT_ |
std::vector< float > | tdcChargeDrainParameterisation_ |
float | tdcLSB_fC_ |
float | tdcOnset_fC_ |
float | tdcResolutionInNs_ |
float | tdcSaturation_fC_ |
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_, HGCFEElectronics< DFr >::adcPulse_, HGCFEElectronics< DFr >::adcSaturation_fC_, HGCFEElectronics< DFr >::adcThreshold_fC_, alignCSCRings::e, edm::ParameterSet::exists(), HGCFEElectronics< DFr >::fwVersion_, edm::ParameterSet::getParameter(), i, funct::pow(), HGCFEElectronics< DFr >::pulseAvgT_, HGCFEElectronics< DFr >::tdcChargeDrainParameterisation_, HGCFEElectronics< DFr >::tdcLSB_fC_, HGCFEElectronics< DFr >::tdcOnset_fC_, HGCFEElectronics< DFr >::tdcResolutionInNs_, HGCFEElectronics< DFr >::tdcSaturation_fC_, groupFilesInBlocks::temp, HGCFEElectronics< DFr >::toaLSB_ns_, HGCFEElectronics< DFr >::toaMode_, and SpecificationBuilder_cfi::val().
|
inline |
|
inline |
returns the LSB in MIP currently configured
Definition at line 49 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::adcLSB_fC_.
|
inline |
Definition at line 51 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::adcThreshold_fC_.
|
inline |
|
inline |
|
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(), HGCFEElectronics< DFr >::SIMPLE, and HGCFEElectronics< DFr >::WITHTOT.
void HGCFEElectronics< DFr >::runShaperWithToT | ( | DFr & | dataFrame, |
hgc::HGCSimHitData & | chargeColl, | ||
hgc::HGCSimHitData & | toa, | ||
int | thickness, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
implements pulse shape and switch to time over threshold including deadtime
Definition at line 152 of file HGCFEElectronics.cc.
References RecoTauCleanerPlugins::charge, constexpr, debug, alignCSCRings::e, f, myMath::fast_expf(), bookConverter::max, min(), visualization-live-secondInstance_cfg::msg, HGCSample::set(), and command_line::start.
Referenced by HGCFEElectronics< DFr >::runShaper().
void HGCFEElectronics< DFr >::runSimpleShaper | ( | DFr & | dataFrame, |
hgc::HGCSimHitData & | chargeColl, | ||
int | thickness | ||
) |
applies a shape to each time sample and propagates the tails to the subsequent time samples
Definition at line 102 of file HGCFEElectronics.cc.
References RecoTauCleanerPlugins::charge, debug, f, min(), visualization-live-secondInstance_cfg::msg, and HGCSample::set().
Referenced by HGCFEElectronics< DFr >::runShaper().
void HGCFEElectronics< DFr >::runTrivialShaper | ( | DFr & | dataFrame, |
hgc::HGCSimHitData & | chargeColl, | ||
int | thickness | ||
) |
converts charge to digis without pulse shape
Definition at line 70 of file HGCFEElectronics.cc.
References ecalMGPA::adc(), debug, min(), visualization-live-secondInstance_cfg::msg, and HGCSample::set().
Referenced by HGCFEElectronics< DFr >::runShaper().
|
inline |
|
inline |
returns how ToT will be computed
Definition at line 74 of file HGCFEElectronics.h.
References HGCFEElectronics< DFr >::toaMode_.
|
private |
Definition at line 87 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getADClsb(), HGCFEElectronics< DFr >::HGCFEElectronics(), and HGCFEElectronics< DFr >::setADClsb().
|
private |
Definition at line 85 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics().
|
private |
Definition at line 87 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics().
|
private |
Definition at line 87 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getADCThreshold(), and HGCFEElectronics< DFr >::HGCFEElectronics().
|
private |
Definition at line 91 of file HGCFEElectronics.h.
|
private |
Definition at line 84 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics(), and HGCFEElectronics< DFr >::runShaper().
|
private |
Definition at line 92 of file HGCFEElectronics.h.
|
private |
Definition at line 85 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics().
|
private |
Definition at line 86 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics().
|
private |
Definition at line 87 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getTDClsb(), and HGCFEElectronics< DFr >::HGCFEElectronics().
|
private |
Definition at line 87 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::getTDCOnset(), and HGCFEElectronics< DFr >::HGCFEElectronics().
|
private |
Definition at line 87 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics().
|
private |
Definition at line 87 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics().
|
private |
Definition at line 92 of file HGCFEElectronics.h.
|
private |
Definition at line 87 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics().
|
private |
Definition at line 89 of file HGCFEElectronics.h.
Referenced by HGCFEElectronics< DFr >::HGCFEElectronics(), and HGCFEElectronics< DFr >::toaMode().
|
private |
Definition at line 91 of file HGCFEElectronics.h.