15 #include "art_root_io/TFileDirectory.h" 16 #include "art_root_io/TFileService.h" 85 std::vector< art::Ptr< recob::Hit > > hitlist;
89 unsigned short nhits = hitlist.size();
92 std::unique_ptr< std::vector<cvn::SparsePixelMap> >
93 pmCol(
new std::vector<cvn::SparsePixelMap>);
99 mf::LogInfo(
"CVNSparseMapper") <<
"Created sparse pixel map with " 102 pmCol->push_back(map);
unsigned short fMinClusterHits
Minimum number of hits for cluster to be converted to pixel map.
Handle< PROD > getHandle(SelectorBase const &) const
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
EDProducer(fhicl::ParameterSet const &pset)
Utility class for truth labels.
void produce(art::Event &evt)
CVNSparseMapper(fhicl::ParameterSet const &pset)
#define DEFINE_ART_MODULE(klass)
std::vector< unsigned int > GetNPixels() const
std::string fClusterPMLabel
Instance label for cluster pixelmaps.
ProductID put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
PixelMapProducer fProducer
PixelMapProducer does the heavy lifting.
Declaration of signal hit object.
SparsePixelMap CreateSparseMap2D(detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, std::vector< art::Ptr< recob::Hit > > &cluster, bool usePixelTruth=false)
std::string fHitsModuleLabel
Module label for input clusters.
PixelMapProducer for CVN.
Sparse pixel map for CVN.
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
Producer algorithm for PixelMap, input to CVN neural net.
bool fIncludePixelTruth
Whether to include per-pixel ground truth for segmentation.