CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions

PMTResponse Class Reference

#include <PMTResponse.h>

List of all members.

Public Member Functions

 PMTResponse ()
 Default constructor.

Static Public Member Functions

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

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.

{}

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_().

                                                                    {

  // Overall range
  if ( waveLengthNm<300. || waveLengthNm>850 ) return 0.;

  // Parameterisation
  if ( waveLengthNm<500. )
    return TMath::Exp(+waveLengthNm/144.3 - 5.0752);
  else
    return TMath::Exp(-waveLengthNm/290.7 + 0.1105);
  
}