77 produces<std::vector<recob::OpFlash>>();
78 produces<art::Assns<recob::OpFlash, recob::OpHit>>();
85 auto flashPtr = std::make_unique<std::vector<recob::OpFlash>>();
86 auto assnPtr = std::make_unique<art::Assns<recob::OpFlash, recob::OpHit>>();
90 std::vector<std::vector<int>> assocList;
92 auto const& geometry(*lar::providerFrom<geo::Geometry>());
94 auto const clock_data =
111 for (
size_t i = 0; i != assocList.size(); ++i) {
113 for (
size_t const hitIndex : assocList.at(i)) {
120 evt.
put(std::move(flashPtr));
121 evt.
put(std::move(assnPtr));
Utilities related to art service access.
void RunFlashFinder(std::vector< recob::OpHit > const &HitVector, std::vector< recob::OpFlash > &FlashVector, std::vector< std::vector< int >> &AssocList, double const BinWidth, geo::GeometryCore const &geom, float const FlashThreshold, float const WidthTolerance, detinfo::DetectorClocksData const &ClocksData, float const TrigCoinc)
EDProducer(fhicl::ParameterSet const &pset)
void emplace_back(Args &&...args)
PutHandle< PROD > put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
#define DEFINE_ART_MODULE(klass)
bool CreateAssn(art::Event &evt, std::vector< T > const &a, art::Ptr< U > const &b, art::Assns< U, T > &assn, std::string a_instance, size_t index=UINT_MAX)
Creates a single one-to-one association.
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
Utility object to perform functions of association.
void produce(art::Event &)
OpFlashFinder(const fhicl::ParameterSet &)
art framework interface to geometry description