12 #ifndef OpFlashFinder_H 13 #define OpFlashFinder_H 1 85 produces< std::vector< recob::OpFlash > >();
86 produces< art::Assns< recob::OpFlash, recob::OpHit > >();
125 std::unique_ptr< std::vector< recob::OpFlash > >
126 flashPtr(
new std::vector< recob::OpFlash >);
127 std::unique_ptr< art::Assns< recob::OpFlash, recob::OpHit > >
132 std::vector< std::vector< int > > assocList;
134 auto const& geometry(*lar::providerFrom< geo::Geometry >());
136 auto const& detectorClocks
137 (*lar::providerFrom< detinfo::DetectorClocksService >());
154 for (
size_t i = 0; i != assocList.size(); ++i)
157 for (
int const& hitIndex : assocList.at(i))
164 *(assnPtr.get()), i);
168 evt.
put(std::move(flashPtr));
169 evt.
put(std::move(assnPtr));
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::DetectorClocks const &ts, float const &TrigCoinc)
ProductID put(std::unique_ptr< PROD > &&product)
#define DEFINE_ART_MODULE(klass)
void push_back(Ptr< U > const &p)
T get(std::string const &key) const
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.
Utility object to perform functions of association.
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
void produce(art::Event &)
OpFlashFinder(const fhicl::ParameterSet &)
art framework interface to geometry description
void reconfigure(fhicl::ParameterSet const &pset)