1 #include "CLHEP/Random/RandGaussQ.h"
12 double photoelectronsToAnalog,
13 double samplingFactor,
17 simHitToPhotoelectrons, photoelectronsToAnalog, samplingFactor, timePhase, 6, 4,
false, syncPhase),
18 theDbService(nullptr),
19 theSamplingFactor(samplingFactor),
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
const CastorDbService * theDbService
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
double fCtoGeV(const DetId &detId) const
const CastorGainWidth * getGainWidth(const HcalGenericDetId &fId) const
float getValue(int fCapId) const
get value for capId = 0..3
double photoelectronsToAnalog() const
the factor which goes from photoelectrons to whatever gets read by ADCs