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 public:
13  double samplingFactor,
14  double timePhase,
15  int readoutFrameSize,
16  int binOfMaximum,
17  bool doPhotostatistics,
18  bool syncPhase,
19  int firstRing,
20  const std::vector<double>& samplingFactors,
21  double sipmTau);
23 
24  ~HcalSimParameters() override {}
25 
26  void setDbService(const HcalDbService* service);
27 
28  double simHitToPhotoelectrons(const DetId& detId) const override;
29  double photoelectronsToAnalog(const DetId& detId) const override;
30 
31  double fCtoGeV(const DetId& detId) const;
32 
35  virtual double samplingFactor(const DetId& detId) const;
36 
37  bool doTimeSmear() const { return doTimeSmear_; }
38 
39  double timeSmearRMS(double ampl) const;
40 
41  int pixels(const DetId& detId) const;
42  bool doSiPMSmearing() const { return theSiPMSmearing; }
43 
44  double threshold_currentTDC() const { return threshold_currentTDC_; }
45  double sipmTau() const { return theSiPMTau; }
46  double sipmDarkCurrentuA(const DetId& detId) const;
47  double sipmCrossTalk(const DetId& detId) const;
48  std::vector<float> sipmNonlinearity(const DetId& detId) const;
49  unsigned int signalShape(const DetId& detId) const;
50 
51  friend class HcalSimParameterMap;
52 
53 private:
54  void defaultTimeSmearing();
58  std::vector<double> theSamplingFactors;
62  double theSiPMTau;
64 };
65 
66 #endif
service
Definition: service.py:1
HcalSimParameters::theSiPMTau
double theSiPMTau
Definition: HcalSimParameters.h:62
HcalSimParameters::theFirstRing
int theFirstRing
Definition: HcalSimParameters.h:57
HcalSimParameters::threshold_currentTDC_
double threshold_currentTDC_
Definition: HcalSimParameters.h:63
CaloSimParameters::doPhotostatistics
bool doPhotostatistics() const
whether or not to apply Poisson statistics to photoelectrons
Definition: CaloSimParameters.h:54
CaloSimParameters::photoelectronsToAnalog
double photoelectronsToAnalog() const
the factor which goes from photoelectrons to whatever gets read by ADCs
Definition: CaloSimParameters.h:38
HcalSimParameters::sipmNonlinearity
std::vector< float > sipmNonlinearity(const DetId &detId) const
Definition: HcalSimParameters.cc:165
CaloSimParameters::readoutFrameSize
int readoutFrameSize() const
for now, the LinearFrames and trhe digis will be one-to-one.
Definition: CaloSimParameters.h:45
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
HcalSimParameters::theSiPMcharacteristics
const HcalSiPMCharacteristics * theSiPMcharacteristics
Definition: HcalSimParameters.h:56
HcalSimParameters::pixels
int pixels(const DetId &detId) const
Definition: HcalSimParameters.cc:149
CaloSimParameters.h
CaloSimParameters::simHitToPhotoelectrons
double simHitToPhotoelectrons() const
Definition: CaloSimParameters.h:34
hcalSimParameters_cfi.firstRing
firstRing
Definition: hcalSimParameters_cfi.py:41
CaloSimParameters::timePhase
double timePhase() const
the adjustment you need to apply to get the signal where you want it
Definition: CaloSimParameters.h:42
HcalSimParameters::sipmCrossTalk
double sipmCrossTalk(const DetId &detId) const
Definition: HcalSimParameters.cc:160
HcalSimParameters::~HcalSimParameters
~HcalSimParameters() override
Definition: HcalSimParameters.h:24
HcalTimeSmearSettings
std::vector< std::pair< double, double > > HcalTimeSmearSettings
Definition: HcalSimParameters.h:8
DetId
Definition: DetId.h:17
HcalSimParameters::doSiPMSmearing
bool doSiPMSmearing() const
Definition: HcalSimParameters.h:42
HcalSimParameters::signalShape
unsigned int signalShape(const DetId &detId) const
Definition: HcalSimParameters.cc:171
CaloSimParameters
Main class for Parameters in different subdetectors.
Definition: CaloSimParameters.h:14
HcalSimParameterMap
Definition: HcalSimParameterMap.h:10
HcalSimParameters::samplingFactor
virtual double samplingFactor(const DetId &detId) const
Definition: HcalSimParameters.cc:93
HcalSimParameters::theSmearSettings
HcalTimeSmearSettings theSmearSettings
Definition: HcalSimParameters.h:61
HcalSimParameters::HcalSimParameters
HcalSimParameters(double simHitToPhotoelectrons, double samplingFactor, double timePhase, int readoutFrameSize, int binOfMaximum, bool doPhotostatistics, bool syncPhase, int firstRing, const std::vector< double > &samplingFactors, double sipmTau)
Definition: HcalSimParameters.cc:12
hcalSimParameters_cfi.samplingFactors
samplingFactors
Definition: hcalSimParameters_cfi.py:45
edm::ParameterSet
Definition: ParameterSet.h:36
HcalSimParameters::sipmDarkCurrentuA
double sipmDarkCurrentuA(const DetId &detId) const
Definition: HcalSimParameters.cc:155
HcalSimParameters::theSamplingFactors
std::vector< double > theSamplingFactors
Definition: HcalSimParameters.h:58
HcalSimParameters::defaultTimeSmearing
void defaultTimeSmearing()
Definition: HcalSimParameters.cc:107
HcalSimParameters::theSiPMSmearing
bool theSiPMSmearing
Definition: HcalSimParameters.h:59
CaloSimParameters::syncPhase
bool syncPhase() const
Definition: CaloSimParameters.h:58
HcalSimParameters
Definition: HcalSimParameters.h:10
HcalDbService
Definition: HcalDbService.h:26
HcalSimParameters::timeSmearRMS
double timeSmearRMS(double ampl) const
Definition: HcalSimParameters.cc:125
HcalSimParameters::fCtoGeV
double fCtoGeV(const DetId &detId) const
Definition: HcalSimParameters.cc:74
HcalDbService.h
HcalSimParameters::theDbService
const HcalDbService * theDbService
Definition: HcalSimParameters.h:55
ParameterSet.h
HcalSimParameters::threshold_currentTDC
double threshold_currentTDC() const
Definition: HcalSimParameters.h:44
HcalSimParameters::doTimeSmear
bool doTimeSmear() const
Definition: HcalSimParameters.h:37
HcalSimParameters::sipmTau
double sipmTau() const
Definition: HcalSimParameters.h:45
HcalSimParameters::setDbService
void setDbService(const HcalDbService *service)
Definition: HcalSimParameters.cc:56
CaloSimParameters::binOfMaximum
int binOfMaximum() const
Definition: CaloSimParameters.h:47
HcalSimParameters::doTimeSmear_
bool doTimeSmear_
Definition: HcalSimParameters.h:60
HcalSiPMCharacteristics
Definition: HcalSiPMCharacteristics.h:18