#include <SimPhotonCounterAlg.h>
Definition at line 21 of file SimPhotonCounterAlg.h.
Title: SimPhotonCounterALG Class Author: Wes Ketchum (wketc.nosp@m.hum@.nosp@m.lanl..nosp@m.gov)
Description: Alg class that counts up sim photons, leading towards comparisons with flashes and flash hypotheses.
Definition at line 14 of file SimPhotonCounterAlg.cxx.
16 FillAllRanges(
p.get< std::vector<fhicl::ParameterSet> >(
"SimPhotonCounterParams") );
void FillAllRanges(std::vector< fhicl::ParameterSet > const &)
Definition at line 67 of file SimPhotonCounterAlg.cxx.
69 if(ph_col.size() !=
fCounters.at(0).GetVectorSize())
70 throw std::runtime_error(
"ERROR in SimPhotonCounterAlg: Photon collection size and OpDet size not equal.");
72 for(
auto const& photons : ph_col)
74 counter.AddSimPhotons(photons.second);
std::vector< SimPhotonCounter > fCounters
Definition at line 77 of file SimPhotonCounterAlg.cxx.
79 for(
auto const& photons : spv)
std::vector< SimPhotonCounter > fCounters
void opdet::SimPhotonCounterAlg::ClearCounters |
( |
| ) |
|
Definition at line 19 of file SimPhotonCounterAlg.cxx.
27 for(
auto const&
p : pv)
void FillRanges(fhicl::ParameterSet const &)
std::vector< std::vector< float > > fTimeRanges
std::vector< std::vector< float > > fWavelengthRanges
Definition at line 31 of file SimPhotonCounterAlg.cxx.
33 std::vector<float> time_range(4);
34 time_range[0] =
p.get<
float>(
"MinPromptTime");
35 time_range[1] =
p.get<
float>(
"MaxPromptTime");
36 time_range[2] =
p.get<
float>(
"MinLateTime");
37 time_range[3] =
p.get<
float>(
"MaxLateTime");
39 if( time_range[0]>time_range[1] || time_range[2]>time_range[3] || time_range[1]>time_range[2] )
40 throw std::runtime_error(
"ERROR in SimPhotonCounterAlg: Bad time range.");
44 std::vector<float> wavelength_range(2);
45 wavelength_range[0] =
p.get<
float>(
"MinWavelength");
46 wavelength_range[1] =
p.get<
float>(
"MaxWavelength");
48 if(wavelength_range[0] >= wavelength_range[1])
49 throw std::runtime_error(
"ERROR in SimPhotonCounterAlg: Bad wavelength range.");
std::vector< std::vector< float > > fTimeRanges
std::vector< std::vector< float > > fWavelengthRanges
Definition at line 55 of file SimPhotonCounterAlg.cxx.
64 std::vector<float>(odresponse->
NOpChannels(),opdigip.QE()));
std::vector< SimPhotonCounter > fCounters
std::vector< std::vector< float > > fTimeRanges
virtual int NOpChannels() const
std::vector< std::vector< float > > fWavelengthRanges
std::vector< float > const & opdet::SimPhotonCounterAlg::LatePhotonVector |
( |
size_t |
i | ) |
|
std::vector< float > const & opdet::SimPhotonCounterAlg::PromptPhotonVector |
( |
size_t |
i | ) |
|
The documentation for this class was generated from the following files: