12 #include "art_root_io/TFileService.h" 22 class TrackContainmentTagger;
61 throw cet::exception(
"TrackContainmentTagger::TrackContainmentTagger")
62 <<
"ApplyTags not same size as TrackModuleLabels. ABORT!!!";
66 produces< std::vector<anab::CosmicTag> >();
67 produces< art::Assns<recob::Track, anab::CosmicTag> >();
73 std::unique_ptr< std::vector< anab::CosmicTag > > cosmicTagTrackVector(
new std::vector<anab::CosmicTag> );
78 std::vector< std::vector<recob::Track> > trackVectors;
79 std::vector< art::Handle< std::vector<recob::Track> > > trackHandles;
83 trackVectors.push_back(*trackHandle);
84 trackHandles.push_back(trackHandle);
92 for(
size_t i_tc=0; i_tc<cosmicTags.size(); ++i_tc){
EventNumber_t event() const
void setMakeCosmicTags(bool flag=true)
std::vector< std::string > fTrackModuleLabels
EDProducer(fhicl::ParameterSet const &pset)
void SetupOutputTree(TTree *)
void produce(art::Event &e) override
std::vector< bool > fApplyTags
art framework interface to geometry description
void ProcessTracks(std::vector< std::vector< recob::Track > > const &, geo::GeometryCore const &)
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
#define DEFINE_ART_MODULE(klass)
TrackContainmentTagger(fhicl::ParameterSet const &p)
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.
void Configure(fhicl::ParameterSet const &)
void SetRunEvent(unsigned int const &, unsigned int const &)
TrackContainmentTagger & operator=(TrackContainmentTagger const &)=delete
trk::TrackContainmentAlg fAlg
std::vector< std::vector< anab::CosmicTag > > const & GetTrackCosmicTags()
cet::coded_exception< error, detail::translate > exception