LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
FlashHypothesisAnaAlg.h
Go to the documentation of this file.
1 #ifndef FLASHHYPOTHESISANAALG_H
2 #define FLASHHYPOTHESISANAALG_H
3 
14 namespace fhicl {
15  class ParameterSet;
16 }
17 
18 namespace phot {
19  class PhotonVisibilityServce;
20 }
21 
22 namespace opdet {
23  class OpDigiProperties;
24 }
25 
29 
31 #include "FlashHypothesisCreator.h"
32 #include "SimPhotonCounterAlg.h"
33 
34 class TH1F;
35 class TTree;
36 
37 namespace geo {
38  class Geometry;
39 }
40 
41 namespace opdet {
42 
44 
45  public:
47 
49  : fCounterIndex(p.get<unsigned int>("SimPhotonCounterIndex", 0))
50  , fdEdx(p.get<float>("dEdx", 2.1))
51  , fXOffset(p.get<float>("HypothesisXOffset", 0.0))
52  , fSPCAlg(p.get<fhicl::ParameterSet>("SimPhotonCounterAlgParams"))
53  {}
54 
55  void SetOutputObjects(TTree*,
56  TH1F*,
57  TH1F*,
58  TH1F*,
59  TH1F*,
60  TH1F*,
61  TH1F*,
62  TH1F*,
63  TH1F*,
64  TH1F*,
65  geo::Geometry const&);
66 
67  void FillOpDetPositions(geo::Geometry const&);
68 
69  void RunComparison(const unsigned int run,
70  const unsigned int event,
71  std::vector<sim::MCTrack> const&,
72  std::vector<sim::SimPhotons> const&,
73  Providers_t providers,
74  opdet::OpDigiProperties const& opdigip,
76 
77  private:
78  unsigned int fCounterIndex;
79  float fdEdx;
80  float fXOffset;
81 
82  TTree* fTree;
83 
88 
89  std::vector<float> fOpDetPositions_Y;
90  std::vector<float> fOpDetPositions_Z;
91  };
92 
93 }
94 
95 #endif
std::vector< float > fOpDetPositions_Y
FlashHypothesisCreator fFHCreator
std::vector< float > fOpDetPositions_Z
FlashHypothesisAnaAlg(fhicl::ParameterSet const &p)
Simulation objects for optical detectors.
parameter set interface
The geometry of one entire detector, as served by art.
Definition: Geometry.h:181
Class def header for mctrack data container.
FlashHypothesisComparison fFHCompare
General LArSoft Utilities.
sim::MCTrackCollectionAnaAlg fMCTAlg
decltype(auto) get(T &&obj)
ADL-aware version of std::to_string.
Definition: StdUtils.h:120
Container for a list of pointers to providers.
Definition: ProviderPack.h:111
Namespace collecting geometry-related classes utilities.
Event finding and building.