#include <CSCCrosstalkGenerator.h>
Public Member Functions | |
CSCCrosstalkGenerator () | |
CSCAnalogSignal | getCrosstalk (const CSCAnalogSignal &inputSignal) const |
float | ratio (const CSCAnalogSignal &crosstalkSignal, const CSCAnalogSignal &signal) const |
analyzes the ratio between two signals. More... | |
void | setParameters (float crosstalk, float delay, float resistiveFraction) |
Private Attributes | |
float | theCrosstalk |
float | theDelay |
float | theResistiveFraction |
Cross-talk generator for digitization simulation of Endcap Muon CSCs. We model crosstalk by making the signal on a neighboring strip or wire proportional to the slope of the original signal. The constant should be chosen to give the appropriate level of crosstalk, maybe 10% of the signal. The user is responsible for subtracting the crosstalk from the input signal, and adding the crosstalk signal to the neighbors.
Definition at line 19 of file CSCCrosstalkGenerator.h.
|
inline |
Definition at line 21 of file CSCCrosstalkGenerator.h.
CSCAnalogSignal CSCCrosstalkGenerator::getCrosstalk | ( | const CSCAnalogSignal & | inputSignal | ) | const |
Definition at line 4 of file CSCCrosstalkGenerator.cc.
References CSCAnalogSignal::getBinSize(), CSCAnalogSignal::getSize(), CSCAnalogSignal::getTimeOffset(), CSCAnalogSignal::getValue(), slope, theCrosstalk, theDelay, and theResistiveFraction.
Referenced by CSCStripElectronicsSim::addCrosstalk(), and setParameters().
float CSCCrosstalkGenerator::ratio | ( | const CSCAnalogSignal & | crosstalkSignal, |
const CSCAnalogSignal & | signal | ||
) | const |
analyzes the ratio between two signals.
Definition at line 18 of file CSCCrosstalkGenerator.cc.
References CSCAnalogSignal::getBinValue(), CSCAnalogSignal::getSize(), mps_fire::i, and pileupCalc::nbins.
Referenced by setParameters().
|
inline |
Definition at line 23 of file CSCCrosstalkGenerator.h.
References getCrosstalk(), ratio(), theCrosstalk, theDelay, and theResistiveFraction.
Referenced by CSCStripElectronicsSim::addCrosstalk().
|
private |
Definition at line 35 of file CSCCrosstalkGenerator.h.
Referenced by getCrosstalk(), and setParameters().
|
private |
Definition at line 36 of file CSCCrosstalkGenerator.h.
Referenced by getCrosstalk(), and setParameters().
|
private |
Definition at line 38 of file CSCCrosstalkGenerator.h.
Referenced by getCrosstalk(), and setParameters().