CMS 3D CMS Logo

List of all members | Static Public Member Functions
PMTResponse Class Reference

#include <PMTResponse.h>

Static Public Member Functions

static double getEfficiency (const double &waveLengthNm)
 Return efficiency for given photon wavelength (in nm) More...
 

Detailed Description

Encodes the PMT response function

Definition at line 9 of file PMTResponse.h.

Member Function Documentation

double PMTResponse::getEfficiency ( const double &  waveLengthNm)
static

Return efficiency for given photon wavelength (in nm)

Definition at line 6 of file PMTResponse.cc.

References JetChargeProducer_cfi::exp.

Referenced by DreamSD::getPhotonEnergyDeposit_().

6  {
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 }