1 #ifndef __GLG4HitPhoton_hh__
2 #define __GLG4HitPhoton_hh__
34 void SetPMTID(
int id) { fPMTID = id; }
35 void SetTime(
double t) { fTime = t; }
36 void SetCreationTime(
double t) { fCreationTime = t; }
39 void SetPosition(
double x,
double y,
double z);
40 void SetMomentum(
double x,
double y,
double z);
41 void SetPolarization(
double x,
double y,
double z);
42 void SetCount(
int count) { fCount = count; }
43 void AddCount(
int dcount) { fCount += dcount; }
44 void SetTrackID(
int trackID) { fTrackID = trackID; }
45 void SetCreatorProcess(std::string process) { fCreatorProcess = process; }
46 void SetPrepulse(
bool prepulse) { fPrepulse = prepulse; }
48 int GetPMTID()
const {
return fPMTID; }
49 double GetTime()
const {
return fTime; }
50 double GetCreationTime()
const {
return fCreationTime; }
51 double GetKineticEnergy()
const;
52 double GetWavelength()
const;
54 inline void GetPosition(T &x, T &y, T &z)
const;
56 inline void GetMomentum(T &x, T &y, T &z)
const;
58 inline void GetPolarization(T &x, T &y, T &z)
const;
59 int GetCount()
const {
return fCount; }
60 int GetTrackID()
const {
return fTrackID; }
61 std::string GetCreatorProcess()
const {
return fCreatorProcess; }
62 bool GetPrepulse()
const {
return fPrepulse; }
64 void Print(std::ostream &)
const;
73 double fPolarization[3];
76 std::string fCreatorProcess;
84 inline void GLG4HitPhoton::GetPosition(T &x, T &y, T &z)
const {
91 inline void GLG4HitPhoton::GetMomentum(T &x, T &y, T &z)
const {
98 inline void GLG4HitPhoton::GetPolarization(T &x, T &y, T &z)
const {
100 y = fPolarization[1];
101 z = fPolarization[2];
107 return a->GetTime() < b->GetTime();
bool Compare_HitPhotonPtr_TimeAscending(const GLG4HitPhoton *a, const GLG4HitPhoton *b)
Definition: GLG4HitPhoton.hh:106
Definition: GLG4HitPhoton.hh:30
void SetWavelength(double wl)
set wavelength and kinetic energy of photon
Definition: GLG4HitPhoton.cc:18
void SetKineticEnergy(double KE)
set kinetic energy and wavelength of photon.
Definition: GLG4HitPhoton.cc:15