GLG4HitPhoton Class Reference

Ratpac-two: GLG4HitPhoton Class Reference
Ratpac-two
GLG4HitPhoton Class Reference

#include <GLG4HitPhoton.hh>

Public Member Functions

void SetPMTID (int id)
 
void SetTime (double t)
 
void SetCreationTime (double t)
 
void SetKineticEnergy (double KE)
 set kinetic energy and wavelength of photon.
 
void SetWavelength (double wl)
 set wavelength and kinetic energy of photon
 
void SetPosition (double x, double y, double z)
 
void SetMomentum (double x, double y, double z)
 
void SetPolarization (double x, double y, double z)
 
void SetCount (int count)
 
void AddCount (int dcount)
 
void SetTrackID (int trackID)
 
void SetCreatorProcess (std::string process)
 
void SetPrepulse (bool prepulse)
 
int GetPMTID () const
 
double GetTime () const
 
double GetCreationTime () const
 
double GetKineticEnergy () const
 
double GetWavelength () const
 
template<class T >
void GetPosition (T &x, T &y, T &z) const
 
template<class T >
void GetMomentum (T &x, T &y, T &z) const
 
template<class T >
void GetPolarization (T &x, T &y, T &z) const
 
int GetCount () const
 
int GetTrackID () const
 
std::string GetCreatorProcess () const
 
bool GetPrepulse () const
 
void Print (std::ostream &) const
 

Detailed Description

GLG4HitPhoton stores information about a photon that makes a photoelectron in a PMT. With count>1, it records multiple p.e. made at the same time at a PMT.

The general contract for GLG4HitPhoton is as follows:

  • remember PMT ID, Time, position, KE, momentum, polarization, and count
  • provide Get/Set for all of the above, plus AddCount for count
  • initialize count=1, time & id = some invalid value

This is almost the same "general contract" that was implemented for KLG4sim's KLHitPhoton by O. Tajima and G. Horton-Smith, but the code was rewritten for GLG4sim in December 2004.

Author
Glenn Horton-Smith

The documentation for this class was generated from the following files:
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/core/include/RAT/GLG4HitPhoton.hh
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/core/src/GLG4HitPhoton.cc