All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SimPhotonCounterAlg.h
Go to the documentation of this file.
1 #ifndef SIMPHOTONCOUNTERALG_H
2 #define SIMPHOTONCOUNTERALG_H
3 
4 /*!
5  * Title: SimPhotonCounterALG Class
6  * Author: Wes Ketchum (wketchum@lanl.gov)
7  *
8  * Description: Alg class that counts up sim photons, leading towards
9  * comparisons with flashes and flash hypotheses.
10 */
11 
12 #include "SimPhotonCounter.h"
13 
14 #include "fhiclcpp/ParameterSet.h"
15 
17 
18 namespace geo { class GeometryCore; }
19 namespace opdet { class OpDigiProperties; }
20 
21 #include <vector>
22 
23 namespace opdet{
24 
26 
27  public:
28  SimPhotonCounterAlg(fhicl::ParameterSet const&);
29 
32 
34  void AddSimPhotonsVector(std::vector<sim::SimPhotons> const&);
35 
36  void ClearCounters();
37 
39  std::vector<float> const& PromptPhotonVector(size_t);
40  std::vector<float> const& LatePhotonVector(size_t);
41 
42  private:
43 
44  std::vector< std::vector<float> > fWavelengthRanges;
45  std::vector< std::vector<float> > fTimeRanges;
46  std::vector<SimPhotonCounter> fCounters;
47 
48  void FillAllRanges(std::vector<fhicl::ParameterSet> const&);
49  void FillRanges(fhicl::ParameterSet const&);
50 
51  };
52 
53 }
54 
55 
56 #endif
void InitializeCounters(geo::GeometryCore const &, opdet::OpDigiProperties const &)
std::vector< float > const & LatePhotonVector(size_t)
void FillRanges(fhicl::ParameterSet const &)
SimPhotonCounter const & GetSimPhotonCounter(size_t)
void FillAllRanges(std::vector< fhicl::ParameterSet > const &)
void AddSimPhotonsVector(std::vector< sim::SimPhotons > const &)
std::vector< SimPhotonCounter > fCounters
Simulation objects for optical detectors.
std::vector< std::vector< float > > fTimeRanges
SimPhotonCounterAlg(fhicl::ParameterSet const &)
Description of geometry of one entire detector.
std::vector< float > const & PromptPhotonVector(size_t)
std::vector< std::vector< float > > fWavelengthRanges
void AddSimPhotonCollection(sim::SimPhotonsCollection const &)
Collection of sim::SimPhotons, indexed by channel number.
Definition: SimPhotons.h:192