EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::ParticleSelector Exception Referencefinal

Select particles by applying some selection cuts. More...

#include <acts/blob/sPHENIX/Examples/Algorithms/TruthTracking/ActsExamples/TruthTracking/ParticleSelector.hpp>

+ Inheritance diagram for ActsExamples::ParticleSelector:
+ Collaboration diagram for ActsExamples::ParticleSelector:

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::Loggerlogger () const
 

Detailed Description

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

Constructor & Destructor Documentation

Member Function Documentation

void ParticleSelector::addOptions ( Options::Description desc)
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.

ActsExamples::ProcessCode ParticleSelector::execute ( const AlgorithmContext context) const
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.

+ Here is the call graph for this function:

ActsExamples::ParticleSelector::Config ParticleSelector::readConfig ( const Options::Variables vars)
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.

Member Data Documentation

Config ActsExamples::ParticleSelector::m_cfg
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().


The documentation for this exception was generated from the following files: