CMS 3D CMS Logo

HcalAmplifier.h
Go to the documentation of this file.
1 #ifndef HcalSimAlgos_HcalAmplifier_h
2 #define HcalSimAlgos_HcalAmplifier_h
3 
10 
11 class HcalDbService;
12 class HPDIonFeedbackSim;
13 class HcalTimeSlewSim;
14 class HcalTimeSlew;
15 
16 namespace CLHEP {
17  class HepRandomEngine;
18 }
19 
21 public:
22  HcalAmplifier(const CaloVSimParameterMap* parameters, bool addNoise, bool PreMix1, bool PreMix2);
23 
24  virtual ~HcalAmplifier() {}
25 
27  void setDbService(const HcalDbService* service);
28  void setIonFeedbackSim(HPDIonFeedbackSim* feedbackSim) { theIonFeedbackSim = feedbackSim; }
29 
32  void setNoiseSignalGenerator(const CaloVNoiseSignalGenerator* noiseSignalGenerator) {
33  theNoiseSignalGenerator = noiseSignalGenerator;
34  }
35  void setTimeSlewSim(HcalTimeSlewSim* timeSlewSim) { theTimeSlewSim = timeSlewSim; }
36 
37  const HcalTimeSlew* theTimeSlew = nullptr;
38  void setTimeSlew(const HcalTimeSlew* timeSlew) { theTimeSlew = timeSlew; }
39 
40  virtual void amplify(CaloSamples& linearFrame, CLHEP::HepRandomEngine*) const;
41 
42  void setStartingCapId(int capId) { theStartingCapId = capId; }
43 
44 private:
45  void pe2fC(CaloSamples& frame) const;
46  void applyQIEdelay(CaloSamples& frame, int delayQIE) const;
47  void addPedestals(CaloSamples& frame, CLHEP::HepRandomEngine*) const;
50  int fFrames,
51  double* fGauss,
52  double* fNoise) const;
53 
59  unsigned theStartingCapId;
60  bool addNoise_;
62  bool preMixAdd_;
63 };
64 
65 #endif
void setDbService(const HcalDbService *service)
the Producer will probably update this every event
const CaloVNoiseSignalGenerator * theNoiseSignalGenerator
Definition: HcalAmplifier.h:56
const CaloVSimParameterMap * theParameterMap
Definition: HcalAmplifier.h:55
void setStartingCapId(int capId)
Definition: HcalAmplifier.h:42
const HcalTimeSlew * theTimeSlew
Definition: HcalAmplifier.h:37
void pe2fC(CaloSamples &frame) const
void setIonFeedbackSim(HPDIonFeedbackSim *feedbackSim)
Definition: HcalAmplifier.h:28
HcalAmplifier(const CaloVSimParameterMap *parameters, bool addNoise, bool PreMix1, bool PreMix2)
const HcalDbService * theDbService
Definition: HcalAmplifier.h:54
void setTimeSlew(const HcalTimeSlew *timeSlew)
Definition: HcalAmplifier.h:38
HcalTimeSlewSim * theTimeSlewSim
Definition: HcalAmplifier.h:58
void applyQIEdelay(CaloSamples &frame, int delayQIE) const
void makeNoise(HcalGenericDetId::HcalGenericSubdetector hcalSubDet, const HcalCalibrationWidths &width, int fFrames, double *fGauss, double *fNoise) const
void setNoiseSignalGenerator(const CaloVNoiseSignalGenerator *noiseSignalGenerator)
Definition: HcalAmplifier.h:32
void setTimeSlewSim(HcalTimeSlewSim *timeSlewSim)
Definition: HcalAmplifier.h:35
unsigned theStartingCapId
Definition: HcalAmplifier.h:59
virtual ~HcalAmplifier()
Definition: HcalAmplifier.h:24
HPDIonFeedbackSim * theIonFeedbackSim
Definition: HcalAmplifier.h:57
virtual void amplify(CaloSamples &linearFrame, CLHEP::HepRandomEngine *) const
void addPedestals(CaloSamples &frame, CLHEP::HepRandomEngine *) const