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 
8  // Overall range
9  if ( waveLengthNm<300. || waveLengthNm>850 ) 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 
17 }
static double getEfficiency(const double &waveLengthNm)
Return efficiency for given photon wavelength (in nm)
Definition: PMTResponse.cc:6