1 #ifndef SIMPHOTONCOUNTER_H 2 #define SIMPHOTONCOUNTER_H 42 const std::vector<float>& eV);
46 _photonVector_prompt.resize(s);
47 _photonVector_late.resize(s);
52 void SetWavelengthRanges(
float min_w,
float max_w);
57 void SetTimeRanges(
float t_p1,
float t_p2,
float t_l1,
float t_l2);
64 void SetQE(
size_t i,
float e) { _qeVector.at(i) =
e; }
65 float QE(
size_t i)
const {
return _qeVector.at(i); }
69 SetVectorSize(eV.size());
72 std::vector<float>
const&
QEVector()
const {
return _qeVector; }
83 std::vector<float> TotalPhotonVector()
const;
86 return (PromptPhotonVector(i) + LatePhotonVector(i));
91 return std::accumulate(_photonVector_prompt.begin(), _photonVector_prompt.end(), 0.0);
95 return std::accumulate(_photonVector_late.begin(), _photonVector_late.end(), 0.0);
97 float PhotonTotal()
const {
return (PromptPhotonTotal() + LatePhotonTotal()); }
void SetQEVector(const std::vector< float > &eV)
float MinPromptTime() const
float MinLateTime() const
void SetVectorSize(size_t s)
All information of a photon entering the sensitive optical detector volume.
std::vector< float > _photonVector_prompt
const std::vector< float > & PromptPhotonVector() const
float MinWavelength() const
float MaxWavelength() const
float MaxPromptTime() const
void Print(G4Element &ele)
float MaxLateTime() const
void SetQE(size_t i, float e)
Collection of photons which recorded on one channel.
const std::vector< float > & LatePhotonVector() const
float TotalPhotonVector(size_t i) const
float LatePhotonVector(size_t i) const
float PhotonTotal() const
std::vector< float > _qeVector
float PromptPhotonTotal() const
std::vector< float > _photonVector_late
std::vector< float > const & QEVector() const
size_t GetVectorSize() const
float LatePhotonTotal() const
float PromptPhotonVector(size_t i) const