#include <ETLElectronicsSim.h>
Public Member Functions | |
ETLElectronicsSim (const edm::ParameterSet &pset) | |
void | getEvent (const edm::Event &evt) |
void | getEventSetup (const edm::EventSetup &evt) |
void | run (const mtd::MTDSimHitDataAccumulator &input, ETLDigiCollection &output, CLHEP::HepRandomEngine *hre) const |
void | runTrivialShaper (ETLDataFrame &dataFrame, const mtd::MTDSimHitData &chargeColl, const mtd::MTDSimHitData &toa, const uint8_t row, const uint8_t column) const |
void | updateOutput (ETLDigiCollection &coll, const ETLDataFrame &rawDataFrame) const |
Static Public Attributes | |
static constexpr int | dfSIZE = 5 |
Private Attributes | |
const float | adcLSB_MIP_ |
const uint32_t | adcNbits_ |
const float | adcSaturation_MIP_ |
const float | adcThreshold_MIP_ |
const float | bxTime_ |
const bool | debug_ |
const reco::FormulaEvaluator | sigmaEta_ |
const uint32_t | tdcNbits_ |
const float | toaLSB_ns_ |
Definition at line 21 of file ETLElectronicsSim.h.
ETLElectronicsSim::ETLElectronicsSim | ( | const edm::ParameterSet & | pset | ) |
Definition at line 8 of file ETLElectronicsSim.cc.
|
inline |
Definition at line 25 of file ETLElectronicsSim.h.
|
inline |
Definition at line 27 of file ETLElectronicsSim.h.
void ETLElectronicsSim::run | ( | const mtd::MTDSimHitDataAccumulator & | input, |
ETLDigiCollection & | output, | ||
CLHEP::HepRandomEngine * | hre | ||
) | const |
Definition at line 19 of file ETLElectronicsSim.cc.
References adcThreshold_MIP_, bxTime_, PVValHelper::eta, reco::FormulaEvaluator::evaluate(), f, mps_fire::i, input, convertSQLitetoXML_cfg::output, runTrivialShaper(), sigmaEta_, and updateOutput().
void ETLElectronicsSim::runTrivialShaper | ( | ETLDataFrame & | dataFrame, |
const mtd::MTDSimHitData & | chargeColl, | ||
const mtd::MTDSimHitData & | toa, | ||
const uint8_t | row, | ||
const uint8_t | column | ||
) | const |
Definition at line 63 of file ETLElectronicsSim.cc.
References ecalMGPA::adc(), adcLSB_MIP_, adcSaturation_MIP_, adcThreshold_MIP_, cuy::col, debug, debug_, createfilelist::int, min(), mps_check::msg, FTLDataFrameT< D, S, DECODE >::print(), ETLSample::set(), FTLDataFrameT< D, S, DECODE >::setSample(), and toaLSB_ns_.
Referenced by run().
void ETLElectronicsSim::updateOutput | ( | ETLDigiCollection & | coll, |
const ETLDataFrame & | rawDataFrame | ||
) | const |
Definition at line 97 of file ETLElectronicsSim.cc.
References dfSIZE, FTLDataFrameT< D, S, DECODE >::id(), edm::SortedCollection< T, SORT >::push_back(), FTLDataFrameT< D, S, DECODE >::resize(), and FTLDataFrameT< D, S, DECODE >::size().
Referenced by run().
|
private |
Definition at line 51 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 47 of file ETLElectronicsSim.h.
|
private |
Definition at line 50 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 52 of file ETLElectronicsSim.h.
Referenced by run(), and runTrivialShaper().
|
private |
Definition at line 43 of file ETLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 42 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().
|
staticconstexpr |
Definition at line 39 of file ETLElectronicsSim.h.
Referenced by updateOutput().
|
private |
Definition at line 44 of file ETLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 47 of file ETLElectronicsSim.h.
|
private |
Definition at line 53 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().