Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::DuplicationPlotTool Class Reference

#include <acts/blob/sPHENIX/Examples/Framework/include/ActsExamples/Validation/DuplicationPlotTool.hpp>

+ Collaboration diagram for ActsExamples::DuplicationPlotTool:

Classes

struct  Config
 The nested configuration struct. More...
 
struct  DuplicationPlotCache
 Nested Cache struct. More...
 

Public Member Functions

 DuplicationPlotTool (const Config &cfg, Acts::Logging::Level lvl)
 
void book (DuplicationPlotCache &duplicationPlotCache) const
 book the duplication plots
 
void fill (DuplicationPlotCache &duplicationPlotCache, const Acts::BoundTrackParameters &fittedParameters, bool status) const
 fill duplication rate w.r.t. fitted track parameters
 
void fill (DuplicationPlotCache &duplicationPlotCache, const ActsFatras::Particle &truthParticle, size_t nDuplicatedTracks) const
 fill number of duplicated tracks for a truth particle seed
 
void write (const DuplicationPlotCache &duplicationPlotCache) const
 write the duplication plots to file
 
void clear (DuplicationPlotCache &duplicationPlotCache) const
 delete the duplication plots
 

Private Member Functions

const Acts::Loggerlogger () const
 The logger.
 

Private Attributes

Config m_cfg
 The Config class.
 
std::unique_ptr< const
Acts::Logger
m_logger
 The logging instance.
 

Detailed Description

Definition at line 36 of file DuplicationPlotTool.hpp.

View newest version in sPHENIX GitHub at line 36 of file DuplicationPlotTool.hpp

Constructor & Destructor Documentation

ActsExamples::DuplicationPlotTool::DuplicationPlotTool ( const Config cfg,
Acts::Logging::Level  lvl 
)

Constructor

Parameters
cfgConfiguration struct
lvlMessage level declaration

Definition at line 23 of file DuplicationPlotTool.cpp.

View newest version in sPHENIX GitHub at line 23 of file DuplicationPlotTool.cpp

Member Function Documentation

void ActsExamples::DuplicationPlotTool::book ( DuplicationPlotTool::DuplicationPlotCache duplicationPlotCache) const

book the duplication plots

Parameters
duplicationPlotCachethe cache for duplication plots

Definition at line 29 of file DuplicationPlotTool.cpp.

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

References ACTS_DEBUG, ActsExamples::PlotHelpers::bookEff(), ActsExamples::PlotHelpers::bookProf(), ActsExamples::DuplicationPlotTool::DuplicationPlotCache::duplicationRate_vs_eta, ActsExamples::DuplicationPlotTool::DuplicationPlotCache::duplicationRate_vs_phi, ActsExamples::DuplicationPlotTool::DuplicationPlotCache::duplicationRate_vs_pT, m_cfg(), ActsExamples::DuplicationPlotTool::DuplicationPlotCache::nDuplicated_vs_eta, ActsExamples::DuplicationPlotTool::DuplicationPlotCache::nDuplicated_vs_phi, and ActsExamples::DuplicationPlotTool::DuplicationPlotCache::nDuplicated_vs_pT.

Referenced by ActsExamples::CKFPerformanceWriter::CKFPerformanceWriter(), and ActsExamples::SeedingPerformanceWriter::SeedingPerformanceWriter().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ActsExamples::DuplicationPlotTool::fill ( DuplicationPlotTool::DuplicationPlotCache duplicationPlotCache,
const Acts::BoundTrackParameters fittedParameters,
bool  status 
) const

fill duplication rate w.r.t. fitted track parameters

Parameters
duplicationPlotCachecache object for duplication plots
fittedParametersfitted track parameters of this track
statusthe (truth-matched) reconstructed track is duplicated or not

Definition at line 83 of file DuplicationPlotTool.cpp.

View newest version in sPHENIX GitHub at line 83 of file DuplicationPlotTool.cpp

References ActsExamples::DuplicationPlotTool::DuplicationPlotCache::duplicationRate_vs_eta, ActsExamples::DuplicationPlotTool::DuplicationPlotCache::duplicationRate_vs_phi, ActsExamples::DuplicationPlotTool::DuplicationPlotCache::duplicationRate_vs_pT, eta, ActsExamples::PlotHelpers::fillEff(), momentum, Acts::GenericBoundTrackParameters< particle_hypothesis_t >::momentum(), Acts::VectorHelpers::perp(), and ActsTests::PropagationDatasets::phi.

+ Here is the call graph for this function:

void ActsExamples::DuplicationPlotTool::fill ( DuplicationPlotTool::DuplicationPlotCache duplicationPlotCache,
const ActsFatras::Particle truthParticle,
size_t  nDuplicatedTracks 
) const

fill number of duplicated tracks for a truth particle seed

Parameters
duplicationPlotCachecache object for duplication plots
truthParticlethe truth Particle
nDuplicatedTracksthe number of duplicated tracks

Definition at line 99 of file DuplicationPlotTool.cpp.

View newest version in sPHENIX GitHub at line 99 of file DuplicationPlotTool.cpp

References ActsFatras::Particle::direction(), eta, ActsExamples::PlotHelpers::fillProf(), ActsExamples::DuplicationPlotTool::DuplicationPlotCache::nDuplicated_vs_eta, ActsExamples::DuplicationPlotTool::DuplicationPlotCache::nDuplicated_vs_phi, ActsExamples::DuplicationPlotTool::DuplicationPlotCache::nDuplicated_vs_pT, ActsTests::PropagationDatasets::phi, and ActsFatras::Particle::transverseMomentum().

+ Here is the call graph for this function:

const Acts::Logger& ActsExamples::DuplicationPlotTool::logger ( ) const
inlineprivate

The logger.

Definition at line 101 of file DuplicationPlotTool.hpp.

View newest version in sPHENIX GitHub at line 101 of file DuplicationPlotTool.hpp

References m_logger.

Member Data Documentation

Config ActsExamples::DuplicationPlotTool::m_cfg
private

The Config class.

Definition at line 97 of file DuplicationPlotTool.hpp.

View newest version in sPHENIX GitHub at line 97 of file DuplicationPlotTool.hpp

std::unique_ptr<const Acts::Logger> ActsExamples::DuplicationPlotTool::m_logger
private

The logging instance.

Definition at line 98 of file DuplicationPlotTool.hpp.

View newest version in sPHENIX GitHub at line 98 of file DuplicationPlotTool.hpp

Referenced by logger().


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