#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 &toa1, const mtd::MTDSimHitData &toa2, 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 ETLPulseShape | etlPulseShape_ |
const reco::FormulaEvaluator | formulaLandauNoise_ |
const MTDGeometry * | geom_ |
const edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord > | geomToken_ |
const float | integratedLum_ |
const float | iThreshold_MIP_ |
const float | noiseLevel_ |
const float | referenceChargeColl_ |
const float | sigmaDistorsion_ |
const float | sigmaTDC_ |
const uint32_t | tdcBitSaturation_ |
const uint32_t | tdcNbits_ |
const float | toaLSB_ns_ |
Definition at line 27 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 31 of file ETLElectronicsSim.h.
void ETLElectronicsSim::getEventSetup | ( | const edm::EventSetup & | evt | ) |
Definition at line 29 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 31 of file ETLElectronicsSim.cc.
References adcThreshold_MIP_, bxTime_, TauDecayModes::dec, hcalRecHitTable_cff::detId, etlPulseShape_, reco::FormulaEvaluator::evaluate(), Exception, f, MTDShapeBase::fallTime(), formulaLandauNoise_, geom_, mps_fire::i, MTDGeometry::idToDet(), input, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, iThreshold_MIP_, PixelTopology::localX(), PixelTopology::localY(), MTDShapeBase::maximum(), noiseLevel_, CosmicsPD_Skims::radius, DetId::rawId(), referenceChargeColl_, runTrivialShaper(), mtdDigitizer_cfi::sigmaDistorsion, sigmaDistorsion_, mtdDigitizer_cfi::sigmaTDC, sigmaTDC_, mathSSE::sqrt(), MTDShapeBase::timeAtThr(), MTDShapeBase::timeOfMax(), GeomDet::topology(), compareTotals::tot, and updateOutput().
void ETLElectronicsSim::runTrivialShaper | ( | ETLDataFrame & | dataFrame, |
const mtd::MTDSimHitData & | chargeColl, | ||
const mtd::MTDSimHitData & | toa1, | ||
const mtd::MTDSimHitData & | toa2, | ||
const uint8_t | row, | ||
const uint8_t | column | ||
) | const |
Definition at line 128 of file ETLElectronicsSim.cc.
References gpuClustering::adc, adcBitSaturation_, adcLSB_MIP_, adcThreshold_MIP_, cuy::col, getInfo::dumpInfo(), createfilelist::int, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, LogTrace, SiStripPI::min, mps_check::msg, FTLDataFrameT< D, S, DECODE >::print(), ETLSample::set(), FTLDataFrameT< D, S, DECODE >::setSample(), tdcBitSaturation_, toaLSB_ns_, and compareTotals::tot.
Referenced by run().
void ETLElectronicsSim::updateOutput | ( | ETLDigiCollection & | coll, |
const ETLDataFrame & | rawDataFrame | ||
) | const |
Definition at line 180 of file ETLElectronicsSim.cc.
References dfSIZE, FTLDataFrameT< D, S, DECODE >::id(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, edm::SortedCollection< T, SORT >::push_back(), FTLDataFrameT< D, S, DECODE >::resize(), and FTLDataFrameT< D, S, DECODE >::size().
Referenced by run().
|
private |
Definition at line 63 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 62 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 58 of file ETLElectronicsSim.h.
|
private |
Definition at line 61 of file ETLElectronicsSim.h.
|
private |
Definition at line 64 of file ETLElectronicsSim.h.
Referenced by run(), and runTrivialShaper().
|
private |
Definition at line 52 of file ETLElectronicsSim.h.
Referenced by run().
|
static |
Definition at line 46 of file ETLElectronicsSim.h.
Referenced by updateOutput().
|
private |
Definition at line 55 of file ETLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 72 of file ETLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 50 of file ETLElectronicsSim.h.
Referenced by getEventSetup(), and run().
|
private |
Definition at line 49 of file ETLElectronicsSim.h.
Referenced by getEventSetup().
|
private |
Definition at line 53 of file ETLElectronicsSim.h.
|
private |
Definition at line 65 of file ETLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 69 of file ETLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 68 of file ETLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 70 of file ETLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 71 of file ETLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 67 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 58 of file ETLElectronicsSim.h.
|
private |
Definition at line 66 of file ETLElectronicsSim.h.
Referenced by runTrivialShaper().