13 : simHitToPhotoelectrons_(simHitToPhotoelectrons),
14 photoelectronsToAnalog_(photoelectronsToAnalog),
15 timePhase_(timePhase),
16 readoutFrameSize_(readoutFrameSize),
17 binOfMaximum_(binOfMaximum),
18 doPhotostatistics_(doPhotostatistics),
19 syncPhase_(syncPhase) {}
24 timePhase_(p.getParameter<double>(
"timePhase")),
30 if (p.
existsAs<
double>(
"photoelectronsToAnalog")) {
32 }
else if (p.
existsAs<std::vector<double>>(
"photoelectronsToAnalog")) {
35 }
else if (!skipPe2Fc) {
36 throw cms::Exception(
"CaloSimParameters") <<
"Cannot find parameter photoelectronsToAnalog";
43 os <<
"CALO SIM PARAMETERS" << std::endl;
46 os <<
" Incident energy / SimHit Energy " << std::endl;
T getParameter(std::string const &) const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
CaloSimParameters(double simHitToPhotoelectrons, double photoelectronsToAnalog, double samplingFactor, double timePhase, int readoutFrameSize, int binOfMaximum, bool doPhotostatistics, bool syncPhase=true)
double photoelectronsToAnalog_
Main class for Parameters in different subdetectors.
double simHitToPhotoelectrons() const
double simHitToPhotoelectrons_
std::ostream & operator<<(std::ostream &os, const CaloSimParameters &p)
double photoelectronsToAnalog() const
the factor which goes from photoelectrons to whatever gets read by ADCs