10 #include "art/Framework/Core/EDAnalyzer.h"
11 #include "art/Framework/Core/ModuleMacros.h"
12 #include "art/Framework/Principal/Event.h"
13 #include "art/Framework/Principal/Handle.h"
14 #include "fhiclcpp/ParameterSet.h"
16 #include "art_root_io/TFileService.h"
29 class FlashHypothesisAna;
47 void analyze(art::Event
const &
e)
override;
65 fMCTrackLabel(p.
get<
std::string>(
"MCTrackLabel")),
66 fMCSimPhotonsLabel(p.
get<
std::string>(
"MCSimPhotonsLabel")),
67 fAlg(p.
get<fhicl::ParameterSet>(
"FlashHypothesisAnaAlgParams"))
73 art::Handle< std::vector<sim::MCTrack> > mctrackHandle;
75 std::vector<sim::MCTrack>
const& mctrackVec(*mctrackHandle);
77 art::Handle< std::vector<sim::SimPhotons> > simPhotonsHandle;
79 std::vector<sim::SimPhotons>
const& simPhotonsVec(*simPhotonsHandle);
82 art::ServiceHandle<opdet::OpDigiProperties const> opdigiHandle;
83 art::ServiceHandle<phot::PhotonVisibilityService const> pvsHandle;
89 mctrackVec,simPhotonsVec,
90 lar::extractProviders<geo::Geometry, detinfo::LArPropertiesService>(),
97 art::ServiceHandle<geo::Geometry const> geoHandle;
100 art::ServiceHandle<art::TFileService const>
tfs;
103 tfs->make<TH1F>(), tfs->make<TH1F>(), tfs->make<TH1F>(),
104 tfs->make<TH1F>(), tfs->make<TH1F>(), tfs->make<TH1F>(),
105 tfs->make<TH1F>(), tfs->make<TH1F>(), tfs->make<TH1F>(),
Utilities to manage ProviderPack objects with art.
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
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)
void SetOutputObjects(TTree *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, geo::Geometry const &)
std::string fMCSimPhotonsLabel
FlashHypothesisAnaAlg fAlg
FlashHypothesisAna & operator=(FlashHypothesisAna const &)=delete
The geometry of one entire detector, as served by art.
FlashHypothesisAna(fhicl::ParameterSet const &p)
art::ServiceHandle< art::TFileService > tfs
std::string fMCTrackLabel
void FillOpDetPositions(geo::Geometry const &)
void analyze(art::Event const &e) override