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 
20 
22 {
23 public:
26 
27  void setFraction(float newFraction) {theFraction = newFraction;};
28 
29  void fillDigis(CSCWireDigiCollection & digis, CLHEP::HepRandomEngine*);
30 
31 private:
33  void initParameters() override;
34 
35  // will return wire group, given wire.
36  int readoutElement(int element) const override;
37 
38  float calculateAmpResponse(float t) const override;
39 
40  virtual float timeOfFlightCalibration(int wireGroup) const;
41 
43  int channelIndex(int channel) const override {return channel+100;}
44 
45  // member data
46  // the fractional discriminator returns the time when the signal
47  // reaches this fraction of its maximum
48  float theFraction;
49  float theWireNoise;
51 
52 };
53 
54 #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)