EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
Select particles by applying some selection cuts. More...
#include <acts/blob/sPHENIX/Examples/Algorithms/TruthTracking/ActsExamples/TruthTracking/ParticleSelector.hpp>
Classes | |
struct | Config |
Public Member Functions | |
ParticleSelector (const Config &cfg, Acts::Logging::Level lvl) | |
ProcessCode | execute (const AlgorithmContext &ctx) const final |
Public Member Functions inherited from ActsExamples::BareAlgorithm | |
BareAlgorithm (std::string name, Acts::Logging::Level level=Acts::Logging::INFO) | |
std::string | name () const finaloverride |
The algorithm name. | |
Static Public Member Functions | |
static void | addOptions (Options::Description &desc) |
Add options for the particle selector. | |
static Config | readConfig (const Options::Variables &vars) |
Construct particle selector config from user variables. | |
Private Attributes | |
Config | m_cfg |
Additional Inherited Members | |
Protected Member Functions inherited from ActsExamples::BareAlgorithm | |
const Acts::Logger & | logger () const |
Select particles by applying some selection cuts.
Definition at line 23 of file ParticleSelector.hpp.
View newest version in sPHENIX GitHub at line 23 of file ParticleSelector.hpp
ParticleSelector::ParticleSelector | ( | const Config & | cfg, |
Acts::Logging::Level | lvl | ||
) |
Definition at line 75 of file ParticleSelector.cpp.
View newest version in sPHENIX GitHub at line 75 of file ParticleSelector.cpp
References ActsExamples::ParticleSelector::Config::absEtaMax, ActsExamples::ParticleSelector::Config::absEtaMin, ActsExamples::ParticleSelector::Config::absZMax, ActsExamples::ParticleSelector::Config::absZMin, ACTS_DEBUG, ActsExamples::ParticleSelector::Config::etaMax, ActsExamples::ParticleSelector::Config::etaMin, ActsExamples::ParticleSelector::Config::inputParticles, m_cfg, ActsExamples::ParticleSelector::Config::outputParticles, ActsExamples::ParticleSelector::Config::phiMax, ActsExamples::ParticleSelector::Config::phiMin, ActsExamples::ParticleSelector::Config::ptMax, ActsExamples::ParticleSelector::Config::ptMin, ActsExamples::ParticleSelector::Config::removeCharged, ActsExamples::ParticleSelector::Config::removeNeutral, ActsExamples::ParticleSelector::Config::rhoMax, ActsExamples::ParticleSelector::Config::rhoMin, ActsExamples::ParticleSelector::Config::timeMax, and ActsExamples::ParticleSelector::Config::timeMin.
|
static |
Add options for the particle selector.
Definition at line 23 of file ParticleSelector.cpp.
View newest version in sPHENIX GitHub at line 23 of file ParticleSelector.cpp
References value.
|
finalvirtual |
Execute the algorithm for one event.
This function must be implemented by subclasses.
Implements ActsExamples::BareAlgorithm.
Definition at line 102 of file ParticleSelector.cpp.
View newest version in sPHENIX GitHub at line 102 of file ParticleSelector.cpp
References kdfinder::abs(), ACTS_DEBUG, ActsExamples::WhiteBoard::add(), Acts::ePos2, Acts::VectorHelpers::eta(), ActsExamples::AlgorithmContext::eventNumber, ActsExamples::AlgorithmContext::eventStore, ActsExamples::WhiteBoard::get(), max, min, p, Acts::VectorHelpers::perp(), Acts::VectorHelpers::phi(), phi, SUCCESS, and x.
|
static |
Construct particle selector config from user variables.
Definition at line 48 of file ParticleSelector.cpp.
View newest version in sPHENIX GitHub at line 48 of file ParticleSelector.cpp
References ActsExamples::Options::Interval::lower, and name.
|
private |
Definition at line 65 of file ParticleSelector.hpp.
View newest version in sPHENIX GitHub at line 65 of file ParticleSelector.hpp
Referenced by ParticleSelector().