Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::TruthTrackFinder Exception Referencefinal

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

+ Inheritance diagram for ActsExamples::TruthTrackFinder:
+ Collaboration diagram for ActsExamples::TruthTrackFinder:

Classes

struct  Config
 

Public Types

using HitParticlesMap = IndexMultimap< ActsFatras::Barcode >
 

Public Member Functions

 TruthTrackFinder (const Config &config, Acts::Logging::Level level)
 
ProcessCode execute (const AlgorithmContext &ctx) const final
 
const Configconfig () const
 Get readonly access to the config parameters.
 
- Public Member Functions inherited from ActsExamples::IAlgorithm
 IAlgorithm (std::string name, Acts::Logging::Level level=Acts::Logging::INFO)
 
std::string name () const override
 The algorithm name.
 
ProcessCode internalExecute (const AlgorithmContext &context) final
 
ProcessCode initialize () override
 Initialize the algorithm.
 
ProcessCode finalize () override
 Finalize the algorithm.
 

Private Attributes

Config m_cfg
 
ReadDataHandle
< SimParticleContainer
m_inputParticles {this, "InputParticles"}
 
ReadDataHandle< HitParticlesMapm_inputMeasurementParticlesMap
 
WriteDataHandle
< ProtoTrackContainer
m_outputProtoTracks
 

Additional Inherited Members

- Protected Member Functions inherited from ActsExamples::IAlgorithm
const Acts::Loggerlogger () const
 

Detailed Description

Convert true particle tracks into "reconstructed" proto tracks.

For numbering consistency, this creates a proto track for each input particle. Depending on the input particle selection it can contain zero hits. This algorithm should be able to replace any other real track finder in the reconstruction chain e.g. to validate algorithms further down the chain.

Definition at line 35 of file TruthTrackFinder.hpp.

View newest version in sPHENIX GitHub at line 35 of file TruthTrackFinder.hpp

Member Typedef Documentation

Definition at line 37 of file TruthTrackFinder.hpp.

View newest version in sPHENIX GitHub at line 37 of file TruthTrackFinder.hpp

Constructor & Destructor Documentation

TruthTrackFinder::TruthTrackFinder ( const Config config,
Acts::Logging::Level  level 
)

Definition at line 29 of file TruthTrackFinder.cpp.

View newest version in sPHENIX GitHub at line 29 of file TruthTrackFinder.cpp

References ActsExamples::WriteDataHandle< T >::initialize(), ActsExamples::ReadDataHandle< T >::initialize(), ActsExamples::TruthTrackFinder::Config::inputMeasurementParticlesMap, ActsExamples::TruthTrackFinder::Config::inputParticles, m_cfg, m_inputMeasurementParticlesMap, m_inputParticles, m_outputProtoTracks, and ActsExamples::TruthTrackFinder::Config::outputProtoTracks.

+ Here is the call graph for this function:

Member Function Documentation

const Config& ActsExamples::TruthTrackFinder::config ( ) const
inline

Get readonly access to the config parameters.

Definition at line 53 of file TruthTrackFinder.hpp.

View newest version in sPHENIX GitHub at line 53 of file TruthTrackFinder.hpp

References m_cfg.

ProcessCode TruthTrackFinder::execute ( const AlgorithmContext context) const
finalvirtual

Execute the algorithm for one event.

This function must be implemented by subclasses.

Implements ActsExamples::IAlgorithm.

Definition at line 47 of file TruthTrackFinder.cpp.

View newest version in sPHENIX GitHub at line 47 of file TruthTrackFinder.cpp

References ACTS_VERBOSE, ActsExamples::invertIndexMultimap(), m_inputMeasurementParticlesMap, m_inputParticles, m_outputProtoTracks, ActsExamples::makeRange(), testing::internal::move(), particle, particles, SUCCESS, and tracks().

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::TruthTrackFinder::m_cfg
private

Definition at line 56 of file TruthTrackFinder.hpp.

View newest version in sPHENIX GitHub at line 56 of file TruthTrackFinder.hpp

Referenced by config(), and TruthTrackFinder().

ReadDataHandle<HitParticlesMap> ActsExamples::TruthTrackFinder::m_inputMeasurementParticlesMap
private
Initial value:
{
this, "InputMeasurementParticlesMap"}

Definition at line 60 of file TruthTrackFinder.hpp.

View newest version in sPHENIX GitHub at line 60 of file TruthTrackFinder.hpp

Referenced by execute(), and TruthTrackFinder().

ReadDataHandle<SimParticleContainer> ActsExamples::TruthTrackFinder::m_inputParticles {this, "InputParticles"}
private

Definition at line 58 of file TruthTrackFinder.hpp.

View newest version in sPHENIX GitHub at line 58 of file TruthTrackFinder.hpp

Referenced by execute(), and TruthTrackFinder().

WriteDataHandle<ProtoTrackContainer> ActsExamples::TruthTrackFinder::m_outputProtoTracks
private
Initial value:
{this,
"OutputProtoTracks"}

Definition at line 63 of file TruthTrackFinder.hpp.

View newest version in sPHENIX GitHub at line 63 of file TruthTrackFinder.hpp

Referenced by execute(), and TruthTrackFinder().


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