#include <BTLElectronicsSim.h>
Public Member Functions | |
BTLElectronicsSim (const edm::ParameterSet &pset) | |
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 int | dfSIZE = 2 |
Private Member Functions | |
float | sigma2_pe (const float &Q, const float &R) const |
Private Attributes | |
const uint32_t | adcBitSaturation_ |
const float | adcLSB_MIP_ |
const uint32_t | adcNbits_ |
const float | adcSaturation_MIP_ |
const float | adcThreshold_MIP_ |
const BTLPulseShape | btlPulseShape_ |
const float | bxTime_ |
const float | ChannelTimeOffset_ |
const float | CorrCoeff_ |
const float | cosPhi_ |
const float | DarkCountRate_ |
const float | DCRxRiseTime_ |
const bool | debug_ |
const float | EnergyThreshold_ |
const float | Npe_to_pC_ |
const float | Npe_to_V_ |
const float | ReferencePulseNpe_ |
const float | ScintillatorDecayTime2_ |
const float | ScintillatorDecayTime_ |
const float | ScintillatorRiseTime_ |
const float | SigmaClock2_ |
const float | SigmaClock_ |
const float | SigmaElectronicNoise2_ |
const float | SigmaElectronicNoise_ |
const float | SinglePhotonTimeResolution_ |
const float | sinPhi_ |
const float | smearChannelTimeOffset_ |
const float | SPTR2_ |
const uint32_t | tdcBitSaturation_ |
const uint32_t | tdcNbits_ |
const float | testBeamMIPTimeRes_ |
const float | TimeThreshold1_ |
const float | TimeThreshold2_ |
const float | toaLSB_ns_ |
Definition at line 21 of file BTLElectronicsSim.h.
BTLElectronicsSim::BTLElectronicsSim | ( | const edm::ParameterSet & | pset | ) |
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.
References cuy::col, coll, input, convertSQLitetoXML_cfg::output, and writedatasetfile::run.
void BTLElectronicsSim::run | ( | const mtd::MTDSimHitDataAccumulator & | input, |
BTLDigiCollection & | output, | ||
CLHEP::HepRandomEngine * | hre | ||
) | const |
Definition at line 48 of file BTLElectronicsSim.cc.
References btlPulseShape_, ChannelTimeOffset_, cosPhi_, DCRxRiseTime_, EnergyThreshold_, f, mps_fire::i, Npe_to_pC_, Npe_to_V_, ReferencePulseNpe_, runTrivialShaper(), ScintillatorDecayTime2_, ScintillatorDecayTime_, sigma2_pe(), SigmaClock2_, SigmaElectronicNoise2_, sinPhi_, smearChannelTimeOffset_, SPTR2_, mathSSE::sqrt(), testBeamMIPTimeRes_, MTDShapeBase::timeAtThr(), create_public_lumi_plots::times, 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 147 of file BTLElectronicsSim.cc.
References ecalMGPA::adc(), adcBitSaturation_, adcLSB_MIP_, adcThreshold_MIP_, 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 202 of file BTLElectronicsSim.cc.
References dttmaxenums::R.
Referenced by run().
void BTLElectronicsSim::updateOutput | ( | BTLDigiCollection & | coll, |
const BTLDataFrame & | rawDataFrame | ||
) | const |
Definition at line 186 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 78 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 79 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 74 of file BTLElectronicsSim.h.
|
private |
Definition at line 77 of file BTLElectronicsSim.h.
|
private |
Definition at line 80 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 94 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 53 of file BTLElectronicsSim.h.
|
private |
Definition at line 57 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 84 of file BTLElectronicsSim.h.
|
private |
Definition at line 85 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 66 of file BTLElectronicsSim.h.
|
private |
Definition at line 90 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 51 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().
|
static |
Definition at line 44 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 88 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 56 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 55 of file BTLElectronicsSim.h.
|
private |
Definition at line 92 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 68 of file BTLElectronicsSim.h.
|
private |
Definition at line 91 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 67 of file BTLElectronicsSim.h.
|
private |
Definition at line 65 of file BTLElectronicsSim.h.
|
private |
Definition at line 86 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 58 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 89 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 82 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().
|
private |
Definition at line 74 of file BTLElectronicsSim.h.
|
private |
Definition at line 54 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 61 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 62 of file BTLElectronicsSim.h.
Referenced by run().
|
private |
Definition at line 81 of file BTLElectronicsSim.h.
Referenced by runTrivialShaper().