9 : simHitToPhotoelectrons_(simHitToPhotoelectrons),
10 photoelectronsToAnalog_(photoelectronsToAnalog),
11 timePhase_(timePhase),
12 readoutFrameSize_(readoutFrameSize),
13 binOfMaximum_(binOfMaximum),
14 doPhotostatistics_(doPhotostatistics),
24 timePhase_( p.getParameter<double>(
"timePhase") ),
31 if(p.
existsAs<
double>(
"photoelectronsToAnalog")) {
33 }
else if(p.
existsAs<std::vector<double> >(
"photoelectronsToAnalog")) {
36 }
else if(!skipPe2Fc) {
37 throw cms::Exception(
"CaloSimParameters") <<
"Cannot find parameter photoelectronsToAnalog";
45 os <<
"CALO SIM PARAMETERS" << std::endl;
48 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