22 : simHitToPhotoelectrons_(
p.getParameter<double>(
"simHitToPhotoelectrons")),
23 photoelectronsToAnalog_(0.),
24 timePhase_(
p.getParameter<double>(
"timePhase")),
25 readoutFrameSize_(
p.getParameter<
int>(
"readoutFrameSize")),
26 binOfMaximum_(
p.getParameter<
int>(
"binOfMaximum")),
27 doPhotostatistics_(
p.getParameter<
bool>(
"doPhotoStatistics")),
28 syncPhase_(
p.getParameter<
bool>(
"syncPhase")) {
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;
44 os <<
p.simHitToPhotoelectrons(
dummy) <<
" pe per SimHit energy " << std::endl;
45 os <<
p.photoelectronsToAnalog() <<
" Analog signal to be digitized per pe" << std::endl;
46 os <<
" Incident energy / SimHit Energy " << std::endl;
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.
std::ostream & operator<<(std::ostream &os, const CaloSimParameters &p)