CMS 3D CMS Logo

HPDIonFeedbackSim.h
Go to the documentation of this file.
1 
2 // --------------------------------------------------------
3 // A class to simulated HPD ion feedback noise.
4 // The deliverable of the class is the ion feedback noise
5 // for an HcalDetId units of fC or GeV
6 //
7 // Project: HPD ion feedback
8 // Author: T.Yetkin University of Iowa, Feb. 16, 2010
9 // --------------------------------------------------------
10 
11 #ifndef HcalSimAlgos_HPDIonFeedbackSim_h
12 #define HcalSimAlgos_HPDIonFeedbackSim_h
13 
20 
21 class CaloShapes;
22 
23 namespace CLHEP {
24  class HepRandomEngine;
25 }
26 
28 public:
30  HPDIonFeedbackSim(const edm::ParameterSet&, const CaloShapes* shapes);
31  ~HPDIonFeedbackSim() override;
32 
33  //copied from HFSimParameters.h
35 
36  // in units of fC
37  double correctPE(const DetId& detId, double npe, CLHEP::HepRandomEngine*) const override;
38  double getIonFeedback(
39  DetId detId, double signal, double pedWidth, bool doThermal, bool isInGeV, CLHEP::HepRandomEngine*);
40 
41  void addThermalNoise(CaloSamples& samples, CLHEP::HepRandomEngine*);
42 
43 private:
44  double fCtoGeV(const DetId& detId) const;
47 };
48 #endif
service
Definition: service.py:1
CaloSamples.h
HPDIonFeedbackSim::getIonFeedback
double getIonFeedback(DetId detId, double signal, double pedWidth, bool doThermal, bool isInGeV, CLHEP::HepRandomEngine *)
Definition: HPDIonFeedbackSim.cc:37
HPDIonFeedbackSim::~HPDIonFeedbackSim
~HPDIonFeedbackSim() override
Definition: HPDIonFeedbackSim.cc:35
HPDIonFeedbackSim::addThermalNoise
void addThermalNoise(CaloSamples &samples, CLHEP::HepRandomEngine *)
Definition: HPDIonFeedbackSim.cc:96
CaloVPECorrection
Definition: CaloVPECorrection.h:14
EgammaValidation_cff.samples
samples
Definition: EgammaValidation_cff.py:19
HPDIonFeedbackSim::fCtoGeV
double fCtoGeV(const DetId &detId) const
Definition: HPDIonFeedbackSim.cc:118
HPDIonFeedbackSim
Definition: HPDIonFeedbackSim.h:27
DetId
Definition: DetId.h:17
HPDIonFeedbackSim::theDbService
const HcalDbService * theDbService
Definition: HPDIonFeedbackSim.h:45
CaloVPECorrection.h
HPDIonFeedbackSim::correctPE
double correctPE(const DetId &detId, double npe, CLHEP::HepRandomEngine *) const override
Definition: HPDIonFeedbackSim.cc:61
CLHEP
Definition: CocoaGlobals.h:27
edm::ParameterSet
Definition: ParameterSet.h:47
HcalDetId.h
CaloSamples
Definition: CaloSamples.h:14
CaloShapes
Definition: CaloShapes.h:9
HcalDbService
Definition: HcalDbService.h:26
DetId.h
ParameterSetfwd.h
HcalDbService.h
HPDIonFeedbackSim::theShapes
const CaloShapes * theShapes
Definition: HPDIonFeedbackSim.h:46
HPDIonFeedbackSim::setDbService
void setDbService(const HcalDbService *service)
Definition: HPDIonFeedbackSim.h:34
HPDIonFeedbackSim::HPDIonFeedbackSim
HPDIonFeedbackSim(const edm::ParameterSet &, const CaloShapes *shapes)
need a shaper in order to set thermal noise
Definition: HPDIonFeedbackSim.cc:32