CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
BTLElectronicsSim Class Reference

#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
 

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 ScintillatorDecayTimeInv_
 
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 bool smearTimeForOOTtails_
 
const float SPTR2_
 
const uint32_t tdcBitSaturation_
 
const uint32_t tdcNbits_
 
const float testBeamMIPTimeRes_
 
const float TimeThreshold1_
 
const float TimeThreshold2_
 
const float toaLSB_ns_
 

Detailed Description

Definition at line 21 of file BTLElectronicsSim.h.

Constructor & Destructor Documentation

◆ BTLElectronicsSim()

BTLElectronicsSim::BTLElectronicsSim ( const edm::ParameterSet pset,
edm::ConsumesCollector  iC 
)

Definition at line 11 of file BTLElectronicsSim.cc.

12  : debug_(pset.getUntrackedParameter<bool>("debug", false)),
13  bxTime_(pset.getParameter<double>("bxTime")),
14  testBeamMIPTimeRes_(pset.getParameter<double>("TestBeamMIPTimeRes")),
15  ScintillatorRiseTime_(pset.getParameter<double>("ScintillatorRiseTime")),
16  ScintillatorDecayTime_(pset.getParameter<double>("ScintillatorDecayTime")),
17  ChannelTimeOffset_(pset.getParameter<double>("ChannelTimeOffset")),
18  smearChannelTimeOffset_(pset.getParameter<double>("smearChannelTimeOffset")),
19  EnergyThreshold_(pset.getParameter<double>("EnergyThreshold")),
20  TimeThreshold1_(pset.getParameter<double>("TimeThreshold1")),
21  TimeThreshold2_(pset.getParameter<double>("TimeThreshold2")),
22  ReferencePulseNpe_(pset.getParameter<double>("ReferencePulseNpe")),
23  SinglePhotonTimeResolution_(pset.getParameter<double>("SinglePhotonTimeResolution")),
24  DarkCountRate_(pset.getParameter<double>("DarkCountRate")),
25  SigmaElectronicNoise_(pset.getParameter<double>("SigmaElectronicNoise")),
26  SigmaClock_(pset.getParameter<double>("SigmaClock")),
27  smearTimeForOOTtails_(pset.getParameter<bool>("SmearTimeForOOTtails")),
28  Npe_to_pC_(pset.getParameter<double>("Npe_to_pC")),
29  Npe_to_V_(pset.getParameter<double>("Npe_to_V")),
30  adcNbits_(pset.getParameter<uint32_t>("adcNbits")),
31  tdcNbits_(pset.getParameter<uint32_t>("tdcNbits")),
32  adcSaturation_MIP_(pset.getParameter<double>("adcSaturation_MIP")),
35  adcThreshold_MIP_(pset.getParameter<double>("adcThreshold_MIP")),
36  toaLSB_ns_(pset.getParameter<double>("toaLSB_ns")),
38  CorrCoeff_(pset.getParameter<double>("CorrelationCoefficient")),
39  cosPhi_(0.5 * (sqrt(1. + CorrCoeff_) + sqrt(1. - CorrCoeff_))),
40  sinPhi_(0.5 * CorrCoeff_ / cosPhi_),

Member Function Documentation

◆ getEvent()

void BTLElectronicsSim::getEvent ( const edm::Event evt)
inline

Definition at line 25 of file BTLElectronicsSim.h.

25 {}

◆ getEventSetup()

void BTLElectronicsSim::getEventSetup ( const edm::EventSetup evt)
inline

Definition at line 27 of file BTLElectronicsSim.h.

27 {}

◆ run()

void BTLElectronicsSim::run ( const mtd::MTDSimHitDataAccumulator input,
BTLDigiCollection output,
CLHEP::HepRandomEngine *  hre 
) const

Definition at line 48 of file BTLElectronicsSim.cc.

50  {
51  MTDSimHitData chargeColl, toa1, toa2;
52 
53  for (MTDSimHitDataAccumulator::const_iterator it = input.begin(); it != input.end(); it++) {
54  // --- Digitize only the in-time bucket:
55  const unsigned int iBX = mtd_digitizer::kInTimeBX;
56 
57  chargeColl.fill(0.f);
58  toa1.fill(0.f);
59  toa2.fill(0.f);
60  for (size_t iside = 0; iside < 2; iside++) {
61  // --- Fluctuate the total number of photo-electrons
62  float Npe = CLHEP::RandPoissonQ::shoot(hre, (it->second).hit_info[2 * iside][iBX]);
63  if (Npe < EnergyThreshold_)
64  continue;
65 
66  // --- Get the time of arrival and add a channel time offset
67  float finalToA1 = (it->second).hit_info[1 + 2 * iside][iBX] + ChannelTimeOffset_;
68 
69  if (smearChannelTimeOffset_ > 0.) {
70  float timeSmearing = CLHEP::RandGaussQ::shoot(hre, 0., smearChannelTimeOffset_);
71  finalToA1 += timeSmearing;
72  }
73 
74  // --- Calculate and add the time walk: the time of arrival is read in correspondence
75  // with two thresholds on the signal pulse
76  std::array<float, 3> times =
78 
79  // --- If the pulse amplitude is smaller than TimeThreshold2, the trigger does not fire
80  if (times[1] == 0.)
81  continue;
82 
83  float finalToA2 = finalToA1 + times[1];
84  finalToA1 += times[0];
85 
86  // --- Estimate the time uncertainty due to photons from earlier OOT hits in the current BTL cell
88  float rate_oot = 0.;
89  // Loop on earlier OOT hits
90  for (int ibx = 0; ibx < mtd_digitizer::kInTimeBX; ++ibx) {
91  if ((it->second).hit_info[2 * iside][ibx] > 0.) {
92  float hit_time = (it->second).hit_info[1 + 2 * iside][ibx] + bxTime_ * (ibx - mtd_digitizer::kInTimeBX);
93  float npe_oot = CLHEP::RandPoissonQ::shoot(hre, (it->second).hit_info[2 * iside][ibx]);
94  rate_oot += npe_oot * exp(hit_time * ScintillatorDecayTimeInv_) * ScintillatorDecayTimeInv_;
95  }
96  } // ibx loop
97 
98  if (rate_oot > 0.) {
99  float sigma_oot = sqrt(rate_oot * ScintillatorRiseTime_) * ScintillatorDecayTime_ / Npe;
100  float smearing_oot = CLHEP::RandGaussQ::shoot(hre, 0., sigma_oot);
101  finalToA1 += smearing_oot;
102  finalToA2 += smearing_oot;
103  }
104  } // if smearTimeForOOTtails_
105 
106  // --- Uncertainty due to the fluctuations of the n-th photon arrival time:
107  if (testBeamMIPTimeRes_ > 0.) {
108  // In this case the time resolution is parametrized from the testbeam.
109  // The same parameterization is used for both thresholds.
110  float sigma = testBeamMIPTimeRes_ / sqrt(Npe);
111  float smearing_stat_thr1 = CLHEP::RandGaussQ::shoot(hre, 0., sigma);
112  float smearing_stat_thr2 = CLHEP::RandGaussQ::shoot(hre, 0., sigma);
113 
114  finalToA1 += smearing_stat_thr1;
115  finalToA2 += smearing_stat_thr2;
116 
117  } else {
118  // In this case the time resolution is taken from the literature.
119  // The fluctuations due to the first TimeThreshold1_ p.e. are common to both times
120  float smearing_stat_thr1 =
121  CLHEP::RandGaussQ::shoot(hre, 0., ScintillatorDecayTime_ * sqrt(sigma2_pe(TimeThreshold1_, Npe)));
122  float smearing_stat_thr2 = CLHEP::RandGaussQ::shoot(
124  finalToA1 += smearing_stat_thr1;
125  finalToA2 += smearing_stat_thr1 + smearing_stat_thr2;
126  }
127 
128  // --- Add in quadrature the uncertainties due to the SiPM timing resolution, the SiPM DCR,
129  // the electronic noise and the clock distribution:
130  float slew2 = ScintillatorDecayTime2_ / Npe / Npe;
131 
132  float sigma2_tot_thr1 =
134  float sigma2_tot_thr2 =
136 
137  // --- Smear the arrival times using the correlated uncertainties:
138  float smearing_thr1_uncorr = CLHEP::RandGaussQ::shoot(hre, 0., sqrt(sigma2_tot_thr1));
139  float smearing_thr2_uncorr = CLHEP::RandGaussQ::shoot(hre, 0., sqrt(sigma2_tot_thr2));
140 
141  finalToA1 += cosPhi_ * smearing_thr1_uncorr + sinPhi_ * smearing_thr2_uncorr;
142  finalToA2 += sinPhi_ * smearing_thr1_uncorr + cosPhi_ * smearing_thr2_uncorr;
143 
144  chargeColl[iside] = Npe * Npe_to_pC_; // the p.e. number is here converted to pC
145 
146  toa1[iside] = finalToA1;
147  toa2[iside] = finalToA2;
148 
149  } // iside loop
150 
151  //run the shaper to create a new data frame
152  BTLDataFrame rawDataFrame(it->first.detid_);
153  runTrivialShaper(rawDataFrame, chargeColl, toa1, toa2, it->first.row_, it->first.column_);
154  updateOutput(output, rawDataFrame);
155 
156  } // MTDSimHitDataAccumulator loop
157 }

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().

◆ runTrivialShaper()

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.

164  {
165  bool debug = debug_;
166 #ifdef EDM_ML_DEBUG
167  for (int it = 0; it < (int)(chargeColl.size()); it++)
168  debug |= (chargeColl[it] > adcThreshold_MIP_);
169 #endif
170 
171  if (debug)
172  edm::LogVerbatim("BTLElectronicsSim") << "[runTrivialShaper]" << std::endl;
173 
174  //set new ADCs
175  for (int it = 0; it < (int)(chargeColl.size()); it++) {
176  BTLSample newSample;
177  newSample.set(false, false, 0, 0, 0, row, col);
178 
179  //brute force saturation, maybe could to better with an exponential like saturation
180  const uint32_t adc = std::min((uint32_t)std::floor(chargeColl[it] / adcLSB_MIP_), adcBitSaturation_);
181  const uint32_t tdc_time1 = std::min((uint32_t)std::floor(toa1[it] / toaLSB_ns_), tdcBitSaturation_);
182  const uint32_t tdc_time2 = std::min((uint32_t)std::floor(toa2[it] / toaLSB_ns_), tdcBitSaturation_);
183 
184  newSample.set(
185  chargeColl[it] > adcThreshold_MIP_, tdc_time1 == tdcBitSaturation_, tdc_time2, tdc_time1, adc, row, col);
186  dataFrame.setSample(it, newSample);
187 
188  if (debug)
189  edm::LogVerbatim("BTLElectronicsSim") << adc << " (" << chargeColl[it] << "/" << adcLSB_MIP_ << ") ";
190  }
191 
192  if (debug) {
193  std::ostringstream msg;
194  dataFrame.print(msg);
195  edm::LogVerbatim("BTLElectronicsSim") << msg.str() << std::endl;
196  }
197 }

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().

◆ sigma2_pe()

float BTLElectronicsSim::sigma2_pe ( const float &  Q,
const float &  R 
) const
private

Definition at line 214 of file BTLElectronicsSim.cc.

214  {
215  float OneOverR = 1. / R;
216  float OneOverR2 = OneOverR * OneOverR;
217 
218  // --- This is Eq. (17) from Nucl. Instr. Meth. A 564 (2006) 185
219  float sigma2 = Q * OneOverR2 *
220  (1. + 2. * (Q + 1.) * OneOverR + (Q + 1.) * (6. * Q + 11) * OneOverR2 +
221  (Q + 1.) * (Q + 2.) * (2. * Q + 5.) * OneOverR2 * OneOverR);
222 
223  return sigma2;
224 }

References dttmaxenums::R.

Referenced by run().

◆ updateOutput()

void BTLElectronicsSim::updateOutput ( BTLDigiCollection coll,
const BTLDataFrame rawDataFrame 
) const

Definition at line 199 of file BTLElectronicsSim.cc.

199  {
200  BTLDataFrame dataFrame(rawDataFrame.id());
201  dataFrame.resize(dfSIZE);
202  bool putInEvent(false);
203  for (int it = 0; it < dfSIZE; ++it) {
204  dataFrame.setSample(it, rawDataFrame[it]);
205  if (it == 0)
206  putInEvent = rawDataFrame[it].threshold();
207  }
208 
209  if (putInEvent) {
210  coll.push_back(dataFrame);
211  }
212 }

References dfSIZE, FTLDataFrameT< D, S, DECODE >::id(), edm::SortedCollection< T, SORT >::push_back(), and FTLDataFrameT< D, S, DECODE >::resize().

Referenced by run().

Member Data Documentation

◆ adcBitSaturation_

const uint32_t BTLElectronicsSim::adcBitSaturation_
private

Definition at line 72 of file BTLElectronicsSim.h.

Referenced by runTrivialShaper().

◆ adcLSB_MIP_

const float BTLElectronicsSim::adcLSB_MIP_
private

Definition at line 73 of file BTLElectronicsSim.h.

Referenced by runTrivialShaper().

◆ adcNbits_

const uint32_t BTLElectronicsSim::adcNbits_
private

Definition at line 68 of file BTLElectronicsSim.h.

◆ adcSaturation_MIP_

const float BTLElectronicsSim::adcSaturation_MIP_
private

Definition at line 71 of file BTLElectronicsSim.h.

◆ adcThreshold_MIP_

const float BTLElectronicsSim::adcThreshold_MIP_
private

Definition at line 74 of file BTLElectronicsSim.h.

Referenced by runTrivialShaper().

◆ btlPulseShape_

const BTLPulseShape BTLElectronicsSim::btlPulseShape_
private

Definition at line 89 of file BTLElectronicsSim.h.

Referenced by run().

◆ bxTime_

const float BTLElectronicsSim::bxTime_
private

Definition at line 47 of file BTLElectronicsSim.h.

Referenced by run().

◆ ChannelTimeOffset_

const float BTLElectronicsSim::ChannelTimeOffset_
private

Definition at line 51 of file BTLElectronicsSim.h.

Referenced by run().

◆ CorrCoeff_

const float BTLElectronicsSim::CorrCoeff_
private

Definition at line 78 of file BTLElectronicsSim.h.

◆ cosPhi_

const float BTLElectronicsSim::cosPhi_
private

Definition at line 79 of file BTLElectronicsSim.h.

Referenced by run().

◆ DarkCountRate_

const float BTLElectronicsSim::DarkCountRate_
private

Definition at line 60 of file BTLElectronicsSim.h.

◆ DCRxRiseTime_

const float BTLElectronicsSim::DCRxRiseTime_
private

Definition at line 85 of file BTLElectronicsSim.h.

Referenced by run().

◆ debug_

const bool BTLElectronicsSim::debug_
private

Definition at line 45 of file BTLElectronicsSim.h.

Referenced by runTrivialShaper().

◆ dfSIZE

constexpr int BTLElectronicsSim::dfSIZE = 2
staticconstexpr

Definition at line 40 of file BTLElectronicsSim.h.

Referenced by updateOutput().

◆ EnergyThreshold_

const float BTLElectronicsSim::EnergyThreshold_
private

Definition at line 54 of file BTLElectronicsSim.h.

Referenced by run().

◆ Npe_to_pC_

const float BTLElectronicsSim::Npe_to_pC_
private

Definition at line 64 of file BTLElectronicsSim.h.

Referenced by run().

◆ Npe_to_V_

const float BTLElectronicsSim::Npe_to_V_
private

Definition at line 65 of file BTLElectronicsSim.h.

Referenced by run().

◆ ReferencePulseNpe_

const float BTLElectronicsSim::ReferencePulseNpe_
private

Definition at line 57 of file BTLElectronicsSim.h.

Referenced by run().

◆ ScintillatorDecayTime2_

const float BTLElectronicsSim::ScintillatorDecayTime2_
private

Definition at line 82 of file BTLElectronicsSim.h.

Referenced by run().

◆ ScintillatorDecayTime_

const float BTLElectronicsSim::ScintillatorDecayTime_
private

Definition at line 50 of file BTLElectronicsSim.h.

Referenced by run().

◆ ScintillatorDecayTimeInv_

const float BTLElectronicsSim::ScintillatorDecayTimeInv_
private

Definition at line 83 of file BTLElectronicsSim.h.

Referenced by run().

◆ ScintillatorRiseTime_

const float BTLElectronicsSim::ScintillatorRiseTime_
private

Definition at line 49 of file BTLElectronicsSim.h.

Referenced by run().

◆ SigmaClock2_

const float BTLElectronicsSim::SigmaClock2_
private

Definition at line 87 of file BTLElectronicsSim.h.

Referenced by run().

◆ SigmaClock_

const float BTLElectronicsSim::SigmaClock_
private

Definition at line 62 of file BTLElectronicsSim.h.

◆ SigmaElectronicNoise2_

const float BTLElectronicsSim::SigmaElectronicNoise2_
private

Definition at line 86 of file BTLElectronicsSim.h.

Referenced by run().

◆ SigmaElectronicNoise_

const float BTLElectronicsSim::SigmaElectronicNoise_
private

Definition at line 61 of file BTLElectronicsSim.h.

◆ SinglePhotonTimeResolution_

const float BTLElectronicsSim::SinglePhotonTimeResolution_
private

Definition at line 59 of file BTLElectronicsSim.h.

◆ sinPhi_

const float BTLElectronicsSim::sinPhi_
private

Definition at line 80 of file BTLElectronicsSim.h.

Referenced by run().

◆ smearChannelTimeOffset_

const float BTLElectronicsSim::smearChannelTimeOffset_
private

Definition at line 52 of file BTLElectronicsSim.h.

Referenced by run().

◆ smearTimeForOOTtails_

const bool BTLElectronicsSim::smearTimeForOOTtails_
private

Definition at line 63 of file BTLElectronicsSim.h.

Referenced by run().

◆ SPTR2_

const float BTLElectronicsSim::SPTR2_
private

Definition at line 84 of file BTLElectronicsSim.h.

Referenced by run().

◆ tdcBitSaturation_

const uint32_t BTLElectronicsSim::tdcBitSaturation_
private

Definition at line 76 of file BTLElectronicsSim.h.

Referenced by runTrivialShaper().

◆ tdcNbits_

const uint32_t BTLElectronicsSim::tdcNbits_
private

Definition at line 68 of file BTLElectronicsSim.h.

◆ testBeamMIPTimeRes_

const float BTLElectronicsSim::testBeamMIPTimeRes_
private

Definition at line 48 of file BTLElectronicsSim.h.

Referenced by run().

◆ TimeThreshold1_

const float BTLElectronicsSim::TimeThreshold1_
private

Definition at line 55 of file BTLElectronicsSim.h.

Referenced by run().

◆ TimeThreshold2_

const float BTLElectronicsSim::TimeThreshold2_
private

Definition at line 56 of file BTLElectronicsSim.h.

Referenced by run().

◆ toaLSB_ns_

const float BTLElectronicsSim::toaLSB_ns_
private

Definition at line 75 of file BTLElectronicsSim.h.

Referenced by runTrivialShaper().

FTLDataFrameT::print
void print(std::ostream &out=std::cout)
Definition: FTLDataFrameT.h:62
FTLDataFrameT::id
const D & id() const
det id
Definition: FTLDataFrameT.h:31
BTLElectronicsSim::smearTimeForOOTtails_
const bool smearTimeForOOTtails_
Definition: BTLElectronicsSim.h:63
BTLElectronicsSim::smearChannelTimeOffset_
const float smearChannelTimeOffset_
Definition: BTLElectronicsSim.h:52
BTLElectronicsSim::updateOutput
void updateOutput(BTLDigiCollection &coll, const BTLDataFrame &rawDataFrame) const
Definition: BTLElectronicsSim.cc:199
BTLSample::set
void set(bool thr, bool mode, uint16_t toa2, uint16_t toa, uint16_t data, uint8_t row, uint8_t col)
Definition: BTLSample.h:37
BTLElectronicsSim::DarkCountRate_
const float DarkCountRate_
Definition: BTLElectronicsSim.h:60
input
static const std::string input
Definition: EdmProvDump.cc:48
BTLElectronicsSim::SigmaClock2_
const float SigmaClock2_
Definition: BTLElectronicsSim.h:87
BTLElectronicsSim::adcThreshold_MIP_
const float adcThreshold_MIP_
Definition: BTLElectronicsSim.h:74
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
min
T min(T a, T b)
Definition: MathUtil.h:58
BTLElectronicsSim::Npe_to_pC_
const float Npe_to_pC_
Definition: BTLElectronicsSim.h:64
MTDShapeBase::timeAtThr
std::array< float, 3 > timeAtThr(const float scale, const float threshold1, const float threshold2) const
Definition: MTDShapeBase.cc:9
gpuClustering::adc
uint16_t *__restrict__ uint16_t const *__restrict__ adc
Definition: gpuClusterChargeCut.h:20
cuy.col
col
Definition: cuy.py:1009
BTLElectronicsSim::adcLSB_MIP_
const float adcLSB_MIP_
Definition: BTLElectronicsSim.h:73
BTLElectronicsSim::DCRxRiseTime_
const float DCRxRiseTime_
Definition: BTLElectronicsSim.h:85
BTLElectronicsSim::bxTime_
const float bxTime_
Definition: BTLElectronicsSim.h:47
BTLElectronicsSim::SigmaClock_
const float SigmaClock_
Definition: BTLElectronicsSim.h:62
BTLElectronicsSim::sinPhi_
const float sinPhi_
Definition: BTLElectronicsSim.h:80
mps_check.msg
tuple msg
Definition: mps_check.py:285
hcalSimParameters_cfi.timeSmearing
timeSmearing
Definition: hcalSimParameters_cfi.py:52
BTLElectronicsSim::runTrivialShaper
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
Definition: BTLElectronicsSim.cc:159
BTLElectronicsSim::cosPhi_
const float cosPhi_
Definition: BTLElectronicsSim.h:79
edm::SortedCollection::push_back
void push_back(T const &t)
Definition: SortedCollection.h:188
BTLElectronicsSim::ScintillatorDecayTimeInv_
const float ScintillatorDecayTimeInv_
Definition: BTLElectronicsSim.h:83
BTLElectronicsSim::adcSaturation_MIP_
const float adcSaturation_MIP_
Definition: BTLElectronicsSim.h:71
debug
#define debug
Definition: HDRShower.cc:19
mtd_digitizer::MTDSimHitData
std::array< MTDSimData_t, nSamples > MTDSimHitData
Definition: MTDDigitizerTypes.h:15
BTLElectronicsSim::dfSIZE
static constexpr int dfSIZE
Definition: BTLElectronicsSim.h:40
BTLElectronicsSim::ScintillatorDecayTime2_
const float ScintillatorDecayTime2_
Definition: BTLElectronicsSim.h:82
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
BTLSample
wrapper for a data word
Definition: BTLSample.h:13
FTLDataFrameT::setSample
void setSample(int i, const S &sample)
Definition: FTLDataFrameT.h:58
BTLElectronicsSim::TimeThreshold2_
const float TimeThreshold2_
Definition: BTLElectronicsSim.h:56
BTLElectronicsSim::Npe_to_V_
const float Npe_to_V_
Definition: BTLElectronicsSim.h:65
BTLElectronicsSim::sigma2_pe
float sigma2_pe(const float &Q, const float &R) const
Definition: BTLElectronicsSim.cc:214
BTLElectronicsSim::SigmaElectronicNoise_
const float SigmaElectronicNoise_
Definition: BTLElectronicsSim.h:61
BTLElectronicsSim::tdcNbits_
const uint32_t tdcNbits_
Definition: BTLElectronicsSim.h:68
BTLElectronicsSim::toaLSB_ns_
const float toaLSB_ns_
Definition: BTLElectronicsSim.h:75
BTLElectronicsSim::SigmaElectronicNoise2_
const float SigmaElectronicNoise2_
Definition: BTLElectronicsSim.h:86
BTLElectronicsSim::debug_
const bool debug_
Definition: BTLElectronicsSim.h:45
BTLElectronicsSim::btlPulseShape_
const BTLPulseShape btlPulseShape_
Definition: BTLElectronicsSim.h:89
createfilelist.int
int
Definition: createfilelist.py:10
BTLElectronicsSim::CorrCoeff_
const float CorrCoeff_
Definition: BTLElectronicsSim.h:78
BTLElectronicsSim::adcBitSaturation_
const uint32_t adcBitSaturation_
Definition: BTLElectronicsSim.h:72
BTLElectronicsSim::EnergyThreshold_
const float EnergyThreshold_
Definition: BTLElectronicsSim.h:54
FTLDataFrameT
Readout digi for HGC.
Definition: FTLDataFrameT.h:14
BTLElectronicsSim::TimeThreshold1_
const float TimeThreshold1_
Definition: BTLElectronicsSim.h:55
FTLDataFrameT::resize
void resize(size_t s)
allow to set size
Definition: FTLDataFrameT.h:51
BTLElectronicsSim::ChannelTimeOffset_
const float ChannelTimeOffset_
Definition: BTLElectronicsSim.h:51
BTLElectronicsSim::ScintillatorRiseTime_
const float ScintillatorRiseTime_
Definition: BTLElectronicsSim.h:49
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
BTLElectronicsSim::SinglePhotonTimeResolution_
const float SinglePhotonTimeResolution_
Definition: BTLElectronicsSim.h:59
BTLElectronicsSim::ReferencePulseNpe_
const float ReferencePulseNpe_
Definition: BTLElectronicsSim.h:57
BTLElectronicsSim::tdcBitSaturation_
const uint32_t tdcBitSaturation_
Definition: BTLElectronicsSim.h:76
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
JetChargeProducer_cfi.exp
exp
Definition: JetChargeProducer_cfi.py:6
mtd_digitizer::kInTimeBX
constexpr int kInTimeBX
Definition: MTDDigitizerTypes.h:42
BTLElectronicsSim::adcNbits_
const uint32_t adcNbits_
Definition: BTLElectronicsSim.h:68
BTLElectronicsSim::SPTR2_
const float SPTR2_
Definition: BTLElectronicsSim.h:84
dttmaxenums::R
Definition: DTTMax.h:29
BTLElectronicsSim::ScintillatorDecayTime_
const float ScintillatorDecayTime_
Definition: BTLElectronicsSim.h:50
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
BTLElectronicsSim::testBeamMIPTimeRes_
const float testBeamMIPTimeRes_
Definition: BTLElectronicsSim.h:48