10 #include <sys/types.h> 38 #ifndef PID_CHI2PARTICLEID_H 39 #define PID_CHI2PARTICLEID_H 68 produces< std::vector<anab::ParticleID> >();
69 produces< art::Assns<recob::Track, anab::ParticleID> >();
88 std::vector<art::Ptr<recob::Track> > tracklist;
95 std::unique_ptr< std::vector<anab::ParticleID> > particleidcol(
new std::vector<anab::ParticleID>);
98 if (fmcal.isValid()) {
99 for (
size_t trkIter = 0; trkIter < tracklist.size(); ++trkIter){
100 for (
size_t i = 0; i<fmcal.at(trkIter).size(); ++i){
103 particleidcol->push_back(pidout);
108 evt.
put(std::move(particleidcol));
109 evt.
put(std::move(assn));
std::string fCalorimetryModuleLabel
std::string fTrackModuleLabel
Chi2ParticleID(fhicl::ParameterSet const &p)
ProductID put(std::unique_ptr< PROD > &&product)
void reconfigure(fhicl::ParameterSet const &p)
#define DEFINE_ART_MODULE(klass)
void reconfigure(fhicl::ParameterSet const &pset)
T get(std::string const &key) const
virtual ~Chi2ParticleID()
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.
Provides recob::Track data product.
Utility object to perform functions of association.
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
virtual void produce(art::Event &e)
void DoParticleID(art::Ptr< anab::Calorimetry > calo, anab::ParticleID &pidOut)