File indexing completed on 2024-09-10 02:59:11
0001 #ifndef MU_END_CROSSTALK_GENERATOR_H
0002 #define MU_END_CROSSTALK_GENERATOR_H
0003
0004 class CSCAnalogSignal;
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 class CSCCrosstalkGenerator {
0020 public:
0021 CSCCrosstalkGenerator() : theCrosstalk(0), theDelay(0), theResistiveFraction(0.) {}
0022
0023 void setParameters(float crosstalk, float delay, float resistiveFraction) {
0024 theCrosstalk = crosstalk;
0025 theDelay = delay;
0026 theResistiveFraction = resistiveFraction;
0027 }
0028
0029 CSCAnalogSignal getCrosstalk(const CSCAnalogSignal &inputSignal) const;
0030
0031
0032 float ratio(const CSCAnalogSignal &crosstalkSignal, const CSCAnalogSignal &signal) const;
0033
0034 private:
0035 float theCrosstalk;
0036 float theDelay;
0037
0038 float theResistiveFraction;
0039 };
0040
0041 #endif