54 produces<std::vector<cvn::GCNGraph>>();
66 std::vector<art::Ptr<recob::Hit>> hits;
75 std::unique_ptr<std::vector<cvn::GCNGraph>> graphs(
new std::vector<cvn::GCNGraph>(1));
89 if (wireid.
TPC%6 == 0 or wireid.
TPC%6 == 5)
continue;
90 unsigned int wire, plane;
93 wireid.
Plane, wireid.
TPC, wire, plane, time);
94 std::vector<float>
pos = {(
float)plane, (
float)wire, (
float)time};
95 std::vector<float> feats = {
hit->Integral(),
hit->RMS(), (
float)wireid.
Wire,
100 if (ides.size() == 0)
continue;
101 float trueID =
abs(std::max_element(ides.begin(), ides.end(), [](
const sim::TrackIDE &lhs,
103 std::vector<float> truth = {trueID};
106 graphs->at(0).AddNode(pos, feats, truth);
std::vector< sim::TrackIDE > HitToTrackIDEs(detinfo::DetectorClocksData const &clockData, recob::Hit const &hit) const
Handle< PROD > getHandle(SelectorBase const &) const
EDProducer(fhicl::ParameterSet const &pset)
WireID_t Wire
Index of the wire within its plane.
float energy
energy from the particle with this trackID [MeV]
Utility class for truth labels.
void configure(fhicl::ParameterSet const &p)
void GetDUNE10ktGlobalWireTDC(detinfo::DetectorPropertiesData const &detProp, unsigned int localWire, double localTDC, unsigned int plane, unsigned int tpc, unsigned int &globalWire, unsigned int &globalPlane, double &globalTDC) const
#define DEFINE_ART_MODULE(klass)
T get(std::string const &key) const
ProductID put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
PlaneID_t Plane
Index of the plane within its TPC.
void produce(art::Event &e) override
Detector simulation of raw signals on wires.
GCNHitGraphMaker(fhicl::ParameterSet const &p)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Declaration of signal hit object.
GCNHitGraphMaker & operator=(GCNHitGraphMaker const &)=delete
PixelMapProducer for CVN.
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
TPCID_t TPC
Index of the TPC within its cryostat.
Producer algorithm for PixelMap, input to CVN neural net.
Ionization energy from a Geant4 track.
std::string fHitModuleLabel