All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 namespace fhicl { class ParameterSet; }
15 
16 namespace phot { class PhotonVisibilityServce; }
17 
18 namespace opdet { class OpDigiProperties; }
19 
23 
24 #include "FlashHypothesisCreator.h"
25 #include "SimPhotonCounterAlg.h"
27 
28 class TH1F;
29 class TTree;
30 
31 namespace geo { class Geometry; }
32 
33 namespace opdet{
34 
36 
37  public:
38 
40 
41  FlashHypothesisAnaAlg(fhicl::ParameterSet const& p):
42  fCounterIndex(p.get<unsigned int>("SimPhotonCounterIndex",0)),
43  fdEdx(p.get<float>("dEdx",2.1)),
44  fXOffset(p.get<float>("HypothesisXOffset",0.0)),
45  fSPCAlg(p.get<fhicl::ParameterSet>("SimPhotonCounterAlgParams")) {}
46 
47 
48  void SetOutputObjects(TTree*,
49  TH1F*,TH1F*,TH1F*,
50  TH1F*,TH1F*,TH1F*,
51  TH1F*,TH1F*,TH1F*,
52  geo::Geometry const&);
53 
54  void FillOpDetPositions(geo::Geometry const&);
55 
56  void RunComparison(const unsigned int run,
57  const unsigned int event,
58  std::vector<sim::MCTrack> const&,
59  std::vector<sim::SimPhotons> const&,
60  Providers_t providers,
61  opdet::OpDigiProperties const& opdigip,
63 
64 
65  private:
66 
67  unsigned int fCounterIndex;
68  float fdEdx;
69  float fXOffset;
70 
71  TTree* fTree;
72 
77 
78  std::vector<float> fOpDetPositions_Y;
79  std::vector<float> fOpDetPositions_Z;
80 
81  };
82 
83 }
84 
85 
86 #endif
void RunComparison(const unsigned int run, const unsigned int event, std::vector< sim::MCTrack > const &, std::vector< sim::SimPhotons > const &, Providers_t providers, opdet::OpDigiProperties const &opdigip, phot::PhotonVisibilityService const &pvs)
pdgs p
Definition: selectors.fcl:22
std::vector< float > fOpDetPositions_Y
FlashHypothesisCreator fFHCreator
std::vector< float > fOpDetPositions_Z
FlashHypothesisAnaAlg(fhicl::ParameterSet const &p)
Simulation objects for optical detectors.
void SetOutputObjects(TTree *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, geo::Geometry const &)
FlashHypothesisCreator::Providers_t Providers_t
The geometry of one entire detector, as served by art.
Definition: Geometry.h:181
Class def header for mctrack data container.
FlashHypothesisComparison fFHCompare
sim::MCTrackCollectionAnaAlg fMCTAlg
Container for a list of pointers to providers.
Definition: ProviderPack.h:114
lar::ProviderPack< geo::GeometryCore, detinfo::LArProperties > Providers_t
Set of service providers used in the common(est) interface.
void FillOpDetPositions(geo::Geometry const &)