75 produces<std::vector<recob::OpFlash>>();
76 produces<art::Assns<recob::OpFlash, recob::OpHit>>();
84 auto flashPtr = std::make_unique<std::vector<recob::OpFlash>>();
85 auto assnPtr = std::make_unique<art::Assns<recob::OpFlash, recob::OpHit>>();
89 std::vector<std::vector<int>> assocList;
91 auto const& geometry(*lar::providerFrom<geo::Geometry>());
93 auto const clock_data =
110 for (
size_t i = 0; i != assocList.size(); ++i) {
112 for (
size_t const hitIndex : assocList.at(i)) {
116 util::CreateAssn(*
this, evt, *flashPtr, opHitPtrVector, *(assnPtr.get()), i);
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)
art framework interface to geometry description
#define DEFINE_ART_MODULE(klass)
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
ProductID put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
bool CreateAssn(PRODUCER const &prod, art::Event &evt, std::vector< T > const &a, art::Ptr< U > const &b, art::Assns< U, T > &assn, std::string a_instance, size_t indx=UINT_MAX)
Creates a single one-to-one association.
void produce(art::Event &)
OpFlashFinder(const fhicl::ParameterSet &)