CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // CLHEP Random numbers
21 #include "CLHEP/Random/RandBinomial.h"
22 #include "CLHEP/Random/RandFlat.h"
23 #include "CLHEP/Random/RandGaussQ.h"
24 #include "CLHEP/Random/RandPoissonQ.h"
25 class CaloShapes;
26 
28 {
29  public:
31  HPDIonFeedbackSim(const edm::ParameterSet&, const CaloShapes * shapes);
33 
34  //copied from HFSimParameters.h
35  void setDbService(const HcalDbService * service) {theDbService = service;}
37  void setRandomEngine(CLHEP::HepRandomEngine & engine);
38 
39  // in units of fC
40  virtual double correctPE(const DetId & detId, double npe) const;
41  double getIonFeedback(DetId detId, double signal, double pedWidth, bool doThermal, bool isInGeV);
42 
43  void addThermalNoise(CaloSamples & samples);
44 
45  private:
46  double fCtoGeV(const DetId & detId) const;
49 
50  mutable CLHEP::RandBinomial * theRandBinomial;
51  mutable CLHEP::RandFlat* theRandFlat;
52  mutable CLHEP::RandGaussQ * theRandGauss;
53  mutable CLHEP::RandPoissonQ* theRandPoissonQ;
54 
55 };
56 #endif
HPDIonFeedbackSim(const edm::ParameterSet &, const CaloShapes *shapes)
need a shaper in order to set thermal noise
void addThermalNoise(CaloSamples &samples)
CLHEP::RandGaussQ * theRandGauss
double fCtoGeV(const DetId &detId) const
CLHEP::RandFlat * theRandFlat
const HcalDbService * theDbService
virtual double correctPE(const DetId &detId, double npe) const
void setRandomEngine(CLHEP::HepRandomEngine &engine)
need a shaper in order to set thermal noise
CLHEP::RandBinomial * theRandBinomial
Definition: DetId.h:18
CLHEP::RandPoissonQ * theRandPoissonQ
const CaloShapes * theShapes
void setDbService(const HcalDbService *service)
double getIonFeedback(DetId detId, double signal, double pedWidth, bool doThermal, bool isInGeV)