CMS 3D CMS Logo

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

#include <CSCStripElectronicsSim.h>

Inheritance diagram for CSCStripElectronicsSim:
CSCBaseElectronicsSim

Public Member Functions

void createDigi (int istrip, const CSCAnalogSignal &signal, std::vector< CSCStripDigi > &result, CLHEP::HepRandomEngine *)
 
 CSCStripElectronicsSim (const edm::ParameterSet &p)
 configurable parameters More...
 
void fillDigis (CSCStripDigiCollection &digis, CSCComparatorDigiCollection &comparators, CLHEP::HepRandomEngine *)
 
void fillMissingLayer (const CSCLayer *layer, const CSCComparatorDigiCollection &comparators, CSCStripDigiCollection &digis, CLHEP::HepRandomEngine *)
 
CSCAnalogSignal makeNoiseSignal (int element, CLHEP::HepRandomEngine *) override
 
void setStripConditions (CSCStripConditions *cond)
 
 ~CSCStripElectronicsSim () override
 
- Public Member Functions inherited from CSCBaseElectronicsSim
const DigiSimLinksdigiSimLinks () const
 
void setLayerId (const CSCDetId &id)
 for standalone apps who don't calculate it from the geometry More...
 
void simulate (const CSCLayer *layer, const std::vector< CSCDetectorHit > &inputHits, CLHEP::HepRandomEngine *)
 
virtual ~CSCBaseElectronicsSim ()
 

Private Member Functions

void addCrosstalk (CLHEP::HepRandomEngine *)
 
void addCrosstalk (const CSCAnalogSignal &signal, int thisStrip, int otherStrip, CLHEP::HepRandomEngine *)
 
float calculateAmpResponse (float t) const override
 
std::list< int > channelsToRead (const std::list< int > &keyStrips, int window) const
 
float comparatorReading (const CSCAnalogSignal &signal, float time, CLHEP::HepRandomEngine *) const
 calculates the comparator reading, including saturation and offsets More...
 
void doSaturation (CSCStripDigi &digi)
 
void fillStripDigis (const std::list< int > &keyStrips, CSCStripDigiCollection &digis, CLHEP::HepRandomEngine *)
 
std::list< int > getKeyStrips (const std::vector< CSCComparatorDigi > &comparators) const
 finds the key strips from these comparators More...
 
std::list< int > getKeyStripsFromMC () const
 get ths strips that have detector hits More...
 
void getReadoutRange (int inputStrip, int &minStrip, int &maxStrip)
 
void initParameters () override
 initialization for each layer More...
 
int readoutElement (int strip) const override
 
void runComparator (std::vector< CSCComparatorDigi > &result, CLHEP::HepRandomEngine *)
 
void selfTest () const
 

Private Attributes

bool doCrosstalk_
 
bool doSuppression_
 
int nScaBins_
 
int sca_peak_bin
 
float sca_time_bin_size
 
CSCStripAmpResponse theAmpResponse
 
float theAverageTimeOfFlight
 
int theComparatorClockJump
 
float theComparatorDeadTime
 
float theComparatorNoise
 
float theComparatorRMSOffset
 
double theComparatorSamplingTime
 
float theComparatorSaturation
 
float theComparatorThreshold
 
double theComparatorTimeBinOffset
 
double theComparatorTimeOffset
 
float theComparatorWait
 
CSCCrosstalkGeneratortheCrosstalkGenerator
 
float theDaqDeadTime
 
std::vector< double > theSCATimingOffsets
 
CSCStripConditionstheStripConditions
 
float theTimingOffset
 

Additional Inherited Members

- Public Types inherited from CSCBaseElectronicsSim
typedef std::map< int, CSCAnalogSignal, std::less< int > > CSCSignalMap
 
typedef edm::DetSet< StripDigiSimLinkDigiSimLinks
 
- Protected Types inherited from CSCBaseElectronicsSim
enum  { NONE, CONSERVATIVE, RADICAL }
 
typedef std::multimap< int, CSCDetectorHit, std::less< int > > DetectorHitMap
 
- Protected Member Functions inherited from CSCBaseElectronicsSim
CSCAnalogSignaladd (const CSCAnalogSignal &, CLHEP::HepRandomEngine *)
 
virtual void addLinks (int channelIndex)
 
void addNoise (CLHEP::HepRandomEngine *)
 
CSCAnalogSignal amplifySignal (const CSCDetectorHit &)
 
double averageTimeOfFlight (const DetId &detId) const
 
virtual int channelIndex (int channel) const
 lets users map channels to different indices for links More...
 
void combineAnalogSignals (const std::vector< CSCAnalogSignal > &)
 
 CSCBaseElectronicsSim (const edm::ParameterSet &p)
 
void fillAmpResponse ()
 
CSCAnalogSignalfind (int element, CLHEP::HepRandomEngine *)
 
CSCDetId layerId () const
 the CSCDetId corresponding to the current layer More...
 
void setLayer (const CSCLayer *layer)
 
void setNoise (float rmsNoise, float noiseSigmaThreshold)
 
void setSignalTimeRange (double startTime, double stopTime)
 
virtual float signalDelay (int element, float pos) const
 
- Protected Attributes inherited from CSCBaseElectronicsSim
bool doNoise_
 
int nElements
 
CSCAnalogSignal theAmpResponse
 
float theBunchSpacing
 
std::vector< double > theBunchTimingOffsets
 
DetectorHitMap theDetectorHitMap
 
DigiSimLinks theDigiSimLinks
 
const CSCLayertheLayer
 
const CSCLayerGeometrytheLayerGeometry
 
CSCDetId theLayerId
 
bool theNoiseWasAdded
 
int theNumberOfSamples
 
int theOffsetOfBxZero
 
float thePeakTimeSigma
 
float theSamplingTime
 
int theShapingTime
 
CSCSignalMap theSignalMap
 
std::vector< double > theSignalPropagationSpeed
 
float theSignalStartTime
 
float theSignalStopTime
 
const CSCChamberSpecstheSpecs
 
std::vector< double > theTimingCalibrationError
 

Detailed Description

Model the readout electronics chain for EMU CSC strips

Author
Rick Wilkinson

Definition at line 28 of file CSCStripElectronicsSim.h.

Constructor & Destructor Documentation

◆ CSCStripElectronicsSim()

CSCStripElectronicsSim::CSCStripElectronicsSim ( const edm::ParameterSet p)
explicit

configurable parameters

Definition at line 23 of file CSCStripElectronicsSim.cc.

30  theComparatorWait(50.),
32  theDaqDeadTime(200.),
33  theTimingOffset(0.),
34  nScaBins_(p.getParameter<int>("nScaBins")),
35  doSuppression_(p.getParameter<bool>("doSuppression")),
36  doCrosstalk_(p.getParameter<bool>("doCrosstalk")),
37  theStripConditions(nullptr),
38  theCrosstalkGenerator(nullptr),
40  sca_time_bin_size(50.),
41  sca_peak_bin(p.getParameter<int>("scaPeakBin")),
42  theComparatorTimeBinOffset(p.getParameter<double>("comparatorTimeBinOffset")),
43  theComparatorTimeOffset(p.getParameter<double>("comparatorTimeOffset")),
44  theComparatorSamplingTime(p.getParameter<double>("comparatorSamplingTime")),
45  theSCATimingOffsets(p.getParameter<std::vector<double>>("scaTimingOffsets")) {
46  if (doCrosstalk_) {
48  }
49 
51 }

References doCrosstalk_, CSCBaseElectronicsSim::fillAmpResponse(), and theCrosstalkGenerator.

◆ ~CSCStripElectronicsSim()

CSCStripElectronicsSim::~CSCStripElectronicsSim ( )
override

Definition at line 53 of file CSCStripElectronicsSim.cc.

53  {
54  if (doCrosstalk_) {
55  delete theCrosstalkGenerator;
56  }
57 }

References doCrosstalk_, and theCrosstalkGenerator.

Member Function Documentation

◆ addCrosstalk() [1/2]

void CSCStripElectronicsSim::addCrosstalk ( CLHEP::HepRandomEngine *  engine)
private

Definition at line 320 of file CSCStripElectronicsSim.cc.

320  {
321  // this is needed so we can add a noise signal to the map
322  // without messing up any iterators
323  std::vector<CSCAnalogSignal> realSignals;
324  realSignals.reserve(theSignalMap.size());
325  CSCSignalMap::iterator mapI = theSignalMap.begin(), mapEnd = theSignalMap.end();
326  for (; mapI != mapEnd; ++mapI) {
327  realSignals.push_back((*mapI).second);
328  }
329  sort(realSignals.begin(), realSignals.end(), SortSignalsByTotal);
330  std::vector<CSCAnalogSignal>::iterator realSignalItr = realSignals.begin(), realSignalsEnd = realSignals.end();
331  for (; realSignalItr != realSignalsEnd; ++realSignalItr) {
332  int thisStrip = (*realSignalItr).getElement();
333  // add it to each neighbor
334  if (thisStrip > 1) {
335  int otherStrip = thisStrip - 1;
336  addCrosstalk(*realSignalItr, thisStrip, otherStrip, engine);
337  }
338  if (thisStrip < nElements) {
339  int otherStrip = thisStrip + 1;
340  addCrosstalk(*realSignalItr, thisStrip, otherStrip, engine);
341  }
342  }
343 }

References CSCBaseElectronicsSim::nElements, SortSignalsByTotal(), and CSCBaseElectronicsSim::theSignalMap.

Referenced by fillDigis().

◆ addCrosstalk() [2/2]

void CSCStripElectronicsSim::addCrosstalk ( const CSCAnalogSignal signal,
int  thisStrip,
int  otherStrip,
CLHEP::HepRandomEngine *  engine 
)
private

Definition at line 345 of file CSCStripElectronicsSim.cc.

348  {
349  float capacitiveCrosstalk, resistiveCrosstalk;
350  bool leftRight = (otherStrip > thisStrip);
352  layerId(), thisStrip, theLayerGeometry->length(), leftRight, capacitiveCrosstalk, resistiveCrosstalk);
353  theCrosstalkGenerator->setParameters(capacitiveCrosstalk, 0., resistiveCrosstalk);
354  CSCAnalogSignal crosstalkSignal(theCrosstalkGenerator->getCrosstalk(signal));
355  find(readoutElement(otherStrip), engine).superimpose(crosstalkSignal);
356 
357  // Now subtract the crosstalk signal from the original signal
358  crosstalkSignal *= -1.;
359  find(thisStrip, engine).superimpose(crosstalkSignal);
360 }

References CSCStripConditions::crosstalk(), CSCBaseElectronicsSim::find(), CSCCrosstalkGenerator::getCrosstalk(), CSCBaseElectronicsSim::layerId(), TrapezoidalPlaneBounds::length(), readoutElement(), CSCCrosstalkGenerator::setParameters(), CSCAnalogSignal::superimpose(), theCrosstalkGenerator, CSCBaseElectronicsSim::theLayerGeometry, and theStripConditions.

◆ calculateAmpResponse()

float CSCStripElectronicsSim::calculateAmpResponse ( float  t) const
overrideprivatevirtual

◆ channelsToRead()

std::list< int > CSCStripElectronicsSim::channelsToRead ( const std::list< int > &  keyStrips,
int  window 
) const
private

finds what strips to read. Will either take 5 strips around the keystrip, or the whole CFEB, based on doSuppression_

Definition at line 238 of file CSCStripElectronicsSim.cc.

238  {
239  std::list<int> result;
240  std::list<int>::const_iterator keyStripItr = keyStrips.begin();
241  if (doSuppression_) {
242  for (; keyStripItr != keyStrips.end(); ++keyStripItr) {
243  // pick the five strips around the comparator
244  for (int istrip = (*keyStripItr) - window; istrip <= (*keyStripItr) + window; ++istrip) {
245  if (istrip > 0 && istrip <= nElements) {
246  result.push_back(readoutElement(istrip));
247  }
248  }
249  }
250  result.sort();
251  result.unique();
252  } else {
253  // read the whole CFEB, 16 strips
254  std::list<int> cfebsToRead;
255  for (; keyStripItr != keyStrips.end(); ++keyStripItr) {
256  int cfeb = (readoutElement(*keyStripItr) - 1) / 16;
257  cfebsToRead.push_back(cfeb);
258  int remainder = (readoutElement(*keyStripItr) - 1) % 16;
259  // if we're within 3 strips of an edge, take neighboring CFEB, too
260  if (remainder < window && cfeb != 0) {
261  cfebsToRead.push_back(cfeb - 1);
262  }
263  // the 'readouElement' makes it so that ME1/1 has just one CFEB
264  int maxCFEBs = readoutElement(nElements) / 16 - 1;
265  if (remainder >= 16 - window && cfeb != maxCFEBs) {
266  cfebsToRead.push_back(cfeb + 1);
267  }
268  }
269  cfebsToRead.sort();
270  cfebsToRead.unique();
271 
272  // now convert the CFEBS to strips
273  for (std::list<int>::const_iterator cfebItr = cfebsToRead.begin(); cfebItr != cfebsToRead.end(); ++cfebItr) {
274  for (int i = 1; i <= 16; ++i) {
275  result.push_back((*cfebItr) * 16 + i);
276  }
277  }
278  }
279  return result;
280 }

References doSuppression_, mps_fire::i, CSCBaseElectronicsSim::nElements, readoutElement(), mps_fire::result, and svgfig::window().

Referenced by fillStripDigis(), and selfTest().

◆ comparatorReading()

float CSCStripElectronicsSim::comparatorReading ( const CSCAnalogSignal signal,
float  time,
CLHEP::HepRandomEngine *  engine 
) const
private

calculates the comparator reading, including saturation and offsets

Definition at line 94 of file CSCStripElectronicsSim.cc.

96  {
98  theComparatorRMSOffset * CLHEP::RandGaussQ::shoot(engine);
99 }

References CSCAnalogSignal::getValue(), min(), theComparatorRMSOffset, theComparatorSaturation, and ntuplemaker::time.

Referenced by runComparator().

◆ createDigi()

void CSCStripElectronicsSim::createDigi ( int  istrip,
const CSCAnalogSignal signal,
std::vector< CSCStripDigi > &  result,
CLHEP::HepRandomEngine *  engine 
)

Definition at line 362 of file CSCStripElectronicsSim.cc.

365  {
366  // fill in the sca information
367  std::vector<int> scaCounts(nScaBins_);
368 
369  float pedestal = theStripConditions->pedestal(layerId(), channel);
370  float gain = theStripConditions->smearedGain(layerId(), channel, engine);
371  int chamberType = theSpecs->chamberType();
372  float timeSmearing = CLHEP::RandGaussQ::shoot(engine) * theTimingCalibrationError[chamberType];
373  // undo the correction for TOF, instead, using some nominal
374  // value from ME2/1
376  for (int scaBin = 0; scaBin < nScaBins_; ++scaBin) {
377  float t = t0 + scaBin * sca_time_bin_size;
378  scaCounts[scaBin] = static_cast<int>(pedestal + signal.getValue(t) * gain);
379  }
380  CSCStripDigi newDigi(channel, scaCounts);
381 
382  // do saturation of 12-bit ADC
383  doSaturation(newDigi);
384 
385  result.push_back(newDigi);
386  addLinks(channelIndex(channel));
387  LogTrace("CSCStripElectronicsSim") << newDigi;
388 }

References CSCBaseElectronicsSim::addLinks(), CSCChamberSpecs::chamberType(), CSCBaseElectronicsSim::channelIndex(), doSaturation(), PedestalClient_cfi::gain, CSCAnalogSignal::getValue(), CSCBaseElectronicsSim::layerId(), LogTrace, nScaBins_, CSCStripConditions::pedestal(), EcalCondDBWriter_cfi::pedestal, mps_fire::result, sca_time_bin_size, CSCStripConditions::smearedGain(), OrderedSet::t, FrontierCondition_GT_autoExpress_cfi::t0, theAverageTimeOfFlight, theSCATimingOffsets, CSCBaseElectronicsSim::theSignalStartTime, CSCBaseElectronicsSim::theSpecs, theStripConditions, CSCBaseElectronicsSim::theTimingCalibrationError, and hcalSimParameters_cfi::timeSmearing.

Referenced by fillStripDigis().

◆ doSaturation()

void CSCStripElectronicsSim::doSaturation ( CSCStripDigi digi)
private

Definition at line 390 of file CSCStripElectronicsSim.cc.

390  {
391  std::vector<int> scaCounts(digi.getADCCounts());
392  for (unsigned scaBin = 0; scaBin < scaCounts.size(); ++scaBin) {
393  scaCounts[scaBin] = std::min(scaCounts[scaBin], 4095);
394  }
395  digi.setADCCounts(scaCounts);
396 }

References CSCStripDigi::getADCCounts(), min(), and CSCStripDigi::setADCCounts().

Referenced by createDigi().

◆ fillDigis()

void CSCStripElectronicsSim::fillDigis ( CSCStripDigiCollection digis,
CSCComparatorDigiCollection comparators,
CLHEP::HepRandomEngine *  engine 
)

Definition at line 286 of file CSCStripElectronicsSim.cc.

288  {
289  if (doCrosstalk_) {
290  addCrosstalk(engine);
291  }
292 
293  std::vector<CSCComparatorDigi> comparatorOutputs;
294  runComparator(comparatorOutputs, engine);
295  // copy these to the result
296  if (!comparatorOutputs.empty()) {
297  CSCComparatorDigiCollection::Range range(comparatorOutputs.begin(), comparatorOutputs.end());
298  comparators.put(range, layerId());
299  }
300 
301  // std::list<int> keyStrips = getKeyStrips(comparatorOutputs);
302  std::list<int> keyStrips = getKeyStripsFromMC();
303  fillStripDigis(keyStrips, digis, engine);
304 }

References addCrosstalk(), doCrosstalk_, fillStripDigis(), getKeyStripsFromMC(), CSCBaseElectronicsSim::layerId(), FastTimerService_cff::range, and runComparator().

Referenced by CSCDigitizer::doAction().

◆ fillMissingLayer()

void CSCStripElectronicsSim::fillMissingLayer ( const CSCLayer layer,
const CSCComparatorDigiCollection comparators,
CSCStripDigiCollection digis,
CLHEP::HepRandomEngine *  engine 
)

Definition at line 398 of file CSCStripElectronicsSim.cc.

401  {
402  theSignalMap.clear();
403  setLayer(layer);
404  CSCDetId chamberId(theLayerId.chamberId());
405  // find all comparator key strips in this chamber
406  std::list<int> chamberKeyStrips;
407  for (CSCComparatorDigiCollection::DigiRangeIterator comparatorItr = comparators.begin();
408  comparatorItr != comparators.end();
409  ++comparatorItr) {
410  // could be more efficient
411  if (CSCDetId((*comparatorItr).first).chamberId() == chamberId) {
412  std::vector<CSCComparatorDigi> layerComparators((*comparatorItr).second.first, (*comparatorItr).second.second);
413  std::list<int> layerKeyStrips = getKeyStrips(layerComparators);
414  chamberKeyStrips.insert(chamberKeyStrips.end(), layerKeyStrips.begin(), layerKeyStrips.end());
415  }
416  }
417  chamberKeyStrips.sort();
418  chamberKeyStrips.unique();
419  fillStripDigis(chamberKeyStrips, digis, engine);
420 }

References CSCDetId::chamberId(), fillStripDigis(), getKeyStrips(), CSCBaseElectronicsSim::setLayer(), CSCBaseElectronicsSim::theLayerId, and CSCBaseElectronicsSim::theSignalMap.

Referenced by CSCDigitizer::doAction().

◆ fillStripDigis()

void CSCStripElectronicsSim::fillStripDigis ( const std::list< int > &  keyStrips,
CSCStripDigiCollection digis,
CLHEP::HepRandomEngine *  engine 
)
private

Definition at line 306 of file CSCStripElectronicsSim.cc.

308  {
309  std::list<int> stripsToDo = channelsToRead(keyStrips, 3);
310  std::vector<CSCStripDigi> stripDigis;
311  stripDigis.reserve(stripsToDo.size());
312  for (std::list<int>::const_iterator stripItr = stripsToDo.begin(); stripItr != stripsToDo.end(); ++stripItr) {
313  createDigi(*stripItr, find(*stripItr, engine), stripDigis, engine);
314  }
315 
316  CSCStripDigiCollection::Range stripRange(stripDigis.begin(), stripDigis.end());
317  digis.put(stripRange, layerId());
318 }

References channelsToRead(), createDigi(), CSCBaseElectronicsSim::find(), and CSCBaseElectronicsSim::layerId().

Referenced by fillDigis(), and fillMissingLayer().

◆ getKeyStrips()

std::list< int > CSCStripElectronicsSim::getKeyStrips ( const std::vector< CSCComparatorDigi > &  comparators) const
private

finds the key strips from these comparators

Definition at line 207 of file CSCStripElectronicsSim.cc.

207  {
208  std::list<int> result;
209  for (std::vector<CSCComparatorDigi>::const_iterator compItr = comparators.begin(); compItr != comparators.end();
210  ++compItr) {
211  if (std::abs(compItr->getTimeBin() - theOffsetOfBxZero) <= 2) {
212  result.push_back(compItr->getStrip());
213  }
214  }
215  // need sort for unique to work.
216  result.sort();
217  result.unique();
218  return result;
219 }

References funct::abs(), mps_fire::result, and CSCBaseElectronicsSim::theOffsetOfBxZero.

Referenced by fillMissingLayer().

◆ getKeyStripsFromMC()

std::list< int > CSCStripElectronicsSim::getKeyStripsFromMC ( ) const
private

get ths strips that have detector hits

Definition at line 221 of file CSCStripElectronicsSim.cc.

221  {
222  // assumes the detector hit map is filled
223  std::list<int> result;
225  theDetectorHitMap.end(),
226  // back_inserter(result),
227  // boost::bind(&DetectorHitMap::value_type::first,_1));
228  // suggested code from Chris Jones
229  back_inserter(result),
230  std::bind(&DetectorHitMap::value_type::first, std::placeholders::_1));
231  // back_inserter(result), [](DetectorHitMap::value_type const& iValue) {
232  // return iValue.first; } );
233  result.sort();
234  result.unique();
235  return result;
236 }

References dqmdumpme::first, mps_fire::result, CSCBaseElectronicsSim::theDetectorHitMap, and HcalDetIdTransform::transform().

Referenced by fillDigis().

◆ getReadoutRange()

void CSCStripElectronicsSim::getReadoutRange ( int  inputStrip,
int &  minStrip,
int &  maxStrip 
)
private

◆ initParameters()

void CSCStripElectronicsSim::initParameters ( )
overrideprivatevirtual

initialization for each layer

Implements CSCBaseElectronicsSim.

Definition at line 59 of file CSCStripElectronicsSim.cc.

59  {
62  // selfTest();
63 
64  // calculate the offset to the peak
65  float averageDistance = theLayer->surface().position().mag();
66  theAverageTimeOfFlight = averageDistance * cm / c_light; // Units of c_light: mm/ns
67  int chamberType = theSpecs->chamberType();
69  // TODO make sure config gets overridden
73 }

References CSCChamberSpecs::chamberType(), PV3DBase< T, PVType, FrameType >::mag(), CSCBaseElectronicsSim::nElements, nScaBins_, CSCLayerGeometry::numberOfStrips(), GloballyPositioned< T >::position(), sca_peak_bin, sca_time_bin_size, GeomDet::surface(), theAverageTimeOfFlight, CSCBaseElectronicsSim::theBunchTimingOffsets, theComparatorThreshold, CSCBaseElectronicsSim::theLayer, CSCBaseElectronicsSim::theLayerGeometry, CSCBaseElectronicsSim::theNumberOfSamples, CSCBaseElectronicsSim::theSamplingTime, CSCBaseElectronicsSim::theShapingTime, CSCBaseElectronicsSim::theSignalStartTime, CSCBaseElectronicsSim::theSignalStopTime, CSCBaseElectronicsSim::theSpecs, and theTimingOffset.

◆ makeNoiseSignal()

CSCAnalogSignal CSCStripElectronicsSim::makeNoiseSignal ( int  element,
CLHEP::HepRandomEngine *  engine 
)
overridevirtual

Reimplemented from CSCBaseElectronicsSim.

Definition at line 79 of file CSCStripElectronicsSim.cc.

79  {
80  std::vector<float> noiseBins(nScaBins_);
81  CSCAnalogSignal tmpSignal(element, sca_time_bin_size, noiseBins);
82  if (doNoise_) {
83  theStripConditions->noisify(layerId(), tmpSignal, engine);
84  }
85  // now rebin it
86  std::vector<float> binValues(theNumberOfSamples);
87  for (int ibin = 0; ibin < theNumberOfSamples; ++ibin) {
88  binValues[ibin] = tmpSignal.getValue(ibin * theSamplingTime);
89  }
90  CSCAnalogSignal finalSignal(element, theSamplingTime, binValues, 0., theSignalStartTime);
91  return finalSignal;
92 }

References CSCBaseElectronicsSim::doNoise_, CSCAnalogSignal::getValue(), CSCBaseElectronicsSim::layerId(), CSCStripConditions::noisify(), nScaBins_, sca_time_bin_size, CSCBaseElectronicsSim::theNumberOfSamples, CSCBaseElectronicsSim::theSamplingTime, CSCBaseElectronicsSim::theSignalStartTime, and theStripConditions.

◆ readoutElement()

int CSCStripElectronicsSim::readoutElement ( int  strip) const
overrideprivatevirtual

◆ runComparator()

void CSCStripElectronicsSim::runComparator ( std::vector< CSCComparatorDigi > &  result,
CLHEP::HepRandomEngine *  engine 
)
private

Definition at line 101 of file CSCStripElectronicsSim.cc.

101  {
102  // first, make a list of all the comparators we actually
103  // need to run
104  std::list<int> comparatorsWithSignal;
105  CSCSignalMap::iterator signalMapItr;
106  for (signalMapItr = theSignalMap.begin(); signalMapItr != theSignalMap.end(); ++signalMapItr) {
107  // Elements in signal map count from 1
108  // 1,2->0, 3,4->1, 5,6->2, ...
109  comparatorsWithSignal.push_back(((*signalMapItr).first - 1) / 2);
110  }
111  // no need to sort
112  comparatorsWithSignal.unique();
113  for (std::list<int>::iterator listItr = comparatorsWithSignal.begin(); listItr != comparatorsWithSignal.end();
114  ++listItr) {
115  int iComparator = *listItr;
116  // find signal1 and signal2
117  // iComparator counts from 0
118  // icomp =0->1,2, =1->3,4, =2->5,6, ...
119  const CSCAnalogSignal &signal1 = find(readoutElement(iComparator * 2 + 1), engine);
120  const CSCAnalogSignal &signal2 = find(readoutElement(iComparator * 2 + 2), engine);
123  if (comparatorReading(signal1, time, engine) > theComparatorThreshold ||
124  comparatorReading(signal2, time, engine) > theComparatorThreshold) {
125  // wait a bit, so we can run the comparator at the signal peak
126  float comparatorTime = time;
128 
129  float height1 = comparatorReading(signal1, time, engine);
130  float height2 = comparatorReading(signal2, time, engine);
131  int output = 0;
132  int strip = 0;
133  // distrip logic; comparator output is for pairs of strips:
134  // hit bin dec
135  // x--- 100 4
136  // -x-- 101 5
137  // --x- 110 6
138  // ---x 111 7
139  // just to prevent a copy
140  const CSCAnalogSignal *mainSignal = nullptr;
141  // pick the higher of the two strips in the pair
142  if (height1 > height2) {
143  mainSignal = &signal1;
144  float leftStrip = 0.;
145  if (iComparator > 0) {
146  leftStrip = comparatorReading(find(readoutElement(iComparator * 2), engine), time, engine);
147  }
148  // if this strip is higher than either of its neighbors, make a
149  // comparator digi
150  if (leftStrip < height1 && height1 > theComparatorThreshold) {
151  output = (leftStrip < height2);
152  strip = iComparator * 2 + 1;
153  }
154  } else {
155  mainSignal = &signal2;
156  float rightStrip = 0.;
157  if (iComparator * 2 + 3 <= nElements) {
158  rightStrip = comparatorReading(find(readoutElement(iComparator * 2 + 3), engine), time, engine);
159  }
160  if (rightStrip < height2 && height2 > theComparatorThreshold) {
161  output = (height1 < rightStrip);
162  strip = iComparator * 2 + 2;
163  }
164  }
165  if (strip != 0) {
166  float bxFloat =
168 
169  // Comparator digi as of Nov-2006 adapted to real data: time word has
170  // 16 bits with set bit flagging appropriate bunch crossing, and bx 0
171  // corresponding to 9th bit i.e.
172 
173  // 1st bit set (bit 0) <-> bx -9
174  // 2nd 1 <-> bx -8
175  // ... ... ....
176  // 8th 9 <-> bx 0
177  // 9th 10 <-> bx +1
178  // ... ... ....
179  // 16th 15 <-> bx +6
180 
181  // Parameter theOffsetOfBxZero = 9 @@WARNING! This offset may be
182  // changed (hardware)!
183 
184  int timeWord = 0; // and this will remain if too early or late
185  if ((bxFloat >= 0) && (bxFloat < 16))
186  timeWord = (1 << static_cast<int>(bxFloat)); // set appropriate bit
187 
188  CSCComparatorDigi newDigi(strip, output, timeWord);
189  result.push_back(newDigi);
190  }
191 
192  // wait for the comparator to reset
194  // really should be zero, but strip signal doesn't go negative yet
195  float resetThreshold = 1;
196  while (time < theSignalStopTime && mainSignal->getValue(time) > resetThreshold) {
198  }
199 
200  } // if over threshold
201  } // loop over time samples
202  } // loop over comparators
203  // sort by time
204  sort(result.begin(), result.end());
205 }

References comparatorReading(), CSCBaseElectronicsSim::find(), reco::JetExtendedAssociation::getValue(), CSCBaseElectronicsSim::nElements, convertSQLitetoXML_cfg::output, readoutElement(), mps_fire::result, digitizers_cfi::strip, CSCBaseElectronicsSim::theBunchSpacing, theComparatorDeadTime, theComparatorSamplingTime, theComparatorThreshold, theComparatorTimeBinOffset, theComparatorTimeOffset, theComparatorWait, CSCBaseElectronicsSim::theOffsetOfBxZero, CSCBaseElectronicsSim::theSignalMap, CSCBaseElectronicsSim::theSignalStartTime, CSCBaseElectronicsSim::theSignalStopTime, theTimingOffset, and ntuplemaker::time.

Referenced by fillDigis().

◆ selfTest()

void CSCStripElectronicsSim::selfTest ( ) const
private

Definition at line 422 of file CSCStripElectronicsSim.cc.

422  {
423  // make sure the zero suppression algorithms work
424  std::list<int> keyStrips, stripsRead;
425  //
426  bool isGanged = (readoutElement(nElements) == 16);
427  keyStrips.push_back(readoutElement(19));
428  keyStrips.push_back(readoutElement(30));
429  keyStrips.push_back(readoutElement(32));
430  stripsRead = channelsToRead(keyStrips, 3);
431  if (doSuppression_) {
432  unsigned int expectedSize = isGanged ? 10 : 12;
433  assert(stripsRead.size() == expectedSize);
434  assert(stripsRead.front() == readoutElement(17));
435  } else {
436  unsigned int expectedSize = isGanged ? 16 : 48;
437  assert(stripsRead.size() == expectedSize);
438  assert(stripsRead.front() == 1);
439  }
440 }

References cms::cuda::assert(), channelsToRead(), doSuppression_, CSCBaseElectronicsSim::nElements, and readoutElement().

◆ setStripConditions()

void CSCStripElectronicsSim::setStripConditions ( CSCStripConditions cond)
inline

Definition at line 42 of file CSCStripElectronicsSim.h.

References theStripConditions.

Referenced by CSCDigitizer::setStripConditions().

Member Data Documentation

◆ doCrosstalk_

bool CSCStripElectronicsSim::doCrosstalk_
private

◆ doSuppression_

bool CSCStripElectronicsSim::doSuppression_
private

Definition at line 101 of file CSCStripElectronicsSim.h.

Referenced by channelsToRead(), and selfTest().

◆ nScaBins_

int CSCStripElectronicsSim::nScaBins_
private

Definition at line 100 of file CSCStripElectronicsSim.h.

Referenced by createDigi(), initParameters(), and makeNoiseSignal().

◆ sca_peak_bin

int CSCStripElectronicsSim::sca_peak_bin
private

Definition at line 111 of file CSCStripElectronicsSim.h.

Referenced by initParameters().

◆ sca_time_bin_size

float CSCStripElectronicsSim::sca_time_bin_size
private

Definition at line 108 of file CSCStripElectronicsSim.h.

Referenced by createDigi(), initParameters(), and makeNoiseSignal().

◆ theAmpResponse

CSCStripAmpResponse CSCStripElectronicsSim::theAmpResponse
private

Definition at line 58 of file CSCStripElectronicsSim.h.

Referenced by calculateAmpResponse().

◆ theAverageTimeOfFlight

float CSCStripElectronicsSim::theAverageTimeOfFlight
private

Definition at line 121 of file CSCStripElectronicsSim.h.

Referenced by createDigi(), and initParameters().

◆ theComparatorClockJump

int CSCStripElectronicsSim::theComparatorClockJump
private

Definition at line 106 of file CSCStripElectronicsSim.h.

◆ theComparatorDeadTime

float CSCStripElectronicsSim::theComparatorDeadTime
private

Definition at line 95 of file CSCStripElectronicsSim.h.

Referenced by runComparator().

◆ theComparatorNoise

float CSCStripElectronicsSim::theComparatorNoise
private

Definition at line 89 of file CSCStripElectronicsSim.h.

◆ theComparatorRMSOffset

float CSCStripElectronicsSim::theComparatorRMSOffset
private

Definition at line 90 of file CSCStripElectronicsSim.h.

Referenced by comparatorReading().

◆ theComparatorSamplingTime

double CSCStripElectronicsSim::theComparatorSamplingTime
private

Definition at line 116 of file CSCStripElectronicsSim.h.

Referenced by runComparator().

◆ theComparatorSaturation

float CSCStripElectronicsSim::theComparatorSaturation
private

Definition at line 92 of file CSCStripElectronicsSim.h.

Referenced by comparatorReading().

◆ theComparatorThreshold

float CSCStripElectronicsSim::theComparatorThreshold
private

Definition at line 88 of file CSCStripElectronicsSim.h.

Referenced by initParameters(), and runComparator().

◆ theComparatorTimeBinOffset

double CSCStripElectronicsSim::theComparatorTimeBinOffset
private

Definition at line 113 of file CSCStripElectronicsSim.h.

Referenced by runComparator().

◆ theComparatorTimeOffset

double CSCStripElectronicsSim::theComparatorTimeOffset
private

Definition at line 115 of file CSCStripElectronicsSim.h.

Referenced by runComparator().

◆ theComparatorWait

float CSCStripElectronicsSim::theComparatorWait
private

Definition at line 94 of file CSCStripElectronicsSim.h.

Referenced by runComparator().

◆ theCrosstalkGenerator

CSCCrosstalkGenerator* CSCStripElectronicsSim::theCrosstalkGenerator
private

◆ theDaqDeadTime

float CSCStripElectronicsSim::theDaqDeadTime
private

Definition at line 96 of file CSCStripElectronicsSim.h.

◆ theSCATimingOffsets

std::vector<double> CSCStripElectronicsSim::theSCATimingOffsets
private

Definition at line 118 of file CSCStripElectronicsSim.h.

Referenced by createDigi().

◆ theStripConditions

CSCStripConditions* CSCStripElectronicsSim::theStripConditions
private

◆ theTimingOffset

float CSCStripElectronicsSim::theTimingOffset
private

Definition at line 98 of file CSCStripElectronicsSim.h.

Referenced by initParameters(), and runComparator().

CSCStripElectronicsSim::theAmpResponse
CSCStripAmpResponse theAmpResponse
Definition: CSCStripElectronicsSim.h:58
CSCBaseElectronicsSim::theSpecs
const CSCChamberSpecs * theSpecs
Definition: CSCBaseElectronicsSim.h:113
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
CSCStripElectronicsSim::theComparatorSamplingTime
double theComparatorSamplingTime
Definition: CSCStripElectronicsSim.h:116
mps_fire.i
i
Definition: mps_fire.py:355
CSCStripElectronicsSim::sca_time_bin_size
float sca_time_bin_size
Definition: CSCStripElectronicsSim.h:108
CSCStripElectronicsSim::getKeyStripsFromMC
std::list< int > getKeyStripsFromMC() const
get ths strips that have detector hits
Definition: CSCStripElectronicsSim.cc:221
CSCStripElectronicsSim::theComparatorThreshold
float theComparatorThreshold
Definition: CSCStripElectronicsSim.h:88
CSCStripElectronicsSim::getKeyStrips
std::list< int > getKeyStrips(const std::vector< CSCComparatorDigi > &comparators) const
finds the key strips from these comparators
Definition: CSCStripElectronicsSim.cc:207
CSCStripElectronicsSim::theComparatorDeadTime
float theComparatorDeadTime
Definition: CSCStripElectronicsSim.h:95
CSCStripElectronicsSim::fillStripDigis
void fillStripDigis(const std::list< int > &keyStrips, CSCStripDigiCollection &digis, CLHEP::HepRandomEngine *)
Definition: CSCStripElectronicsSim.cc:306
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:32
min
T min(T a, T b)
Definition: MathUtil.h:58
CSCBaseElectronicsSim::find
CSCAnalogSignal & find(int element, CLHEP::HepRandomEngine *)
Definition: CSCBaseElectronicsSim.cc:131
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
CSCChamberSpecs::chamberType
int chamberType() const
Definition: CSCChamberSpecs.cc:154
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
CSCStripElectronicsSim::comparatorReading
float comparatorReading(const CSCAnalogSignal &signal, float time, CLHEP::HepRandomEngine *) const
calculates the comparator reading, including saturation and offsets
Definition: CSCStripElectronicsSim.cc:94
CSCBaseElectronicsSim::theSignalMap
CSCSignalMap theSignalMap
Definition: CSCBaseElectronicsSim.h:118
CSCStripConditions::crosstalk
virtual void crosstalk(const CSCDetId &detId, int channel, double stripLength, bool leftRight, float &capacitive, float &resistive) const =0
CSCBaseElectronicsSim::theTimingCalibrationError
std::vector< double > theTimingCalibrationError
Definition: CSCBaseElectronicsSim.h:154
svgfig.window
def window(xmin, xmax, ymin, ymax, x=0, y=0, width=100, height=100, xlogbase=None, ylogbase=None, minusInfinity=-1000, flipx=False, flipy=True)
Definition: svgfig.py:643
CSCCrosstalkGenerator
Definition: CSCCrosstalkGenerator.h:19
CSCBaseElectronicsSim::CSCBaseElectronicsSim
CSCBaseElectronicsSim(const edm::ParameterSet &p)
Definition: CSCBaseElectronicsSim.cc:15
cms::cuda::assert
assert(be >=bs)
hcalSimParameters_cfi.timeSmearing
timeSmearing
Definition: hcalSimParameters_cfi.py:50
CSCStripElectronicsSim::nScaBins_
int nScaBins_
Definition: CSCStripElectronicsSim.h:100
CSCStripConditions::noisify
void noisify(const CSCDetId &detId, CSCAnalogSignal &signal, CLHEP::HepRandomEngine *)
superimposes noise, in fC, on the signal
Definition: CSCStripConditions.cc:20
CSCStripElectronicsSim::theComparatorNoise
float theComparatorNoise
Definition: CSCStripElectronicsSim.h:89
CSCStripElectronicsSim::theComparatorTimeOffset
double theComparatorTimeOffset
Definition: CSCStripElectronicsSim.h:115
CSCStripElectronicsSim::theComparatorRMSOffset
float theComparatorRMSOffset
Definition: CSCStripElectronicsSim.h:90
CSCStripElectronicsSim::theCrosstalkGenerator
CSCCrosstalkGenerator * theCrosstalkGenerator
Definition: CSCStripElectronicsSim.h:104
CSCStripElectronicsSim::theSCATimingOffsets
std::vector< double > theSCATimingOffsets
Definition: CSCStripElectronicsSim.h:118
dqmdumpme.first
first
Definition: dqmdumpme.py:55
CSCCrosstalkGenerator::getCrosstalk
CSCAnalogSignal getCrosstalk(const CSCAnalogSignal &inputSignal) const
Definition: CSCCrosstalkGenerator.cc:4
CSCStripElectronicsSim::doCrosstalk_
bool doCrosstalk_
Definition: CSCStripElectronicsSim.h:102
CSCBaseElectronicsSim::doNoise_
bool doNoise_
Definition: CSCBaseElectronicsSim.h:155
CSCAnalogSignal::superimpose
void superimpose(const CSCAnalogSignal &signal2)
Definition: CSCAnalogSignal.h:75
CSCStripElectronicsSim::addCrosstalk
void addCrosstalk(CLHEP::HepRandomEngine *)
Definition: CSCStripElectronicsSim.cc:320
CSCBaseElectronicsSim::theSignalStopTime
float theSignalStopTime
Definition: CSCBaseElectronicsSim.h:141
CSCStripElectronicsSim::theComparatorClockJump
int theComparatorClockJump
Definition: CSCStripElectronicsSim.h:106
CSCStripElectronicsSim::theDaqDeadTime
float theDaqDeadTime
Definition: CSCStripElectronicsSim.h:96
GeomDet::surface
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
CSCBaseElectronicsSim::theNumberOfSamples
int theNumberOfSamples
Definition: CSCBaseElectronicsSim.h:147
CSCStripDigi::setADCCounts
void setADCCounts(const std::vector< int > &ADCCounts)
Definition: CSCStripDigi.cc:22
CSCStripElectronicsSim::readoutElement
int readoutElement(int strip) const override
Definition: CSCStripElectronicsSim.cc:75
FrontierCondition_GT_autoExpress_cfi.t0
t0
Definition: FrontierCondition_GT_autoExpress_cfi.py:148
CSCBaseElectronicsSim::addLinks
virtual void addLinks(int channelIndex)
Definition: CSCBaseElectronicsSim.cc:167
CSCBaseElectronicsSim::theOffsetOfBxZero
int theOffsetOfBxZero
Definition: CSCBaseElectronicsSim.h:150
CSCComparatorDigi
Definition: CSCComparatorDigi.h:16
HcalDetIdTransform::transform
unsigned transform(const HcalDetId &id, unsigned transformCode)
Definition: HcalDetIdTransform.cc:7
CSCBaseElectronicsSim::theSignalStartTime
float theSignalStartTime
Definition: CSCBaseElectronicsSim.h:140
CSCBaseElectronicsSim::theBunchTimingOffsets
std::vector< double > theBunchTimingOffsets
Definition: CSCBaseElectronicsSim.h:137
CSCStripAmpResponse::calculateAmpResponse
float calculateAmpResponse(float t) const
Definition: CSCStripAmpResponse.cc:11
OrderedSet.t
t
Definition: OrderedSet.py:90
CSCStripElectronicsSim::doSuppression_
bool doSuppression_
Definition: CSCStripElectronicsSim.h:101
CSCBaseElectronicsSim::theLayerId
CSCDetId theLayerId
Definition: CSCBaseElectronicsSim.h:116
CSCBaseElectronicsSim::theLayer
const CSCLayer * theLayer
Definition: CSCBaseElectronicsSim.h:115
CSCBaseElectronicsSim::nElements
int nElements
Definition: CSCBaseElectronicsSim.h:130
cond
Definition: plugin.cc:23
CSCBaseElectronicsSim::theLayerGeometry
const CSCLayerGeometry * theLayerGeometry
Definition: CSCBaseElectronicsSim.h:114
CSCBaseElectronicsSim::setLayer
void setLayer(const CSCLayer *layer)
Definition: CSCBaseElectronicsSim.cc:73
CSCStripElectronicsSim::theStripConditions
CSCStripConditions * theStripConditions
Definition: CSCStripElectronicsSim.h:103
CSCAnalogSignal::getValue
float getValue(float t) const
Definition: CSCAnalogSignal.h:52
CSCStripElectronicsSim::theTimingOffset
float theTimingOffset
Definition: CSCStripElectronicsSim.h:98
CSCStripElectronicsSim::sca_peak_bin
int sca_peak_bin
Definition: CSCStripElectronicsSim.h:111
CSCDetId
Definition: CSCDetId.h:26
reco::JetExtendedAssociation::getValue
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
Definition: JetExtendedAssociation.cc:50
CSCBaseElectronicsSim::theSamplingTime
float theSamplingTime
Definition: CSCBaseElectronicsSim.h:144
CSCBaseElectronicsSim::theShapingTime
int theShapingTime
Definition: CSCBaseElectronicsSim.h:133
CSCDetId::chamberId
CSCDetId chamberId() const
Definition: CSCDetId.h:47
CSCStripDigi::getADCCounts
std::vector< int > const & getADCCounts() const
Get ADC readings.
Definition: CSCStripDigi.h:44
EcalCondDBWriter_cfi.pedestal
pedestal
Definition: EcalCondDBWriter_cfi.py:49
CSCStripConditions::smearedGain
virtual float smearedGain(const CSCDetId &detId, int channel, CLHEP::HepRandomEngine *) const
Definition: CSCStripConditions.cc:16
CSCStripElectronicsSim::theComparatorWait
float theComparatorWait
Definition: CSCStripElectronicsSim.h:94
CSCStripElectronicsSim::createDigi
void createDigi(int istrip, const CSCAnalogSignal &signal, std::vector< CSCStripDigi > &result, CLHEP::HepRandomEngine *)
Definition: CSCStripElectronicsSim.cc:362
CSCStripElectronicsSim::theAverageTimeOfFlight
float theAverageTimeOfFlight
Definition: CSCStripElectronicsSim.h:121
PedestalClient_cfi.gain
gain
Definition: PedestalClient_cfi.py:37
PV3DBase::mag
T mag() const
Definition: PV3DBase.h:64
GloballyPositioned::position
const PositionType & position() const
Definition: GloballyPositioned.h:36
CSCBaseElectronicsSim::theDetectorHitMap
DetectorHitMap theDetectorHitMap
Definition: CSCBaseElectronicsSim.h:159
CSCStripDigi
Definition: CSCStripDigi.h:17
TrapezoidalPlaneBounds::length
float length() const override
Definition: TrapezoidalPlaneBounds.h:27
CSCStripElectronicsSim::channelsToRead
std::list< int > channelsToRead(const std::list< int > &keyStrips, int window) const
Definition: CSCStripElectronicsSim.cc:238
CSCStripAmpResponse::RADICAL
Definition: CSCStripAmpResponse.h:6
CSCStripElectronicsSim::theComparatorTimeBinOffset
double theComparatorTimeBinOffset
Definition: CSCStripElectronicsSim.h:113
CSCAnalogSignal
Definition: CSCAnalogSignal.h:32
CSCStripConditions::pedestal
virtual float pedestal(const CSCDetId &detId, int channel) const =0
in ADC counts
MuonDigiCollection::Range
std::pair< const_iterator, const_iterator > Range
Definition: MuonDigiCollection.h:95
CSCBaseElectronicsSim::channelIndex
virtual int channelIndex(int channel) const
lets users map channels to different indices for links
Definition: CSCBaseElectronicsSim.h:101
CSCBaseElectronicsSim::layerId
CSCDetId layerId() const
the CSCDetId corresponding to the current layer
Definition: CSCBaseElectronicsSim.h:104
CSCStripElectronicsSim::doSaturation
void doSaturation(CSCStripDigi &digi)
Definition: CSCStripElectronicsSim.cc:390
CSCLayerGeometry::channel
int channel(int strip) const
Definition: CSCLayerGeometry.h:112
mps_fire.result
result
Definition: mps_fire.py:303
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:671
CSCStripElectronicsSim::theComparatorSaturation
float theComparatorSaturation
Definition: CSCStripElectronicsSim.h:92
CSCBaseElectronicsSim::theBunchSpacing
float theBunchSpacing
Definition: CSCBaseElectronicsSim.h:122
CSCLayerGeometry::numberOfStrips
int numberOfStrips() const
Definition: CSCLayerGeometry.h:66
ntuplemaker.time
time
Definition: ntuplemaker.py:310
CSCCrosstalkGenerator::setParameters
void setParameters(float crosstalk, float delay, float resistiveFraction)
Definition: CSCCrosstalkGenerator.h:23
DigiContainerIterator
Definition: MuonDigiCollection.h:30
CSCBaseElectronicsSim::fillAmpResponse
void fillAmpResponse()
Definition: CSCBaseElectronicsSim.cc:83
SortSignalsByTotal
bool SortSignalsByTotal(const CSCAnalogSignal &s1, const CSCAnalogSignal &s2)
Definition: CSCStripElectronicsSim.cc:282
CSCStripElectronicsSim::runComparator
void runComparator(std::vector< CSCComparatorDigi > &result, CLHEP::HepRandomEngine *)
Definition: CSCStripElectronicsSim.cc:101