6 double samplingFactor,
double timePhase,
8 bool doPhotostatistics,
bool syncPhase)
9 : simHitToPhotoelectrons_(simHitToPhotoelectrons),
10 photoelectronsToAnalog_(photoelectronsToAnalog),
11 timePhase_(timePhase),
12 readoutFrameSize_(readoutFrameSize),
13 binOfMaximum_(binOfMaximum),
14 doPhotostatistics_(doPhotostatistics),
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") )
31 if(p.
existsAs<
double>(
"photoelectronsToAnalog")) {
33 }
else if(p.
existsAs<std::vector<double> >(
"photoelectronsToAnalog")) {
37 throw cms::Exception(
"CaloSimParameters") <<
"Cannot find parameter photoelectronsToAnalog";
44 os <<
"CALO SIM PARAMETERS" << std::endl;
47 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_
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Main class for Parameters in different subdetectors.
double simHitToPhotoelectrons() const
double photoelectronsToAnalog() const
the factor which goes from photoelectrons to whatever gets read by ADCs