#include <CSCWireElectronicsSim.h>
Public Member Functions | |
CSCWireElectronicsSim (const edm::ParameterSet &p) | |
configurable parameters More... | |
void | fillDigis (CSCWireDigiCollection &digis, CLHEP::HepRandomEngine *) |
void | setFraction (float newFraction) |
Public Member Functions inherited from CSCBaseElectronicsSim | |
const DigiSimLinks & | digiSimLinks () 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 | |
float | calculateAmpResponse (float t) const override |
int | channelIndex (int channel) const override |
we code strip indices from 1-80, and wire indices start at 100 More... | |
void | initParameters () override |
initialization for each layer More... | |
int | readoutElement (int element) const override |
virtual float | timeOfFlightCalibration (int wireGroup) const |
Private Attributes | |
float | theFraction |
float | theWireNoise |
float | theWireThreshold |
Additional Inherited Members | |
Public Types inherited from CSCBaseElectronicsSim | |
typedef std::map< int, CSCAnalogSignal, std::less< int > > | CSCSignalMap |
typedef edm::DetSet< StripDigiSimLink > | DigiSimLinks |
Protected Types inherited from CSCBaseElectronicsSim | |
enum | { NONE, CONSERVATIVE, RADICAL } |
typedef std::multimap< int, CSCDetectorHit, std::less< int > > | DetectorHitMap |
Protected Member Functions inherited from CSCBaseElectronicsSim | |
CSCAnalogSignal & | add (const CSCAnalogSignal &, CLHEP::HepRandomEngine *) |
virtual void | addLinks (int channelIndex) |
void | addNoise (CLHEP::HepRandomEngine *) |
CSCAnalogSignal | amplifySignal (const CSCDetectorHit &) |
double | averageTimeOfFlight (const DetId &detId) const |
the average time-of-flight from the interaction point to the given detector More... | |
void | combineAnalogSignals (const std::vector< CSCAnalogSignal > &) |
CSCBaseElectronicsSim (const edm::ParameterSet &p) | |
void | fillAmpResponse () |
CSCAnalogSignal & | find (int element, CLHEP::HepRandomEngine *) |
CSCDetId | layerId () const |
the CSCDetId corresponding to the current layer More... | |
virtual CSCAnalogSignal | makeNoiseSignal (int element, CLHEP::HepRandomEngine *) |
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 CSCLayer * | theLayer |
const CSCLayerGeometry * | theLayerGeometry |
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 CSCChamberSpecs * | theSpecs |
std::vector< double > | theTimingCalibrationError |
Model the readout electronics chain for EMU CSC wires
Definition at line 21 of file CSCWireElectronicsSim.h.
CSCWireElectronicsSim::CSCWireElectronicsSim | ( | const edm::ParameterSet & | p | ) |
configurable parameters
Definition at line 16 of file CSCWireElectronicsSim.cc.
References CSCBaseElectronicsSim::fillAmpResponse().
|
overrideprivatevirtual |
Implements CSCBaseElectronicsSim.
Definition at line 163 of file CSCWireElectronicsSim.cc.
References JetChargeProducer_cfi::exp, p1, and funct::pow().
Referenced by setFraction().
|
inlineoverrideprivatevirtual |
we code strip indices from 1-80, and wire indices start at 100
Reimplemented from CSCBaseElectronicsSim.
Definition at line 43 of file CSCWireElectronicsSim.h.
Referenced by fillDigis().
void CSCWireElectronicsSim::fillDigis | ( | CSCWireDigiCollection & | digis, |
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 38 of file CSCWireElectronicsSim.cc.
References CSCBaseElectronicsSim::addLinks(), CSCChamberSpecs::chamberType(), channelIndex(), CSCBaseElectronicsSim::doNoise_, CSCAnalogSignal::getBinValue(), CSCAnalogSignal::getSize(), mps_fire::i, CSCBaseElectronicsSim::layerId(), LogTrace, CSCBaseElectronicsSim::theBunchSpacing, CSCBaseElectronicsSim::theBunchTimingOffsets, theFraction, CSCBaseElectronicsSim::theOffsetOfBxZero, CSCBaseElectronicsSim::theSamplingTime, CSCBaseElectronicsSim::theSignalMap, CSCBaseElectronicsSim::theSignalStartTime, CSCBaseElectronicsSim::theSpecs, CSCBaseElectronicsSim::theTimingCalibrationError, theWireNoise, theWireThreshold, electronIdCutBased_cfi::threshold, and timeOfFlightCalibration().
Referenced by CSCDigitizer::doAction(), and setFraction().
|
overrideprivatevirtual |
initialization for each layer
Implements CSCBaseElectronicsSim.
Definition at line 26 of file CSCWireElectronicsSim.cc.
References e_SI, CSCBaseElectronicsSim::nElements, CSCLayerGeometry::numberOfWireGroups(), funct::pow(), CSCBaseElectronicsSim::theLayerGeometry, CSCBaseElectronicsSim::theShapingTime, CSCBaseElectronicsSim::theSpecs, theWireNoise, theWireThreshold, and CSCChamberSpecs::wireNoise().
Referenced by setFraction().
|
overrideprivatevirtual |
Implements CSCBaseElectronicsSim.
Definition at line 34 of file CSCWireElectronicsSim.cc.
References CSCBaseElectronicsSim::theLayerGeometry, and CSCLayerGeometry::wireGroup().
Referenced by setFraction().
|
inline |
Definition at line 27 of file CSCWireElectronicsSim.h.
References calculateAmpResponse(), fillDigis(), initParameters(), readoutElement(), lumiQTWidget::t, theFraction, and timeOfFlightCalibration().
|
privatevirtual |
Definition at line 188 of file CSCWireElectronicsSim.cc.
References CSCLayer::centerOfWireGroup(), LogTrace, PV3DBase< T, PVType, FrameType >::mag(), CSCLayerGeometry::numberOfWireGroups(), CSCBaseElectronicsSim::theLayer, and CSCBaseElectronicsSim::theLayerGeometry.
Referenced by fillDigis(), and setFraction().
|
private |
Definition at line 48 of file CSCWireElectronicsSim.h.
Referenced by fillDigis(), and setFraction().
|
private |
Definition at line 49 of file CSCWireElectronicsSim.h.
Referenced by fillDigis(), and initParameters().
|
private |
Definition at line 50 of file CSCWireElectronicsSim.h.
Referenced by fillDigis(), and initParameters().