DigiPhoton Class Reference

#include <DigiPhoton.h>

Inheritance diagram for DigiPhoton:

ScintPhoton List of all members.

Public Member Functions

 DigiPhoton ()
 DigiPhoton (const DigiScintHit *hit, double wavelength, double t, double x, double y, double z, double u, double v, double w)
 DigiPhoton (const DigiScintHit *hit, double wavelength, double t, const TVector3 &pos, const TVector3 &dir)
const DigiScintHitParentHit () const
Double_t WaveLength () const
Double_t E () const
Double_t T () const
const TVector3 & GetPos () const
Double_t X () const
Double_t Y () const
Double_t Z () const
const TVector3 & GetDir () const
Double_t GetCosX () const
Double_t GetCosY () const
Double_t GetCosZ () const
Double_t U () const
Double_t V () const
Double_t W () const
Double_t DxDz () const
Double_t DyDz () const
void SetParentHit (const DigiScintHit *hit)
void SetWavelength (double l)
void SetTime (double t)
void SetPosition (const TVector3 &in)
void SetPosition (Double_t x, Double_t y, Double_t z)
void SetDirection (const TVector3 &in)
void SetDirection (Double_t u, Double_t v, Double_t w)
virtual void Print (Option_t *option="") const

Public Attributes

const DigiScintHitfHit
Double_t fWavelength
Double_t fT
TVector3 fPos
TVector3 fDir

Detailed Description

Definition at line 30 of file DigiPhoton.h.


Constructor & Destructor Documentation

DigiPhoton::DigiPhoton (  ) 

Definition at line 22 of file DigiPhoton.cxx.

00022                        :
00023   fHit(0),
00024   fWavelength(0),
00025   fT(0),
00026   fPos(0,0,0),
00027   fDir(0,0,0)
00028 { }

DigiPhoton::DigiPhoton ( const DigiScintHit hit,
double  wavelength,
double  t,
double  x,
double  y,
double  z,
double  u,
double  v,
double  w 
)

Definition at line 32 of file DigiPhoton.cxx.

00035                                                      :
00036   fHit(hit),
00037   fWavelength(wavelength),
00038   fT(t),
00039   fPos(x,y,z),
00040   fDir(u,v,w)
00041 { }

DigiPhoton::DigiPhoton ( const DigiScintHit hit,
double  wavelength,
double  t,
const TVector3 &  pos,
const TVector3 &  dir 
)

Definition at line 43 of file DigiPhoton.cxx.

00046                                              :
00047   fHit(hit),
00048   fWavelength(wavelength),
00049   fT(t),
00050   fPos(pos),
00051   fDir(dir)
00052 {
00053 }


Member Function Documentation

Double_t DigiPhoton::DxDz (  )  const [inline]

Definition at line 63 of file DigiPhoton.h.

References fDir.

00063 { return fDir.Z()>0?(fDir.X()/fDir.Z()):999.;}

Double_t DigiPhoton::DyDz (  )  const [inline]

Definition at line 64 of file DigiPhoton.h.

References fDir.

00064 { return fDir.Z()>0?(fDir.Y()/fDir.Z()):999.;}

Double_t DigiPhoton::E (  )  const [inline]

Definition at line 89 of file DigiPhoton.h.

References C, Munits::eV, and fWavelength.

00090 {
00091   // E = hc/lambda
00092   // H() in Js, C() in m/s, fWavelength in meters, convert J to energy standard..
00093   return  (TMath::H() * TMath::C() / fWavelength) * TMath::Qe() / Munits::eV;  
00094 }

Double_t DigiPhoton::GetCosX (  )  const [inline]

Definition at line 57 of file DigiPhoton.h.

References fDir.

Referenced by PhotonFullGreenTracker::GreenPhotonToPe(), PhotonDefaultModel::GreenPhotonToPe(), PhotonCompositeGreenTracker::GreenPhotonToPe(), and PhotonTransport::SimulateScintHit().

00057 { return fDir.X(); };

Double_t DigiPhoton::GetCosY (  )  const [inline]

Definition at line 58 of file DigiPhoton.h.

References fDir.

00058 { return fDir.Y(); };

Double_t DigiPhoton::GetCosZ (  )  const [inline]

Definition at line 59 of file DigiPhoton.h.

References fDir.

00059 { return fDir.Z(); };

const TVector3& DigiPhoton::GetDir (  )  const [inline]

Definition at line 56 of file DigiPhoton.h.

References fDir.

Referenced by PhotonFullFibreModel::FindBlueAbsorptionPosition(), and PhotonFullFibreModel::IsGreenTrapped().

00056 { return fDir; };

const TVector3& DigiPhoton::GetPos (  )  const [inline]

Definition at line 51 of file DigiPhoton.h.

References fPos.

Referenced by PhotonFullFibreModel::FindBlueAbsorptionPosition(), and PhotonFullFibreModel::IsGreenTrapped().

00051 { return fPos; };

const DigiScintHit* DigiPhoton::ParentHit (  )  const [inline]

Definition at line 45 of file DigiPhoton.h.

References fHit.

Referenced by PhotonDefaultModel::FibreHitToGreenPhoton(), PhotonFullGreenTracker::GreenPhotonToPe(), PhotonDefaultModel::GreenPhotonToPe(), PhotonCompositeGreenTracker::GreenPhotonToPe(), and PhotonFullFibreModel::MakeGreenPhoton().

00045 { return fHit; };

void DigiPhoton::Print ( Option_t *  option = ""  )  const [virtual]

Reimplemented in ScintPhoton.

Definition at line 56 of file DigiPhoton.cxx.

References Munits::nm, Munits::ns, T(), U(), V(), W(), WaveLength(), X(), Y(), and Z().

00057 {
00058   cout << "DigiPhoton: " 
00059        << WaveLength()/Munits::nm << "nm  " 
00060        << T()/Munits::ns << "ns  " 
00061        << "(" << X() << "," << Y() << "," << Z() << ") "
00062        << "<" << U() << "," << V() << "," << W() << "> " 
00063        << endl;
00064 }

void DigiPhoton::SetDirection ( Double_t  u,
Double_t  v,
Double_t  w 
) [inline]

Definition at line 73 of file DigiPhoton.h.

References fDir.

00073 { fDir.SetXYZ(u,v,w); };

void DigiPhoton::SetDirection ( const TVector3 &  in  )  [inline]

Definition at line 72 of file DigiPhoton.h.

References fDir.

00072 { fDir = in; fDir.SetMag(1.0); };

void DigiPhoton::SetParentHit ( const DigiScintHit hit  )  [inline]

Definition at line 67 of file DigiPhoton.h.

References fHit.

Referenced by ScintPhoton::Reset().

00067 { fHit = hit; };

void DigiPhoton::SetPosition ( Double_t  x,
Double_t  y,
Double_t  z 
) [inline]

Definition at line 71 of file DigiPhoton.h.

References fPos.

00071 { fPos.SetXYZ(x,y,z); };

void DigiPhoton::SetPosition ( const TVector3 &  in  )  [inline]

Definition at line 70 of file DigiPhoton.h.

References fPos.

00070 { fPos = in; };

void DigiPhoton::SetTime ( double  t  )  [inline]

Definition at line 69 of file DigiPhoton.h.

References fT.

00069 { fT = t; };

void DigiPhoton::SetWavelength ( double  l  )  [inline]

Definition at line 68 of file DigiPhoton.h.

References fWavelength.

Referenced by PhotonFullBlueTracker::ScintPhotonToFibreHit().

00068 { fWavelength = l; };

Double_t DigiPhoton::T (  )  const [inline]

Definition at line 49 of file DigiPhoton.h.

References fT.

Referenced by PhotonDefaultModel::FibreHitToGreenPhoton(), PhotonFullGreenTracker::GreenPhotonToPe(), PhotonDefaultModel::GreenPhotonToPe(), PhotonCompositeGreenTracker::GreenPhotonToPe(), PhotonFullFibreModel::MakeGreenPhoton(), Print(), and PhotonTransport::SimulateScintHit().

00049 { return fT;   }

Double_t DigiPhoton::U (  )  const [inline]

Definition at line 60 of file DigiPhoton.h.

References fDir.

Referenced by Print().

00060 { return fDir.X(); };

Double_t DigiPhoton::V (  )  const [inline]

Definition at line 61 of file DigiPhoton.h.

References fDir.

Referenced by Print().

00061 { return fDir.Y(); };

Double_t DigiPhoton::W (  )  const [inline]

Definition at line 62 of file DigiPhoton.h.

References fDir.

Referenced by Print().

00062 { return fDir.Z(); };

Double_t DigiPhoton::WaveLength (  )  const [inline]

Definition at line 47 of file DigiPhoton.h.

References fWavelength.

Referenced by PhotonFullFibreModel::FindBlueAbsorptionPosition(), PhotonFullGreenTracker::GreenPhotonToPe(), and Print().

00047 { return fWavelength; };

Double_t DigiPhoton::X (  )  const [inline]

Definition at line 52 of file DigiPhoton.h.

References fPos.

Referenced by PhotonDefaultModel::FibreHitToGreenPhoton(), PhotonFullGreenTracker::GreenPhotonToPe(), PhotonDefaultModel::GreenPhotonToPe(), PhotonCompositeGreenTracker::GreenPhotonToPe(), ScintPhoton::Print(), Print(), PhotonFullBlueTracker::ScintPhotonToFibreHit(), PhotonDefaultModel::ScintPhotonToFibreHit(), and PhotonTransport::SimulateScintHit().

00052 { return fPos.X();   }

Double_t DigiPhoton::Y (  )  const [inline]

Definition at line 53 of file DigiPhoton.h.

References fPos.

Referenced by ScintPhoton::InteractAtSurface(), ScintPhoton::Print(), and Print().

00053 { return fPos.Y();   }

Double_t DigiPhoton::Z (  )  const [inline]

Definition at line 54 of file DigiPhoton.h.

References fPos.

Referenced by ScintPhoton::InteractAtSurface(), ScintPhoton::Print(), and Print().

00054 { return fPos.Z();   }


Member Data Documentation

TVector3 DigiPhoton::fDir

Definition at line 83 of file DigiPhoton.h.

Referenced by ScintPhoton::DistanceToFibre(), ScintPhoton::DistanceToSurfaceI(), ScintPhoton::DistanceToSurfaceII(), ScintPhoton::DistanceToSurfaceIII(), ScintPhoton::DistanceToSurfaceIV(), ScintPhoton::DistanceToSurfaceV(), ScintPhoton::DistanceToSurfaceVI(), DxDz(), DyDz(), ScintPhoton::FindReflectedDirection(), GetCosX(), GetCosY(), GetCosZ(), GetDir(), ScintPhoton::InteractAtSurface(), ScintPhoton::Move(), ScintPhoton::Print(), ScintPhoton::Reset(), SetDirection(), U(), V(), and W().

const DigiScintHit* DigiPhoton::fHit

Definition at line 78 of file DigiPhoton.h.

Referenced by ParentHit(), and SetParentHit().

TVector3 DigiPhoton::fPos

Definition at line 82 of file DigiPhoton.h.

Referenced by ScintPhoton::DistanceToFibre(), ScintPhoton::DistanceToSurfaceI(), ScintPhoton::DistanceToSurfaceII(), ScintPhoton::DistanceToSurfaceIII(), ScintPhoton::DistanceToSurfaceIV(), ScintPhoton::DistanceToSurfaceV(), ScintPhoton::DistanceToSurfaceVI(), GetPos(), ScintPhoton::Move(), ScintPhoton::Reset(), SetPosition(), X(), Y(), and Z().

Double_t DigiPhoton::fT

Definition at line 81 of file DigiPhoton.h.

Referenced by ScintPhoton::Move(), ScintPhoton::Reset(), SetTime(), and T().

Double_t DigiPhoton::fWavelength

Definition at line 80 of file DigiPhoton.h.

Referenced by E(), SetWavelength(), and WaveLength().


The documentation for this class was generated from the following files:
Generated on Wed Dec 10 22:49:29 2014 for loon by  doxygen 1.4.7