FlashHypothesisAnaAlg.h
Go to the documentation of this file.
1 #ifndef FLASHHYPOTHESISANAALG_H
2 #define FLASHHYPOTHESISANAALG_H
3 
4 /*!
5  * Title: FlashHypothesisAnaAlg Class
6  * Author: Wes Ketchum (wketchum@lanl.gov)
7  *
8  * Description:
9  * Alg that compares the flash hypotheses with truth photons and stores the
10  * results in a TTree.
11  *
12 */
13 
14 #include "fhiclcpp/ParameterSet.h"
15 
19 
23 
24 #include "FlashHypothesisCreator.h"
25 #include "SimPhotonCounterAlg.h"
27 
28 class TH1F;
29 class TTree;
30 
31 namespace geo {
32  class Geometry;
33 }
34 
35 namespace opdet{
36 
38 
39  public:
40 
42 
44  fCounterIndex(p.get<unsigned int>("SimPhotonCounterIndex",0)),
45  fdEdx(p.get<float>("dEdx",2.1)),
46  fXOffset(p.get<float>("HypothesisXOffset",0.0)),
47  fSPCAlg(p.get<fhicl::ParameterSet>("SimPhotonCounterAlgParams")) {}
48 
49 
50  void SetOutputObjects(TTree*,
51  TH1F*,TH1F*,TH1F*,
52  TH1F*,TH1F*,TH1F*,
53  TH1F*,TH1F*,TH1F*,
54  geo::Geometry const&);
55 
56  void FillOpDetPositions(geo::Geometry const&);
57 
58  void RunComparison(const unsigned int run,
59  const unsigned int event,
60  std::vector<sim::MCTrack> const&,
61  std::vector<sim::SimPhotons> const&,
62  Providers_t providers,
63  opdet::OpDigiProperties const& opdigip,
65 
66 
67  private:
68 
69  unsigned int fCounterIndex;
70  float fdEdx;
71  float fXOffset;
72 
73  TTree* fTree;
74 
79 
80  std::vector<float> fOpDetPositions_Y;
81  std::vector<float> fOpDetPositions_Z;
82 
83  };
84 
85 }
86 
87 
88 #endif
std::vector< float > fOpDetPositions_Y
FlashHypothesisCreator fFHCreator
std::vector< float > fOpDetPositions_Z
FlashHypothesisAnaAlg(fhicl::ParameterSet const &p)
Simulation objects for optical detectors.
p
Definition: test.py:223
The geometry of one entire detector, as served by art.
Definition: Geometry.h:196
Class def header for mctrack data container.
FlashHypothesisComparison fFHCompare
sim::MCTrackCollectionAnaAlg fMCTAlg
Container for a list of pointers to providers.
Definition: ProviderPack.h:114
auto const & get(AssnsNode< L, R, D > const &r)
Definition: AssnsNode.h:115
LArSoft geometry interface.
Definition: ChannelGeo.h:16
Event finding and building.