CMS 3D CMS Logo

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:
14  double samplingFactor, double timePhase,
16  bool doPhotostatistics, bool syncPhase,
17  int firstRing, const std::vector<double> & samplingFactors,
18  double sipmTau
19  );
21 
22  ~HcalSimParameters() override {}
23 
24  void setDbService(const HcalDbService * service);
25 
26  double simHitToPhotoelectrons(const DetId & detId) const override;
27  double photoelectronsToAnalog(const DetId & detId) const override;
28 
29  double fCtoGeV(const DetId & detId) const;
30 
33  virtual double samplingFactor(const DetId & detId) const;
34 
35  bool doTimeSmear() const { return doTimeSmear_; }
36 
37  double timeSmearRMS(double ampl) const;
38 
39  int pixels(const DetId & detId) const;
40  bool doSiPMSmearing() const { return theSiPMSmearing; }
41 
42  double sipmTau() const { return theSiPMTau; }
43  double sipmDarkCurrentuA(const DetId & detId) const;
44  double sipmCrossTalk(const DetId & detId) const;
45  std::vector<float> sipmNonlinearity(const DetId & detId) const;
46  unsigned int signalShape(const DetId & detId) const;
47 
48  friend class HcalSimParameterMap;
49 
50 private:
51  void defaultTimeSmearing();
55  std::vector<double> theSamplingFactors;
59  double theSiPMTau;
60 };
61 
62 #endif
63 
std::vector< float > sipmNonlinearity(const DetId &detId) const
const HcalSiPMCharacteristics * theSiPMcharacteristics
double sipmTau() const
double fCtoGeV(const DetId &detId) const
bool doPhotostatistics() const
whether or not to apply Poisson statistics to photoelectrons
int pixels(const DetId &detId) const
~HcalSimParameters() override
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
unsigned int signalShape(const DetId &detId) const
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.
Definition: DetId.h:18
HcalSimParameters(double simHitToPhotoelectrons, double samplingFactor, double timePhase, int readoutFrameSize, int binOfMaximum, bool doPhotostatistics, bool syncPhase, int firstRing, const std::vector< double > &samplingFactors, double sipmTau)
double sipmDarkCurrentuA(const DetId &detId) const
void setDbService(const HcalDbService *service)
double sipmCrossTalk(const DetId &detId) const
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) ...