9 #include "CLHEP/Random/RandGaussQ.h" 30 theDbService(nullptr),
31 theSiPMcharacteristics(nullptr),
34 theSiPMSmearing(
false),
44 theDbService(nullptr),
45 theFirstRing(
p.getParameter<
int>(
"firstRing")),
46 theSamplingFactors(
p.getParameter<
std::
vector<double> >(
"samplingFactors")),
47 theSiPMSmearing(
p.getParameter<
bool>(
"doSiPMSmearing")),
48 doTimeSmear_(
p.getParameter<
bool>(
"timeSmearing")),
49 theSiPMTau(
p.getParameter<double>(
"sipmTau")),
50 threshold_currentTDC_(
p.getParameter<double>(
"threshold_currentTDC")),
51 delayQIE_(
p.getParameter<
int>(
"delayQIE")) {
81 if (!
gains || !gwidths) {
82 edm::LogError(
"HcalAmplifier") <<
"Could not fetch HCAL conditions for channel " << hcalGenDetId;
128 double smearsigma = 0;
141 if (energy2 != energy1)
142 smearsigma = sigma1 + ((sigma2 - sigma1) * (ampl - energy1) / (energy2 - energy1));
144 smearsigma = (sigma2 + sigma1) / 2.;
const HcalSiPMCharacteristics * theSiPMcharacteristics
const HcalGainWidth * getGainWidth(const HcalGenericDetId &fId) const
constexpr int ietaAbs() const
get the absolute value of the cell ieta
int pixels(const DetId &detId) const
float getFCByPE() const
get fcByPE
std::vector< float > getNonLinearities(int type) const
get nonlinearity constants
float getDarkCurrent() const
get dark current
double photoelectronsToAnalog() const
the factor which goes from photoelectrons to whatever gets read by ADCs
Log< level::Error, false > LogError
virtual double samplingFactor(const DetId &detId) const
Main class for Parameters in different subdetectors.
double sipmCrossTalk(const DetId &detId) const
double simHitToPhotoelectrons() const
const HcalMCParam * getHcalMCParam(const HcalGenericDetId &fId) const
static const double GeV2fC
float getCrossTalk(int type) const
get cross talk
HcalTimeSmearSettings theSmearSettings
double sipmDarkCurrentuA(const DetId &detId) const
unsigned int signalShape(const DetId &detId) const
std::vector< double > theSamplingFactors
unsigned int signalShape() const
void defaultTimeSmearing()
constexpr float gains[NGAINS]
Log< level::Info, false > LogInfo
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 timeSmearRMS(double ampl) const
const HcalGain * getGain(const HcalGenericDetId &fId) const
int getPixels(int type) const
get # of pixels
int getType() const
get SiPM type
void setDbService(const HcalDbService *service)
const HcalDbService * theDbService
const HcalSiPMParameter * getHcalSiPMParameter(const HcalGenericDetId &fId) const
double fCtoGeV(const DetId &detId) const
std::vector< float > sipmNonlinearity(const DetId &detId) const