CMS 3D CMS Logo

CSCStripConditions.h
Go to the documentation of this file.
1 #ifndef CSCDigitizer_CSCStripConditions_h
2 #define CSCDigitizer_CSCStripConditions_h
3 
8 
9 namespace CLHEP {
10  class HepRandomEngine;
11 }
12 
14 public:
18 
19  virtual ~CSCStripConditions();
20 
22  void noisify(const CSCDetId &detId, CSCAnalogSignal &signal, CLHEP::HepRandomEngine *);
23 
24  virtual void initializeEvent(const edm::EventSetup &es) {}
25 
28  virtual float gain(const CSCDetId &detId, int channel) const = 0;
29  virtual float gainSigma(const CSCDetId &detId, int channel) const = 0;
30  virtual float smearedGain(const CSCDetId &detId, int channel, CLHEP::HepRandomEngine *) const;
31 
33  virtual float pedestal(const CSCDetId &detId, int channel) const = 0;
34  virtual float pedestalSigma(const CSCDetId &detId, int channel) const = 0;
35 
37  float analogNoise(const CSCDetId &detId, int channel) const;
38 
39  virtual void crosstalk(const CSCDetId &detId,
40  int channel,
41  double stripLength,
42  bool leftRight,
43  float &capacitive,
44  float &resistive) const = 0;
45 
47  virtual bool isInBadChamber(const CSCDetId &id) const { return false; }
48 
49 protected:
50  virtual void fetchNoisifier(const CSCDetId &detId, int istrip) = 0;
51 
53 };
54 
55 #endif
CSCStripConditions::CSCCorrelatedNoiseMatrix
math::ErrorD< 8 >::type CSCCorrelatedNoiseMatrix
Definition: CSCStripConditions.h:15
CSCStripConditions::crosstalk
virtual void crosstalk(const CSCDetId &detId, int channel, double stripLength, bool leftRight, float &capacitive, float &resistive) const =0
CSCAnalogSignal.h
CSCStripConditions::analogNoise
float analogNoise(const CSCDetId &detId, int channel) const
calculated from pedestalSigma & gain
Definition: CSCStripConditions.cc:35
CSCStripConditions::CSCStripConditions
CSCStripConditions()
Definition: CSCStripConditions.cc:12
CSCStripConditions::noisify
void noisify(const CSCDetId &detId, CSCAnalogSignal &signal, CLHEP::HepRandomEngine *)
superimposes noise, in fC, on the signal
Definition: CSCStripConditions.cc:20
CSCDetId.h
CorrelatedNoisifier.h
CSCStripConditions
Definition: CSCStripConditions.h:13
CSCStripConditions::CSCCorrelatedNoisifier
CorrelatedNoisifier< CSCCorrelatedNoiseMatrix > CSCCorrelatedNoisifier
Definition: CSCStripConditions.h:16
CLHEP
Definition: CocoaGlobals.h:27
CSCStripConditions::fetchNoisifier
virtual void fetchNoisifier(const CSCDetId &detId, int istrip)=0
CSCStripConditions::theNoisifier
CSCCorrelatedNoisifier * theNoisifier
Definition: CSCStripConditions.h:52
math::ErrorD::type
ROOT::Math::SMatrix< double, N, N, ROOT::Math::MatRepSym< double, N > > type
Definition: Error.h:20
CSCDetId
Definition: CSCDetId.h:26
CSCStripConditions::pedestalSigma
virtual float pedestalSigma(const CSCDetId &detId, int channel) const =0
edm::EventSetup
Definition: EventSetup.h:58
CSCStripConditions::gainSigma
virtual float gainSigma(const CSCDetId &detId, int channel) const =0
CSCStripConditions::smearedGain
virtual float smearedGain(const CSCDetId &detId, int channel, CLHEP::HepRandomEngine *) const
Definition: CSCStripConditions.cc:16
CSCStripConditions::initializeEvent
virtual void initializeEvent(const edm::EventSetup &es)
Definition: CSCStripConditions.h:24
CorrelatedNoisifier
adds noise to the given frame.
Definition: EcalCoder.h:12
CSCAnalogSignal
Definition: CSCAnalogSignal.h:32
CSCStripConditions::pedestal
virtual float pedestal(const CSCDetId &detId, int channel) const =0
in ADC counts
CSCStripConditions::gain
virtual float gain(const CSCDetId &detId, int channel) const =0
EventSetup.h
CSCStripConditions::isInBadChamber
virtual bool isInBadChamber(const CSCDetId &id) const
is supplied layer/chamber flagged as bad? (default impl. is no)
Definition: CSCStripConditions.h:47
CSCStripConditions::~CSCStripConditions
virtual ~CSCStripConditions()
Definition: CSCStripConditions.cc:14