7 #ifndef GCN_FEATURE_UTILS_H 8 #define GCN_FEATURE_UTILS_H 18 #include "canvas/Persistency/Common/FindManyP.h" 24 class DetectorClocksData;
52 std::map<int,unsigned int> GetAllNeighbours(
art::Event const &evt,
const float rangeCut,
const std::string &spLabel)
const;
56 std::vector<std::map<int,unsigned int>> GetNeighboursForRadii(
art::Event const &evt,
const std::vector<float>& rangeCuts,
const std::string &spLabel)
const;
58 std::vector<std::map<int,unsigned int>> GetNeighboursForRadii(
art::Event const &evt,
const std::vector<float>& rangeCuts,
const std::map<
unsigned int,
art::Ptr<recob::SpacePoint>> &sps)
const;
61 std::map<int,int> GetNearestNeighbours(
art::Event const &evt,
const std::string &spLabel)
const;
65 std::map<int,std::pair<int,int>> GetTwoNearestNeighbours(
art::Event const &evt,
const std::string &spLabel)
const;
75 std::map<unsigned int, float> GetSpacePointChargeMap(
art::Event const &evt,
const std::string &spLabel)
const;
78 std::map<unsigned int, float> GetSpacePointMeanHitRMSMap(
art::Event const &evt,
const std::string &spLabel)
const;
85 art::Event const& evt,
const std::string &spLabel)
const;
87 std::map<unsigned int, int> GetTrueG4IDFromHits(
91 std::map<unsigned int, int> GetTrueG4IDFromHits(
93 art::Event const& evt,
const std::string &spLabel)
const;
96 std::map<unsigned int, int> GetTruePDG(
98 art::Event const& evt,
const std::string &spLabel,
bool useAbsoluteTrackID,
bool useHits)
const;
100 std::map<unsigned int, std::vector<float>> Get2DFeatures(
105 std::vector<cvn::GCNGraph> ExtractGraphsFromPixelMap(
const cvn::PixelMap &
pm,
const float chargeThreshold)
const;
107 std::map<unsigned int,unsigned int> Get2DGraphNeighbourMap(
const cvn::GCNGraph &
g,
const unsigned int npixel)
const;
114 std::vector<std::vector<float>>* dirTruth=
nullptr)
const;
116 std::map<unsigned int, unsigned int> GetParticleFlowMap(
const std::set<unsigned int>& particles)
const;
118 static std::vector<ptruth> GetParticleTree(
const cvn::GCNGraph* g);
128 #endif // GCN_FEATURE_UTILS_H Algorithm to compute various geometrical relation among geometrical objects. In particular functions ...
static constexpr double g
GCNGraph, basic input for the GCN.
Utility class for truth labels.
General LArSoft Utilities.
std::tuple< int, int, int, float, float, float, float, float, float, float, std::string, std::string > ptruth
Declaration of signal hit object.
Contains all timing reference information for the detector.
Class def header for a class GeoAlgo.
PixelMap, basic input to CVN neural net.
2D representation of charge deposited in the TDC/wire plane
geoalgo::GeoAlgo fGeoAlgo
Class containing some utility functions for all things CVN.