1 #include "CLHEP/Random/RandGaussQ.h" 18 theDbService(nullptr),
24 theDbService(nullptr),
25 theSamplingFactor(
p.getParameter<double>(
"samplingFactor")),
26 nominalfCperPE(
p.getParameter<double>(
"photoelectronsToAnalog")) {}
45 if (!
gains || !gwidths) {
46 edm::LogError(
"CastorAmplifier") <<
"Could not fetch HCAL conditions for channel " << hcalGenDetId;
double getNominalfCperPE() const
double fCtoGeV(const DetId &detId) const
const CastorDbService * theDbService
double photoelectronsToAnalog() const
the factor which goes from photoelectrons to whatever gets read by ADCs
const CastorGainWidth * getGainWidth(const HcalGenericDetId &fId) const
Log< level::Error, false > LogError
Main class for Parameters in different subdetectors.
CastorSimParameters(double simHitToPhotoelectrons, double photoelectronsToAnalog, double samplingFactor, double timePhase, bool syncPhase)
const CastorGain * getGain(const HcalGenericDetId &fId) const
constexpr float gains[NGAINS]