Struct Acts::TrackSelector::EtaBinnedConfig
-
struct EtaBinnedConfig
Main config object for the track selector.
Combines a set of cut configurations and corresponding eta bins
Public Functions
-
inline EtaBinnedConfig()
Construct an empty (accepts everything) configuration.
Results in a single cut set and one abs eta bin from 0 to infinity.
-
inline EtaBinnedConfig(Config cutSet)
Auto-converting constructor from a single cut configuration.
Results in a single absolute eta bin from 0 to infinity.
-
inline EtaBinnedConfig(double etaMin)
Constructor to create a config object that is not upper-bounded.
This is useful to use the “fluent” API to populate the configuration.
- Parameters
etaMin – Minimum eta bin edge
-
inline EtaBinnedConfig(std::vector<double> absEtaEdgesIn)
Constructor from a vector of eta bin edges.
This automatically initializes all the cuts to be the same for all eta and be essentially no-op.
- Parameters
absEtaEdgesIn – is the vector of eta bin edges
-
inline EtaBinnedConfig &addCuts(const std::function<void(Config&)> &callback = {})
Add a new eta bin with an upper bound of +infinity.
- Parameters
callback – Callback to configure the cuts for this eta bin
- Returns
Reference to this object
-
inline EtaBinnedConfig &addCuts(double etaMax, const std::function<void(Config&)> &callback = {})
Add a new eta bin with the given upper bound.
- Parameters
etaMax – Upper bound of the new eta bin
callback – Callback to configure the cuts for this eta bin
- Returns
Reference to this object
-
inline std::size_t binIndex(double eta) const
Get the index of the eta bin for a given eta.
- Parameters
eta – Eta value
- Returns
Index of the eta bin
-
inline const Config &getCuts(double eta) const
Get the cuts for a given eta.
- Parameters
eta – Eta value
- Returns
Cuts for the given eta
-
inline std::size_t nEtaBins() const
Get the number of eta bins.
- Returns
Number of eta bins
Public Members
-
std::vector<double> absEtaEdges = {}
Eta bin edges for varying cuts by eta.
-
std::vector<Config> cutSets = {}
Cut sets for each eta bin.
Friends
-
friend std::ostream &operator<<(std::ostream &os, const EtaBinnedConfig &cfg)
Print this configuration to an output stream.
- Parameters
os – Output stream
cfg – Configuration to print
- Returns
Reference to the output stream
-
inline EtaBinnedConfig()