CMS 3D CMS Logo

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

#include <PMTResponse.h>

Public Member Functions

 PMTResponse ()
 Default constructor. More...
 

Static Public Member Functions

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

Detailed Description

Encodes the PMT response function

Definition at line 11 of file PMTResponse.h.

Constructor & Destructor Documentation

PMTResponse::PMTResponse ( )
inline

Default constructor.

Definition at line 16 of file PMTResponse.h.

References getEfficiency().

16 {}

Member Function Documentation

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

Return efficiency for given photon wavelength (in nm)

Definition at line 6 of file PMTResponse.cc.

Referenced by DreamSD::getPhotonEnergyDeposit_(), and PMTResponse().

6  {
7 
8  // Overall range
9  if ( waveLengthNm<300. || waveLengthNm>850 ) return 0.;
10 
11  // Parameterisation
12  if ( waveLengthNm<500. )
13  return TMath::Exp(+waveLengthNm/144.3 - 5.0752);
14  else
15  return TMath::Exp(-waveLengthNm/290.7 + 0.1105);
16 
17 }