#include <ETLElectronicsSim.h>
Public Member Functions | |
ETLElectronicsSim (const edm::ParameterSet &pset, edm::ConsumesCollector iC) | |
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 uint32_t | adcBitSaturation_ |
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 | fluence_ |
const MTDGeometry * | geom_ |
const edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord > | geomToken_ |
const float | integratedLum_ |
const reco::FormulaEvaluator | lgadGain_ |
const uint32_t | tdcBitSaturation_ |
const uint32_t | tdcNbits_ |
const reco::FormulaEvaluator | timeRes2_ |
const float | toaLSB_ns_ |
Definition at line 25 of file ETLElectronicsSim.h.
ETLElectronicsSim::ETLElectronicsSim | ( | const edm::ParameterSet & | pset, |
edm::ConsumesCollector | iC | ||
) |
Definition at line 9 of file ETLElectronicsSim.cc.
|
inline |
Definition at line 29 of file ETLElectronicsSim.h.
void ETLElectronicsSim::getEventSetup | ( | const edm::EventSetup & | evt | ) |
Definition at line 27 of file ETLElectronicsSim.cc.
References geom_, geomToken_, and edm::EventSetup::getData().
void ETLElectronicsSim::run | ( | const mtd::MTDSimHitDataAccumulator & | input, |
ETLDigiCollection & | output, | ||
CLHEP::HepRandomEngine * | hre | ||
) | const |
Definition at line 29 of file ETLElectronicsSim.cc.
References adcThreshold_MIP_, bxTime_, TauDecayModes::dec, reco::FormulaEvaluator::evaluate(), Exception, f, fluence_, PedestalClient_cfi::gain, ETLDetId::geographicalId(), geom_, mps_fire::i, MTDGeometry::idToDet(), input, integratedLum_, lgadGain_, PixelTopology::localX(), PixelTopology::localY(), convertSQLitetoXML_cfg::output, CosmicsPD_Skims::radius, DetId::rawId(), runTrivialShaper(), mathSSE::sqrt(), timeRes2_, GeomDet::toGlobal(), GeomDet::topology(), 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 92 of file ETLElectronicsSim.cc.
References gpuClustering::adc, adcBitSaturation_, adcLSB_MIP_, adcThreshold_MIP_, cuy::col, debug, debug_, createfilelist::int, SiStripPI::min, mps_check::msg, FTLDataFrameT< D, S, DECODE >::print(), ETLSample::set(), FTLDataFrameT< D, S, DECODE >::setSample(), tdcBitSaturation_, and toaLSB_ns_.
Referenced by run().
void ETLElectronicsSim::updateOutput | ( | ETLDigiCollection & | coll, |
const ETLDataFrame & | rawDataFrame | ||
) | const |
Definition at line 126 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 62 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 61 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 57 of file ETLElectronicsSim.h.
|
private |
Definition at line 60 of file ETLElectronicsSim.h.
|
private |
Definition at line 63 of file ETLElectronicsSim.h.
Referenced by run(), and runTrivialShaper().
|
private |
Definition at line 50 of file ETLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 49 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().
|
static |
Definition at line 43 of file ETLElectronicsSim.h.
Referenced by updateOutput().
|
private |
Definition at line 52 of file ETLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 47 of file ETLElectronicsSim.h.
Referenced by getEventSetup(), and run().
|
private |
Definition at line 46 of file ETLElectronicsSim.h.
Referenced by getEventSetup().
|
private |
Definition at line 51 of file ETLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 53 of file ETLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 65 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 57 of file ETLElectronicsSim.h.
|
private |
Definition at line 54 of file ETLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 64 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().