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>
|
| using | Bucket_t = LayerSpBucket |
| | Abreviation of the Space point bucket type.
|
| using | Func_t = std::function<double(const Bucket_t&, size_t)> |
| | Lambda function type to extract the feature from a bucket.
|
|
| | NodeFeature (const std::string &featName, const Func_t &extractFunc) |
| | Standard constructor to build a feature.
|
| | NodeFeature (NodeFeature &&other)=default |
| | Standard move assignment & move constructor.
|
| const std::string & | name () const |
| | Returns the feature name.
|
| double | eval (const Bucket_t &bucket, size_t spIndex) const |
| | Extract the feature from a space point inside the bucket.
|
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.
◆ Bucket_t
Abreviation of the Space point bucket type.
Definition at line 19 of file NodeFeature.h.
◆ Func_t
Lambda function type to extract the feature from a bucket.
- : Bucket_t of interest
- : size_t Index of the space point to extract the bucket from
Definition at line 24 of file NodeFeature.h.
◆ NodeFeature() [1/2]
| MuonML::NodeFeature::NodeFeature |
( |
const std::string & | featName, |
|
|
const Func_t & | extractFunc ) |
|
inline |
Standard constructor to build a feature.
- Parameters
-
| featName | Name of the feature used to distinguish whether two feature lists are the same |
Definition at line 29 of file NodeFeature.h.
◆ NodeFeature() [2/2]
| MuonML::NodeFeature::NodeFeature |
( |
NodeFeature && | other | ) |
|
|
default |
Standard move assignment & move constructor.
◆ eval()
| double MuonML::NodeFeature::eval |
( |
const Bucket_t & | bucket, |
|
|
size_t | spIndex ) const |
|
inline |
Extract the feature from a space point inside the bucket.
- Parameters
-
| 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.
42 {
43 return m_func(bucket, spIndex);
44 }
◆ name()
| const std::string & MuonML::NodeFeature::name |
( |
| ) |
const |
|
inline |
◆ m_func
| Func_t MuonML::NodeFeature::m_func {[](const Bucket_t& , size_t) { return 0.; }} |
|
private |
Definition at line 47 of file NodeFeature.h.
47{[](
const Bucket_t& , size_t) {
return 0.; }};
LayerSpBucket Bucket_t
Abreviation of the Space point bucket type.
◆ m_name
| std::string MuonML::NodeFeature::m_name {} |
|
private |
The documentation for this class was generated from the following file: