8 #include "CLHEP/Random/RandGaussQ.h"
12 :
CaloSimParameters(simHitToPhotoelectrons, photoelectronsToAnalog, samplingFactor, timePhase, 6, 4,
false, syncPhase),
14 theSamplingFactor( samplingFactor ),
24 theSamplingFactor( p.getParameter<double>(
"samplingFactor") ),
25 nominalfCperPE( p.getParameter<double>(
"photoelectronsToAnalog") ),
26 dynamicNoise(p.getParameter<bool>(
"doDynamicNoise") )
57 if (!gains || !gwidths )
59 edm::LogError(
"CastorAmplifier") <<
"Could not fetch HCAL conditions for channel " << hcalGenDetId;
bool doDynamicNoise() const
double getNominalfCperPE() const
const CastorDbService * theDbService
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
volatile std::atomic< bool > shutdown_flag false
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