File indexing completed on 2024-04-06 12:30:43
0001 #ifndef MU_END_WIRE_ELECTRONICS_SIM_H
0002 #define MU_END_WIRE_ELECTRONICS_SIM_H
0003
0004
0005
0006
0007
0008
0009
0010
0011 #include "DataFormats/CSCDigi/interface/CSCWireDigiCollection.h"
0012 #include "SimMuon/CSCDigitizer/src/CSCBaseElectronicsSim.h"
0013
0014
0015 class CSCLayer;
0016 class CSCDetectorHit;
0017 class CSCWireDigi;
0018 class CSCAnalogSignal;
0019
0020 class CSCWireElectronicsSim : public CSCBaseElectronicsSim {
0021 public:
0022
0023 CSCWireElectronicsSim(const edm::ParameterSet &p);
0024
0025 void setFraction(float newFraction) { theFraction = newFraction; };
0026
0027 void fillDigis(CSCWireDigiCollection &digis, CLHEP::HepRandomEngine *);
0028
0029 private:
0030
0031 void initParameters() override;
0032
0033
0034 int readoutElement(int element) const override;
0035
0036 float calculateAmpResponse(float t) const override;
0037
0038 virtual float timeOfFlightCalibration(int wireGroup) const;
0039
0040
0041 int channelIndex(int channel) const override { return channel + 100; }
0042
0043
0044
0045
0046 float theFraction;
0047 float theWireNoise;
0048 float theWireThreshold;
0049 };
0050
0051 #endif