#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 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.
References coll, input, convertSQLitetoXML_cfg::output, and findQualityFiles::run.
void ETLElectronicsSim::run | ( | const mtd::MTDSimHitDataAccumulator & | input, |
ETLDigiCollection & | output, | ||
CLHEP::HepRandomEngine * | hre | ||
) | const |
Definition at line 21 of file ETLElectronicsSim.cc.
References adcThreshold_MIP_, bxTime_, PVValHelper::eta, reco::FormulaEvaluator::evaluate(), f, mps_fire::i, 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 73 of file ETLElectronicsSim.cc.
References ecalMGPA::adc(), adcLSB_MIP_, adcSaturation_MIP_, adcThreshold_MIP_, 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 104 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 55 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 51 of file ETLElectronicsSim.h.
|
private |
Definition at line 54 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 56 of file ETLElectronicsSim.h.
Referenced by run(), and runTrivialShaper().
|
private |
Definition at line 47 of file ETLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 46 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().
|
static |
Definition at line 42 of file ETLElectronicsSim.h.
Referenced by updateOutput().
|
private |
Definition at line 48 of file ETLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 51 of file ETLElectronicsSim.h.
|
private |
Definition at line 57 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().