22 #include "art_root_io/TFileService.h" 61 _treeHit = tfs->make<TTree>(
"NuGraphHitOutput",
"NuGraphHitOutput");
75 _treeEvt = tfs->make<TTree>(
"NuGraphEventOutput",
"NuGraphEventOutput");
89 auto const& hitsWithScores = proxy::getCollection<std::vector<recob::Hit>>(
91 GNNDescription->dataTag(),
92 proxy::withParallelData<anab::FeatureVector<1>>(
art::InputTag(
"NuGraph",
"filter")),
95 std::cout << hitsWithScores.
size() << std::endl;
96 for (
auto& h : hitsWithScores) {
104 _MIP = assocSemantic.
at(GNNDescription->getIndex(
"MIP"));
105 _HIP = assocSemantic.
at(GNNDescription->getIndex(
"HIP"));
106 _shower = assocSemantic.
at(GNNDescription->getIndex(
"shower"));
107 _michel = assocSemantic.
at(GNNDescription->getIndex(
"michel"));
108 _diffuse = assocSemantic.
at(GNNDescription->getIndex(
"diffuse"));
112 auto PredVertexColl = e.getHandle<std::vector<recob::Vertex>>(
art::InputTag(
"NuGraph",
"vertex"));
113 if (PredVertexColl.isValid() && PredVertexColl->size() > 0) {
114 _vtx_x = PredVertexColl->at(0).position().X();
115 _vtx_y = PredVertexColl->at(0).position().Y();
116 _vtx_z = PredVertexColl->at(0).position().Z();
NuGraphAnalyzer(fhicl::ParameterSet const &p)
Declaration of signal hit object.
Base utilities for the implementation of data product facades.
EDAnalyzer(fhicl::ParameterSet const &pset)
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
auto withParallelData(Args &&...args)
Helper function to merge an auxiliary data product into the proxy.
#define DEFINE_ART_MODULE(klass)
void analyze(art::Event const &e) override
Handle< PROD > getHandle(SelectorBase const &) const
float at(size_t index) const
NuGraphAnalyzer & operator=(NuGraphAnalyzer const &)=delete