CMS 3D CMS Logo

PMTResponse.cc
Go to the documentation of this file.
2 
3 #include <cmath>
4 
5 //________________________________________________________________________________________
6 double PMTResponse::getEfficiency(const double &waveLengthNm) {
7  // Overall range
8  if (waveLengthNm < 300. || waveLengthNm > 850)
9  return 0.;
10 
11  // Parameterisation
12  if (waveLengthNm < 500.)
13  return std::exp(+waveLengthNm / 144.3 - 5.0752);
14  else
15  return std::exp(-waveLengthNm / 290.7 + 0.1105);
16 }
static double getEfficiency(const double &waveLengthNm)
Return efficiency for given photon wavelength (in nm)
Definition: PMTResponse.cc:6