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 // $Id: HPDIonFeedbackSim.h,v 1.3 2011/02/23 19:51:51 rpw Exp $
10 // --------------------------------------------------------
11 
12 #ifndef HcalSimAlgos_HPDIonFeedbackSim_h
13 #define HcalSimAlgos_HPDIonFeedbackSim_h
14 
21 // CLHEP Random numbers
22 #include "CLHEP/Random/RandBinomial.h"
23 #include "CLHEP/Random/RandFlat.h"
24 #include "CLHEP/Random/RandGaussQ.h"
25 #include "CLHEP/Random/RandPoissonQ.h"
26 class CaloShapes;
27 
29 {
30  public:
32  HPDIonFeedbackSim(const edm::ParameterSet&, const CaloShapes * shapes);
34 
35  //copied from HFSimParameters.h
36  void setDbService(const HcalDbService * service) {theDbService = service;}
38  void setRandomEngine(CLHEP::HepRandomEngine & engine);
39 
40  // in units of fC
41  virtual double correctPE(const DetId & detId, double npe) const;
42  double getIonFeedback(DetId detId, double signal, double pedWidth, bool doThermal, bool isInGeV);
43 
44  void addThermalNoise(CaloSamples & samples);
45 
46  private:
47  double fCtoGeV(const DetId & detId) const;
50 
51  mutable CLHEP::RandBinomial * theRandBinomial;
52  mutable CLHEP::RandFlat* theRandFlat;
53  mutable CLHEP::RandGaussQ * theRandGauss;
54  mutable CLHEP::RandPoissonQ* theRandPoissonQ;
55 
56 };
57 #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:20
CLHEP::RandPoissonQ * theRandPoissonQ
const CaloShapes * theShapes
void setDbService(const HcalDbService *service)
double getIonFeedback(DetId detId, double signal, double pedWidth, bool doThermal, bool isInGeV)