ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonLearning
MuonInferenceInterfaces
MuonInferenceInterfaces
NodeFeatureList.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONINFERENCEINTERACES_GRAPHFEATURELIST_H
5
#define MUONINFERENCEINTERACES_GRAPHFEATURELIST_H
6
7
#include "
MuonInferenceInterfaces/NodeFeature.h
"
8
#include "
MuonInferenceInterfaces/NodeConnector.h
"
9
10
class
MsgStream;
11
12
namespace
MuonML
{
13
struct
GraphRawData
;
14
class
NodeFeatureList
{
15
public
:
16
17
using
Feature_t
= std::shared_ptr<const NodeFeature>;
18
using
Connector_t
= std::shared_ptr<const NodeConnector>;
19
20
using
Bucket_t
=
NodeFeature::Bucket_t
;
22
NodeFeatureList
() =
default
;
25
bool
operator==
(
const
NodeFeatureList
& other)
const
;
29
bool
isValid
()
const
;
31
size_t
numFeatures
()
const
;
33
std::vector<std::string>
featureNames
()
const
;
35
void
fillInData
(
const
Bucket_t
& bucket,
36
GraphRawData
& graphData)
const
;
41
bool
addFeature
(
const
std::string& featName, MsgStream&
msg
);
45
bool
addFeature
(
const
Feature_t
& featPtr, MsgStream&
msg
);
46
50
bool
setConnector
(
const
std::string& conName, MsgStream&
msg
);
52
void
setConnector
(
const
std::string& conName,
NodeConnector::Evaluator_t
evalFunc);
53
54
55
private
:
56
std::vector<Feature_t>
m_features
{};
57
Connector_t
m_connector
{};
58
59
};
60
}
61
62
63
#endif
NodeConnector.h
NodeFeature.h
MuonML::NodeConnector::Evaluator_t
std::function< bool(const Bucket_t &, size_t, size_t)> Evaluator_t
Function type to connect two space points in a bucket.
Definition
NodeConnector.h:25
MuonML::NodeFeatureList::operator==
bool operator==(const NodeFeatureList &other) const
Returns true if the features have pairwise the same name.
Definition
NodeFeatureList.cxx:24
MuonML::NodeFeatureList::m_connector
Connector_t m_connector
Definition
NodeFeatureList.h:57
MuonML::NodeFeatureList::Feature_t
std::shared_ptr< const NodeFeature > Feature_t
Definition
NodeFeatureList.h:17
MuonML::NodeFeatureList::numFeatures
size_t numFeatures() const
Returns the number of features in the list.
Definition
NodeFeatureList.cxx:38
MuonML::NodeFeatureList::setConnector
bool setConnector(const std::string &conName, MsgStream &msg)
Tries to set the graph connector based on the connector name.
Definition
NodeFeatureList.cxx:16
MuonML::NodeFeatureList::m_features
std::vector< Feature_t > m_features
Definition
NodeFeatureList.h:56
MuonML::NodeFeatureList::Bucket_t
NodeFeature::Bucket_t Bucket_t
Definition
NodeFeatureList.h:20
MuonML::NodeFeatureList::isValid
bool isValid() const
Returns whether the NodeFeatureList is complete, i.e.
Definition
NodeFeatureList.cxx:13
MuonML::NodeFeatureList::featureNames
std::vector< std::string > featureNames() const
Returns the name of the features in the list.
Definition
NodeFeatureList.cxx:43
MuonML::NodeFeatureList::Connector_t
std::shared_ptr< const NodeConnector > Connector_t
Definition
NodeFeatureList.h:18
MuonML::NodeFeatureList::NodeFeatureList
NodeFeatureList()=default
Empty standard constructor.
MuonML::NodeFeatureList::fillInData
void fillInData(const Bucket_t &bucket, GraphRawData &graphData) const
Definition
NodeFeatureList.cxx:73
MuonML::NodeFeatureList::addFeature
bool addFeature(const std::string &featName, MsgStream &msg)
Tries to add a new feature to the list using the predefined list of features in the GraphFeatureFacto...
Definition
NodeFeatureList.cxx:50
MuonML::NodeFeature::Bucket_t
LayerSpBucket Bucket_t
Abreviation of the Space point bucket type.
Definition
NodeFeature.h:19
MuonML
Definition
BucketGraphUtils.h:19
MuonML::GraphRawData
Helper struct to ship the Graph from the space point buckets to ONNX.
Definition
GraphData.h:25
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0