|
ACTS
Experiment-independent tracking
|
Main config object for the track selector. More...
#include <Acts/TrackFinding/TrackSelector.hpp>
Public Member Functions | |
| EtaBinnedConfig () | |
| Construct an empty (accepts everything) configuration. | |
| EtaBinnedConfig (Config cutSet) | |
| Auto-converting constructor from a single cut configuration. | |
| EtaBinnedConfig (double etaMin) | |
| Constructor to create a config object that is not upper-bounded. | |
| EtaBinnedConfig (std::vector< double > absEtaEdgesIn) | |
| Constructor from a vector of eta bin edges. | |
| EtaBinnedConfig & | addCuts (const std::function< void(Config &)> &callback={}) |
| Add a new eta bin with an upper bound of +infinity. | |
| EtaBinnedConfig & | addCuts (double etaMax, const std::function< void(Config &)> &callback={}) |
| Add a new eta bin with the given upper bound. | |
| std::size_t | binIndex (double eta) const |
| Get the index of the eta bin for a given eta. | |
| std::size_t | binIndexNoCheck (double eta) const |
| Get the index of the eta bin for a given eta. | |
| const Config & | getCuts (double eta) const |
| Get the cuts for a given eta. | |
| bool | hasCuts (double eta) const |
| Check if the configuration has a bin for a given eta. | |
| std::size_t | nEtaBins () const |
| Get the number of eta bins. | |
Public Attributes | |
| std::vector< double > | absEtaEdges = {0, inf} |
| Eta bin edges for varying cuts by eta. | |
| std::vector< Config > | cutSets = {} |
| Cut sets for each eta bin. | |
Main config object for the track selector.
Combines a set of cut configurations and corresponding eta bins
| Acts::TrackSelector::EtaBinnedConfig::EtaBinnedConfig | ( | ) |
Construct an empty (accepts everything) configuration.
Results in a single cut set and one abs eta bin from 0 to infinity.
|
explicit |
Constructor to create a config object that is not upper-bounded.
This is useful to use the "fluent" API to populate the configuration.
| etaMin | Minimum eta bin edge |
|
explicit |
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.
| absEtaEdgesIn | is the vector of eta bin edges |
|
explicit |
Auto-converting constructor from a single cut configuration.
Results in a single absolute eta bin from 0 to infinity.
| cutSet | Single cut configuration to use for all eta values |
| TrackSelector::EtaBinnedConfig & Acts::TrackSelector::EtaBinnedConfig::addCuts | ( | const std::function< void(Config &)> & | callback = {} | ) |
Add a new eta bin with an upper bound of +infinity.
| callback | Callback to configure the cuts for this eta bin |
| TrackSelector::EtaBinnedConfig & Acts::TrackSelector::EtaBinnedConfig::addCuts | ( | double | etaMax, |
| const std::function< void(Config &)> & | callback = {} ) |
Add a new eta bin with the given upper bound.
| etaMax | Upper bound of the new eta bin |
| callback | Callback to configure the cuts for this eta bin |
| std::size_t Acts::TrackSelector::EtaBinnedConfig::binIndex | ( | double | eta | ) | const |
Get the index of the eta bin for a given eta.
throws an exception if Eta is outside the abs eta bin edges.
| eta | Eta value |
| std::size_t Acts::TrackSelector::EtaBinnedConfig::binIndexNoCheck | ( | double | eta | ) | const |
Get the index of the eta bin for a given eta.
| eta | Eta value |
| const TrackSelector::Config & Acts::TrackSelector::EtaBinnedConfig::getCuts | ( | double | eta | ) | const |
Get the cuts for a given eta.
| eta | Eta value |
| bool Acts::TrackSelector::EtaBinnedConfig::hasCuts | ( | double | eta | ) | const |
Check if the configuration has a bin for a given eta.
| eta | Eta value |
| std::size_t Acts::TrackSelector::EtaBinnedConfig::nEtaBins | ( | ) | const |
Get the number of eta bins.
| std::vector<double> Acts::TrackSelector::EtaBinnedConfig::absEtaEdges = {0, inf} |
Eta bin edges for varying cuts by eta.
| std::vector<Config> Acts::TrackSelector::EtaBinnedConfig::cutSets = {} |
Cut sets for each eta bin.