CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalSimParameters.h
Go to the documentation of this file.
1 #ifndef HcalSimAlgos_HcalSimParameters_h
2 #define HcalSimAlgos_HcalSimParameters_h
3 
7 
8 typedef std::vector<std::pair<double,double> > HcalTimeSmearSettings;
9 
11 {
12 public:
13  HcalSimParameters(double simHitToPhotoelectrons, const std::vector<double> & photoelectronsToAnalog,
14  double samplingFactor, double timePhase,
16  bool doPhotostatistics, bool syncPhase,
17  int firstRing, const std::vector<double> & samplingFactors);
19 
20  virtual ~HcalSimParameters() {}
21 
23 
24  virtual double simHitToPhotoelectrons(const DetId & detId) const;
25  virtual double photoelectronsToAnalog(const DetId & detId) const;
26 
27  double fCtoGeV(const DetId & detId) const;
28 
31  virtual double samplingFactor(const DetId & detId) const;
32 
33  bool doTimeSmear() const { return doTimeSmear_; }
34 
35  double timeSmearRMS(double ampl) const;
36 
37  int pixels() const {return thePixels;}
38  bool doSiPMSmearing() const { return theSiPMSmearing; }
39 
40  friend class HcalSimParameterMap;
41 
42 private:
43  void defaultTimeSmearing();
46  std::vector<double> theSamplingFactors;
47  std::vector<double> thePE2fCByRing;
48  int thePixels;
52 };
53 
54 #endif
55 
double fCtoGeV(const DetId &detId) const
bool doPhotostatistics() const
whether or not to apply Poisson statistics to photoelectrons
Main class for Parameters in different subdetectors.
double timePhase() const
the adjustment you need to apply to get the signal where you want it
HcalTimeSmearSettings theSmearSettings
bool doTimeSmear() const
std::vector< double > thePE2fCByRing
double timeSmearRMS(double ampl) const
bool doSiPMSmearing() const
double simHitToPhotoelectrons() const
std::vector< double > theSamplingFactors
virtual double samplingFactor(const DetId &detId) const
int readoutFrameSize() const
for now, the LinearFrames and trhe digis will be one-to-one.
virtual ~HcalSimParameters()
HcalSimParameters(double simHitToPhotoelectrons, const std::vector< double > &photoelectronsToAnalog, double samplingFactor, double timePhase, int readoutFrameSize, int binOfMaximum, bool doPhotostatistics, bool syncPhase, int firstRing, const std::vector< double > &samplingFactors)
Definition: DetId.h:18
void setDbService(const HcalDbService *service)
std::vector< std::pair< double, double > > HcalTimeSmearSettings
const HcalDbService * theDbService
int binOfMaximum() const
double photoelectronsToAnalog() const
the factor which goes from photoelectrons to whatever gets read by ADCs
bool syncPhase() const
choice of the ADC time alignment (synchronous for LHC, asynchronous for test beams) ...