20 #include "canvas/Persistency/Common/FindManyP.h" 50 produces< std::vector<anab::ParticleID> >();
51 produces< art::Assns<recob::Track, anab::ParticleID> >();
59 std::vector<art::Ptr<recob::Track> > tracklist;
66 std::unique_ptr< std::vector<anab::ParticleID> > particleidcol(
new std::vector<anab::ParticleID>);
69 if (fmcal.isValid()) {
71 for (
size_t trkIter = 0; trkIter < tracklist.size(); ++trkIter){
72 for (
size_t i = 0; i<fmcal.at(trkIter).size(); ++i){
73 calovec[0] = fmcal.at(trkIter)[i];
75 particleidcol->push_back(pidout);
std::string fCalorimetryModuleLabel
std::string fTrackModuleLabel
Chi2ParticleID(fhicl::ParameterSet const &p)
EDProducer(fhicl::ParameterSet const &pset)
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
#define DEFINE_ART_MODULE(klass)
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.
anab::ParticleID DoParticleID(const std::vector< art::Ptr< anab::Calorimetry >> &calo)
Provides recob::Track data product.
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
virtual void produce(art::Event &e)