47 produces<std::vector<anab::ParticleID>>();
48 produces<art::Assns<recob::Track, anab::ParticleID>>();
56 std::vector<art::Ptr<recob::Track>> tracklist;
63 std::unique_ptr<std::vector<anab::ParticleID>> particleidcol(
new std::vector<anab::ParticleID>);
64 std::unique_ptr<art::Assns<recob::Track, anab::ParticleID>> assn(
67 if (fmcal.isValid()) {
69 for (
size_t trkIter = 0; trkIter < tracklist.size(); ++trkIter) {
70 for (
size_t i = 0; i < fmcal.at(trkIter).size(); ++i) {
71 calovec[0] = fmcal.at(trkIter)[i];
73 particleidcol->push_back(pidout);
78 evt.
put(std::move(particleidcol));
79 evt.
put(std::move(assn));
std::string fCalorimetryModuleLabel
std::string fTrackModuleLabel
Chi2ParticleID(fhicl::ParameterSet const &p)
EDProducer(fhicl::ParameterSet const &pset)
PutHandle< PROD > put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
#define DEFINE_ART_MODULE(klass)
Provides recob::Track data product.
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.
anab::ParticleID DoParticleID(const std::vector< art::Ptr< anab::Calorimetry >> &calo)
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
Utility object to perform functions of association.
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
virtual void produce(art::Event &e)