CMS 3D CMS Logo

CSCWireElectronicsSim.h
Go to the documentation of this file.
1 #ifndef MU_END_WIRE_ELECTRONICS_SIM_H
2 #define MU_END_WIRE_ELECTRONICS_SIM_H
3 
13 
14 // declarations
15 class CSCLayer;
16 class CSCDetectorHit;
17 class CSCWireDigi;
18 class CSCAnalogSignal;
19 
21 public:
24 
25  void setFraction(float newFraction) { theFraction = newFraction; };
26 
27  void fillDigis(CSCWireDigiCollection &digis, CLHEP::HepRandomEngine *);
28 
29 private:
31  void initParameters() override;
32 
33  // will return wire group, given wire.
34  int readoutElement(int element) const override;
35 
36  float calculateAmpResponse(float t) const override;
37 
38  virtual float timeOfFlightCalibration(int wireGroup) const;
39 
41  int channelIndex(int channel) const override { return channel + 100; }
42 
43  // member data
44  // the fractional discriminator returns the time when the signal
45  // reaches this fraction of its maximum
46  float theFraction;
47  float theWireNoise;
49 };
50 
51 #endif
float calculateAmpResponse(float t) const override
CSCWireElectronicsSim(const edm::ParameterSet &p)
configurable parameters
int channelIndex(int channel) const override
we code strip indices from 1-80, and wire indices start at 100
void fillDigis(CSCWireDigiCollection &digis, CLHEP::HepRandomEngine *)
void initParameters() override
initialization for each layer
int readoutElement(int element) const override
virtual float timeOfFlightCalibration(int wireGroup) const
void setFraction(float newFraction)