ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
lwtDev::InputSequenceNode Class Reference

#include <Graph.h>

Inheritance diagram for lwtDev::InputSequenceNode:
Collaboration diagram for lwtDev::InputSequenceNode:

Public Member Functions

 InputSequenceNode (size_t index, size_t n_outputs)
 
virtual MatrixXd scan (const ISource &) const override
 
virtual size_t n_outputs () const override
 

Private Attributes

size_t m_index
 
size_t m_n_outputs
 

Detailed Description

Definition at line 75 of file Graph.h.

Constructor & Destructor Documentation

◆ InputSequenceNode()

lwtDev::InputSequenceNode::InputSequenceNode ( size_t  index,
size_t  n_outputs 
)

Definition at line 130 of file Graph.cxx.

130  :
131  m_index(index),
133  {
134  }

Member Function Documentation

◆ n_outputs()

size_t lwtDev::InputSequenceNode::n_outputs ( ) const
overridevirtual

Implements lwtDev::ISequenceNode.

Definition at line 148 of file Graph.cxx.

148  {
149  return m_n_outputs;
150  }

◆ scan()

MatrixXd lwtDev::InputSequenceNode::scan ( const ISource source) const
overridevirtual

Implements lwtDev::ISequenceNode.

Definition at line 135 of file Graph.cxx.

135  {
136  MatrixXd output = source.matrix_at(m_index);
137  if (output.rows() == 0) {
138  throw NNEvaluationException("empty input sequence");
139  }
140  if (static_cast<size_t>(output.rows()) != m_n_outputs) {
141  std::string len = std::to_string(output.rows());
142  std::string found = std::to_string(m_n_outputs);
143  throw NNEvaluationException(
144  "Found vector of length " + len + ", expected " + found);
145  }
146  return output;
147  }

Member Data Documentation

◆ m_index

size_t lwtDev::InputSequenceNode::m_index
private

Definition at line 82 of file Graph.h.

◆ m_n_outputs

size_t lwtDev::InputSequenceNode::m_n_outputs
private

Definition at line 83 of file Graph.h.


The documentation for this class was generated from the following files:
index
Definition: index.py:1
lwtDev::InputSequenceNode::m_n_outputs
size_t m_n_outputs
Definition: Graph.h:83
lwtDev::InputSequenceNode::m_index
size_t m_index
Definition: Graph.h:82
merge.output
output
Definition: merge.py:17
lwtDev::InputSequenceNode::n_outputs
virtual size_t n_outputs() const override
Definition: Graph.cxx:148
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
lwtDev::NNEvaluationException
Definition: Reconstruction/tauRecTools/tauRecTools/lwtnn/Exceptions.h:27
CondAlgsOpts.found
int found
Definition: CondAlgsOpts.py:101
copySelective.source
string source
Definition: copySelective.py:32