#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_DCR (const float &npe) const |
float | sigma2_electronics (const float npe) const |
float | sigma2_pe (const float &Q, const float &R) const |
float | sigma_stochastic (const float &npe) const |
Definition at line 21 of file BTLElectronicsSim.h.
BTLElectronicsSim::BTLElectronicsSim | ( | const edm::ParameterSet & | pset, |
edm::ConsumesCollector | iC | ||
) |
Definition at line 13 of file BTLElectronicsSim.cc.
References alignBH_cfg::fixed, LogDebug, muonDTDigis_cfi::pset, photons_cff::s4, sigma2_DCR(), sigma2_electronics(), sigma_stochastic(), SigmaClock_, SinglePhotonTimeResolution_, mathSSE::sqrt(), and TimeThreshold1_.
|
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 70 of file BTLElectronicsSim.cc.
References btlPulseShape_, bxTime_, ChannelTimeOffset_, cosPhi_, EnergyThreshold_, JetChargeProducer_cfi::exp, f, input, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, mtd_digitizer::kInTimeBX, Npe_to_pC_, Npe_to_V_, ReferencePulseNpe_, runTrivialShaper(), ScintillatorDecayTime_, ScintillatorDecayTimeInv_, ScintillatorRiseTime_, sigma2_DCR(), sigma2_electronics(), sigma2_pe(), sigma_stochastic(), SigmaClock2_, sigmaRelTOFHIRenergy_, 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 187 of file BTLElectronicsSim.cc.
References gpuClustering::adc, adcBitSaturation_, adcLSB_MIP_, adcThreshold_MIP_, cuy::col, debug, debug_, createfilelist::int, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, SiStripPI::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 256 of file BTLElectronicsSim.cc.
References DCRxRiseTime_, and ScintillatorDecayTime2_.
Referenced by BTLElectronicsSim(), and run().
|
private |
Definition at line 265 of file BTLElectronicsSim.cc.
References ScintillatorDecayTime2_, and SigmaElectronicNoise2_.
Referenced by BTLElectronicsSim(), and run().
|
private |
Definition at line 242 of file BTLElectronicsSim.cc.
References dttmaxenums::R.
Referenced by run().
|
private |
Definition at line 254 of file BTLElectronicsSim.cc.
References mathSSE::sqrt(), and testBeamMIPTimeRes_.
Referenced by BTLElectronicsSim(), and run().
void BTLElectronicsSim::updateOutput | ( | BTLDigiCollection & | coll, |
const BTLDataFrame & | rawDataFrame | ||
) | const |
Definition at line 227 of file BTLElectronicsSim.cc.
References dfSIZE, FTLDataFrameT< D, S, DECODE >::id(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, edm::SortedCollection< T, SORT >::push_back(), and FTLDataFrameT< D, S, DECODE >::resize().
Referenced by run().
|
private |
Definition at line 79 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 80 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 75 of file BTLElectronicsSim.h.
|
private |
Definition at line 78 of file BTLElectronicsSim.h.
|
private |
Definition at line 81 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 96 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 53 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 57 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 85 of file BTLElectronicsSim.h.
|
private |
Definition at line 86 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 66 of file BTLElectronicsSim.h.
|
private |
Definition at line 92 of file BTLElectronicsSim.h.
Referenced by sigma2_DCR().
|
private |
Definition at line 51 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().
|
static |
Definition at line 40 of file BTLElectronicsSim.h.
Referenced by updateOutput().
|
private |
Definition at line 60 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 70 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 71 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 63 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 89 of file BTLElectronicsSim.h.
Referenced by sigma2_DCR(), and sigma2_electronics().
|
private |
Definition at line 56 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 90 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 55 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 94 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 68 of file BTLElectronicsSim.h.
Referenced by BTLElectronicsSim().
|
private |
Definition at line 93 of file BTLElectronicsSim.h.
Referenced by sigma2_electronics().
|
private |
Definition at line 67 of file BTLElectronicsSim.h.
|
private |
Definition at line 72 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 65 of file BTLElectronicsSim.h.
Referenced by BTLElectronicsSim().
|
private |
Definition at line 87 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 58 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 69 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 91 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 83 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 75 of file BTLElectronicsSim.h.
|
private |
Definition at line 54 of file BTLElectronicsSim.h.
Referenced by run(), and sigma_stochastic().
|
private |
Definition at line 61 of file BTLElectronicsSim.h.
Referenced by BTLElectronicsSim(), and run().
|
private |
Definition at line 62 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 82 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().