EIC 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 29 of file DuplicationPlotTool.hpp.

View newest version in sPHENIX GitHub at line 29 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 18 of file DuplicationPlotTool.cpp.

View newest version in sPHENIX GitHub at line 18 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 24 of file DuplicationPlotTool.cpp.

View newest version in sPHENIX GitHub at line 24 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, ActsExamples::DuplicationPlotTool::DuplicationPlotCache::nDuplicated_vs_eta, ActsExamples::DuplicationPlotTool::DuplicationPlotCache::nDuplicated_vs_phi, and ActsExamples::DuplicationPlotTool::DuplicationPlotCache::nDuplicated_vs_pT.

Referenced by ActsExamples::CKFPerformanceWriter::CKFPerformanceWriter().

+ 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 78 of file DuplicationPlotTool.cpp.

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

References ActsExamples::DuplicationPlotTool::DuplicationPlotCache::duplicationRate_vs_eta, ActsExamples::DuplicationPlotTool::DuplicationPlotCache::duplicationRate_vs_phi, ActsExamples::DuplicationPlotTool::DuplicationPlotCache::duplicationRate_vs_pT, Acts::VectorHelpers::eta(), ActsExamples::PlotHelpers::fillEff(), momentum, Acts::SingleBoundTrackParameters< charge_t >::momentum(), Acts::VectorHelpers::perp(), and 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 94 of file DuplicationPlotTool.cpp.

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

References Acts::VectorHelpers::eta(), ActsExamples::PlotHelpers::fillProf(), ActsExamples::DuplicationPlotTool::DuplicationPlotCache::nDuplicated_vs_eta, ActsExamples::DuplicationPlotTool::DuplicationPlotCache::nDuplicated_vs_phi, ActsExamples::DuplicationPlotTool::DuplicationPlotCache::nDuplicated_vs_pT, phi, ActsFatras::Particle::transverseMomentum(), and ActsFatras::Particle::unitDirection().

+ Here is the call graph for this function:

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

The logger.

Definition at line 94 of file DuplicationPlotTool.hpp.

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

References m_logger.

Member Data Documentation

Config ActsExamples::DuplicationPlotTool::m_cfg
private

The Config class.

Definition at line 90 of file DuplicationPlotTool.hpp.

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

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

The logging instance.

Definition at line 91 of file DuplicationPlotTool.hpp.

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

Referenced by logger().


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