17 #include "art_root_io/TFileService.h" 44 produces<std::vector<anab::MVAPIDResult>>();
45 produces<art::Assns<recob::Track, anab::MVAPIDResult, void>>();
46 produces<art::Assns<recob::Shower, anab::MVAPIDResult, void>>();
47 fResult =
new std::vector<anab::MVAPIDResult>;
55 tfs->make<TTree>(
"MVAPID",
"Results");
67 std::unique_ptr<std::vector<anab::MVAPIDResult>> result(
new std::vector<anab::MVAPIDResult>);
68 std::unique_ptr<art::Assns<recob::Track, anab::MVAPIDResult>> trackAssns(
70 std::unique_ptr<art::Assns<recob::Shower, anab::MVAPIDResult>> showerAssns(
75 fAlg.
RunPID(evt, *result, *trackAssns, *showerAssns);
78 evt.
put(std::move(result));
79 evt.
put(std::move(trackAssns));
80 evt.
put(std::move(showerAssns));
MVAPID(fhicl::ParameterSet const &pset)
EDProducer(fhicl::ParameterSet const &pset)
void RunPID(art::Event &evt, std::vector< anab::MVAPIDResult > &result, art::Assns< recob::Track, anab::MVAPIDResult, void > &trackAssns, art::Assns< recob::Shower, anab::MVAPIDResult, void > &showerAssns)
PutHandle< PROD > put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
#define DEFINE_ART_MODULE(klass)
Provides recob::Track data product.
EventNumber_t event() const
void produce(art::Event &evt)
std::vector< anab::MVAPIDResult > * fResult
SubRunNumber_t subRun() const