![]() |
LArSoft
v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
|
Public Member Functions | |
SemanticDecoder (const fhicl::ParameterSet &pset) | |
Constructor. More... | |
virtual | ~SemanticDecoder () noexcept=default |
Virtual Destructor. More... | |
void | declareProducts (art::ProducesCollector &collector) override |
declareProducts function More... | |
void | writeEmptyToEvent (art::Event &e, const vector< vector< size_t >> &idsmap) override |
writeEmptyToEvent function More... | |
void | writeToEvent (art::Event &e, const vector< vector< size_t >> &idsmap, const vector< NuGraphOutput > &infer_output) override |
Decoder function. More... | |
void | printVector (const std::vector< float > &vec) |
template<typename T , size_t N> | |
void | softmax (std::array< T, N > &arr) |
void | setDebugAndPlanes (bool d, vector< std::string > &p) |
Protected Attributes | |
bool | debug |
vector< std::string > | planes |
std::string | instancename |
std::string | outputname |
Private Attributes | |
std::vector< std::string > | categories |
art::InputTag | hitInput |
Definition at line 10 of file SemanticDecoder_tool.cc.
SemanticDecoder::SemanticDecoder | ( | const fhicl::ParameterSet & | pset | ) |
Constructor.
pset |
Definition at line 57 of file SemanticDecoder_tool.cc.
References fhicl::ParameterSet::get(), and hitInput.
|
virtualdefaultnoexcept |
Virtual Destructor.
|
inlineoverridevirtual |
declareProducts function
art::ProducesCollector |
Implements DecoderToolBase.
Definition at line 30 of file SemanticDecoder_tool.cc.
References e, DecoderToolBase::instancename, art::ProducesCollector::produces(), lar::dump::vector(), writeEmptyToEvent(), and writeToEvent().
|
inlineinherited |
Definition at line 69 of file DecoderToolBase.h.
Referenced by FilterDecoder::writeToEvent(), and writeToEvent().
|
inlineinherited |
|
inlineinherited |
|
overridevirtual |
writeEmptyToEvent function
art::Event | event record |
Implements DecoderToolBase.
Definition at line 63 of file SemanticDecoder_tool.cc.
References categories, trkf::fill(), hitInput, DecoderToolBase::instancename, art::InputTag::label(), art::Event::put(), and util::size().
Referenced by declareProducts().
|
overridevirtual |
Decoder function.
art::Event | event record for decoder |
Implements DecoderToolBase.
Definition at line 79 of file SemanticDecoder_tool.cc.
References categories, DecoderToolBase::debug, DEFINE_ART_CLASS_TOOL, trkf::fill(), hitInput, DecoderToolBase::instancename, art::InputTag::label(), DecoderToolBase::outputname, DecoderToolBase::planes, DecoderToolBase::printVector(), art::Event::put(), util::size(), and DecoderToolBase::softmax().
Referenced by declareProducts().
|
private |
Definition at line 53 of file SemanticDecoder_tool.cc.
Referenced by writeEmptyToEvent(), and writeToEvent().
|
protectedinherited |
Definition at line 105 of file DecoderToolBase.h.
Referenced by VertexDecoder::writeToEvent(), FilterDecoder::writeToEvent(), and writeToEvent().
|
private |
Definition at line 54 of file SemanticDecoder_tool.cc.
Referenced by SemanticDecoder(), writeEmptyToEvent(), and writeToEvent().
|
protectedinherited |
Definition at line 107 of file DecoderToolBase.h.
Referenced by VertexDecoder::declareProducts(), FilterDecoder::declareProducts(), declareProducts(), VertexDecoder::writeEmptyToEvent(), FilterDecoder::writeEmptyToEvent(), writeEmptyToEvent(), VertexDecoder::writeToEvent(), FilterDecoder::writeToEvent(), and writeToEvent().
|
protectedinherited |
Definition at line 108 of file DecoderToolBase.h.
Referenced by FilterDecoder::writeToEvent(), and writeToEvent().
|
protectedinherited |
Definition at line 106 of file DecoderToolBase.h.
Referenced by FilterDecoder::writeToEvent(), and writeToEvent().