73 std::unique_ptr< std::vector< anab::CosmicTag > > cosmicTagTrackVector(
new std::vector<anab::CosmicTag> );
74 std::unique_ptr< art::Assns<recob::Track, anab::CosmicTag > > assnOutCosmicTagTrack(
new art::Assns<recob::Track, anab::CosmicTag>);
78 std::vector< std::vector<recob::Track> > trackVectors;
79 std::vector< art::Handle< std::vector<recob::Track> > > trackHandles;
81 art::Handle< std::vector<recob::Track> > trackHandle;
83 trackVectors.push_back(*trackHandle);
84 trackHandles.push_back(trackHandle);
87 art::ServiceHandle<geo::Geometry const> geoHandle;
92 for(
size_t i_tc=0; i_tc<cosmicTags.size(); ++i_tc){
96 util::CreateAssn(*
this,
e, *cosmicTagTrackVector, art::Ptr<recob::Track>(trackHandles[i_tc],i_t), *assnOutCosmicTagTrack );
100 e.put(std::move(cosmicTagTrackVector));
101 e.put(std::move(assnOutCosmicTagTrack));
std::vector< std::string > fTrackModuleLabels
std::vector< bool > fApplyTags
void ProcessTracks(std::vector< std::vector< recob::Track > > const &, geo::GeometryCore const &)
void SetRunEvent(unsigned int const &, unsigned int const &)
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.
trk::TrackContainmentAlg fAlg
std::vector< std::vector< anab::CosmicTag > > const & GetTrackCosmicTags()