CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_6/src/SimG4CMS/CherenkovAnalysis/src/PMTResponse.cc

Go to the documentation of this file.
00001 #include "TMath.h"
00002 
00003 #include "SimG4CMS/CherenkovAnalysis/interface/PMTResponse.h"
00004 
00005 //________________________________________________________________________________________
00006 const double PMTResponse::getEfficiency( const double& waveLengthNm ) {
00007 
00008   // Overall range
00009   if ( waveLengthNm<300. || waveLengthNm>850 ) return 0.;
00010 
00011   // Parameterisation
00012   if ( waveLengthNm<500. )
00013     return TMath::Exp(+waveLengthNm/144.3 - 5.0752);
00014   else
00015     return TMath::Exp(-waveLengthNm/290.7 + 0.1105);
00016   
00017 }