GosSiP  1.32
PhotonSource Class Reference

#include <PhotonSource.h>

Public Member Functions

 PhotonSource ()
 
 ~PhotonSource ()
 
PhotonList GeneratePhotons ()
 
void SetFluctuation (bool fluct)
 
void SetNgamma (int nGamma)
 
void SetPulse (string Pulse)
 
void SetPulse (TH1 *h_time)
 
void SetRiseTime (double Trise)
 
void SetShape (string Shape)
 
void SetShape (TH2 *h_shape)
 
void SetTime (double T)
 
void SetTimeWidth (double Twidth)
 
void SetXY (double X, double Y)
 
void SetXYWidth (double Xwidth, double Ywidth)
 

Detailed Description

Simple simulation of a pulsed light source

Constructor & Destructor Documentation

PhotonSource::PhotonSource ( )
PhotonSource::~PhotonSource ( )
inline

Here is the call graph for this function:

Member Function Documentation

PhotonList PhotonSource::GeneratePhotons ( )

Generates a photon list

Here is the caller graph for this function:

void PhotonSource::SetFluctuation ( bool  fluct)
inline

Enables poisson smearing of number of photons in the pulse

void PhotonSource::SetNgamma ( int  nGamma)
inline

Sets mean number of photons in the pulse

Here is the caller graph for this function:

void PhotonSource::SetPulse ( string  Pulse)
inline

Sets time distribution. Options are "gaus","flat","exp","exp2"

void PhotonSource::SetPulse ( TH1 *  h_time)
inline

Sets time distribution from a TH1

void PhotonSource::SetRiseTime ( double  Trise)
inline

Sets rise of light pulse. Only for "exp2" option

void PhotonSource::SetShape ( string  Shape)
inline

Sets light spot shape. Options are "square","elliptic"

void PhotonSource::SetShape ( TH2 *  h_shape)
inline

Sets light spot shape from a TH2

void PhotonSource::SetTime ( double  T)
inline

Sets initial time of light pulse

void PhotonSource::SetTimeWidth ( double  Twidth)
inline

Sets duration of light pulse. For "gaus": sigma, "flat": width, "exp": time constant

void PhotonSource::SetXY ( double  X,
double  Y 
)
inline

Sets x,y position in mm of light spot center

void PhotonSource::SetXYWidth ( double  Xwidth,
double  Ywidth 
)
inline

Sets width of light spot in x,y in mm


The documentation for this class was generated from the following files: