![]() |
ATLAS Offline Software
|
The NodeFeature is the gluing instance to extract the information from the space point inside a MuonBucket and then to parse it to the ML inference framework. More...
#include <NodeFeature.h>
Public Types | |
using | Bucket_t = LayerSpBucket |
Abreviation of the Space point bucket type. More... | |
using | Func_t = std::function< double(const Bucket_t &, size_t)> |
Lambda function type to extract the feature from a bucket. More... | |
Public Member Functions | |
NodeFeature (const std::string &featName, const Func_t &extractFunc) | |
Standard constructor to build a feature. More... | |
NodeFeature (NodeFeature &&other)=default | |
Standard move assignment & move constructor. More... | |
const std::string & | name () const |
Returns the feature name. More... | |
double | eval (const Bucket_t &bucket, size_t spIndex) const |
Extract the feature from a space point inside the bucket. More... | |
Private Attributes | |
std::string | m_name {} |
Func_t | m_func {[](const Bucket_t& , size_t) { return 0.; }} |
The NodeFeature is the gluing instance to extract the information from the space point inside a MuonBucket and then to parse it to the ML inference framework.
Definition at line 16 of file NodeFeature.h.
Abreviation of the Space point bucket type.
Definition at line 19 of file NodeFeature.h.
using MuonML::NodeFeature::Func_t = std::function<double(const Bucket_t&, size_t)> |
Lambda function type to extract the feature from a bucket.
Definition at line 24 of file NodeFeature.h.
|
inline |
Standard constructor to build a feature.
featName | Name of the feature used to distinguish whether two feature lists are the same |
Definition at line 29 of file NodeFeature.h.
|
default |
Standard move assignment & move constructor.
Extract the feature from a space point inside the bucket.
bucket | Reference to the space point bucket of interest |
spIndex | Index of the space point to extract the feature from |
Definition at line 42 of file NodeFeature.h.
|
inline |
Definition at line 47 of file NodeFeature.h.
|
private |
Definition at line 46 of file NodeFeature.h.