#include <BTLElectronicsSim.h>
Public Member Functions | |
BTLElectronicsSim (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, BTLDigiCollection &output, CLHEP::HepRandomEngine *hre) const |
void | runTrivialShaper (BTLDataFrame &dataFrame, const mtd::MTDSimHitData &chargeColl, const mtd::MTDSimHitData &toa1, const mtd::MTDSimHitData &toa2, const uint8_t row, const uint8_t col) const |
void | updateOutput (BTLDigiCollection &coll, const BTLDataFrame &rawDataFrame) const |
Static Public Attributes | |
static constexpr int | dfSIZE = 2 |
Private Member Functions | |
float | sigma2_pe (const float &Q, const float &R) const |
Definition at line 21 of file BTLElectronicsSim.h.
BTLElectronicsSim::BTLElectronicsSim | ( | const edm::ParameterSet & | pset, |
edm::ConsumesCollector | iC | ||
) |
Definition at line 11 of file BTLElectronicsSim.cc.
|
inline |
Definition at line 25 of file BTLElectronicsSim.h.
|
inline |
Definition at line 27 of file BTLElectronicsSim.h.
void BTLElectronicsSim::run | ( | const mtd::MTDSimHitDataAccumulator & | input, |
BTLDigiCollection & | output, | ||
CLHEP::HepRandomEngine * | hre | ||
) | const |
Definition at line 48 of file BTLElectronicsSim.cc.
References btlPulseShape_, bxTime_, ChannelTimeOffset_, cosPhi_, DCRxRiseTime_, EnergyThreshold_, JetChargeProducer_cfi::exp, f, input, mtd_digitizer::kInTimeBX, Npe_to_pC_, Npe_to_V_, convertSQLitetoXML_cfg::output, ReferencePulseNpe_, runTrivialShaper(), ScintillatorDecayTime2_, ScintillatorDecayTime_, ScintillatorDecayTimeInv_, ScintillatorRiseTime_, sigma2_pe(), SigmaClock2_, SigmaElectronicNoise2_, sinPhi_, smearChannelTimeOffset_, smearTimeForOOTtails_, SPTR2_, mathSSE::sqrt(), testBeamMIPTimeRes_, MTDShapeBase::timeAtThr(), hcalSimParameters_cfi::timeSmearing, TimeThreshold1_, TimeThreshold2_, and updateOutput().
void BTLElectronicsSim::runTrivialShaper | ( | BTLDataFrame & | dataFrame, |
const mtd::MTDSimHitData & | chargeColl, | ||
const mtd::MTDSimHitData & | toa1, | ||
const mtd::MTDSimHitData & | toa2, | ||
const uint8_t | row, | ||
const uint8_t | col | ||
) | const |
Definition at line 159 of file BTLElectronicsSim.cc.
References gpuClustering::adc, adcBitSaturation_, adcLSB_MIP_, adcThreshold_MIP_, cuy::col, debug, debug_, createfilelist::int, min(), mps_check::msg, FTLDataFrameT< D, S, DECODE >::print(), BTLSample::set(), FTLDataFrameT< D, S, DECODE >::setSample(), tdcBitSaturation_, and toaLSB_ns_.
Referenced by run().
|
private |
Definition at line 214 of file BTLElectronicsSim.cc.
References class-composition::Q, and dttmaxenums::R.
Referenced by run().
void BTLElectronicsSim::updateOutput | ( | BTLDigiCollection & | coll, |
const BTLDataFrame & | rawDataFrame | ||
) | const |
Definition at line 199 of file BTLElectronicsSim.cc.
References dfSIZE, FTLDataFrameT< D, S, DECODE >::id(), edm::SortedCollection< T, SORT >::push_back(), and FTLDataFrameT< D, S, DECODE >::resize().
Referenced by run().
|
private |
Definition at line 72 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 73 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 68 of file BTLElectronicsSim.h.
|
private |
Definition at line 71 of file BTLElectronicsSim.h.
|
private |
Definition at line 74 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 89 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 47 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 51 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 78 of file BTLElectronicsSim.h.
|
private |
Definition at line 79 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 60 of file BTLElectronicsSim.h.
|
private |
Definition at line 85 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 45 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().
|
staticconstexpr |
Definition at line 40 of file BTLElectronicsSim.h.
Referenced by updateOutput().
|
private |
Definition at line 54 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 64 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 65 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 57 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 82 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 50 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 83 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 49 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 87 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 62 of file BTLElectronicsSim.h.
|
private |
Definition at line 86 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 61 of file BTLElectronicsSim.h.
|
private |
Definition at line 59 of file BTLElectronicsSim.h.
|
private |
Definition at line 80 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 52 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 63 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 84 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 76 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 68 of file BTLElectronicsSim.h.
|
private |
Definition at line 48 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 55 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 56 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 75 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().