10 #include "art/Framework/Core/EDFilter.h"
11 #include "art/Framework/Core/ModuleMacros.h"
12 #include "art/Framework/Principal/Event.h"
13 #include "art/Framework/Principal/Handle.h"
14 #include "art/Framework/Principal/Run.h"
15 #include "art/Framework/Principal/SubRun.h"
16 #include "canvas/Utilities/InputTag.h"
17 #include "fhiclcpp/ParameterSet.h"
18 #include "messagefacility/MessageLogger/MessageLogger.h"
33 bool filter(art::Event&
e)
override;
46 _flash_producer_v =
p.get<std::vector<std::string> >(
"OpFlashProducerList");
47 _time_start =
p.get<
double>(
"WindowStartTime");
48 _time_end =
p.get<
double>(
"WindowEndTime");
49 _pe_threshold =
p.get<
double>(
"FlashPEThreshold",-1);
50 assert(_time_end>_time_start);
59 art::Handle<std::vector<recob::OpFlash> > flash_handle;
60 e.getByLabel(producer, flash_handle);
61 if(!flash_handle.isValid()) {
62 std::cerr <<
"Invalid producer for truth recob::OpFlash: " << producer<< std::endl;
63 throw std::exception();
66 for(
auto const& flash : *flash_handle) {
std::vector< std::string > _flash_producer_v
BEGIN_PROLOG could also be cerr
bool filter(art::Event &e) override
FilterOpFlash(fhicl::ParameterSet const &p)
FilterOpFlash & operator=(FilterOpFlash const &)=delete