EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::EffPlotTool Class Reference

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

+ Collaboration diagram for ActsExamples::EffPlotTool:

Classes

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

Public Member Functions

 EffPlotTool (const Config &cfg, Acts::Logging::Level lvl)
 
void book (EffPlotCache &effPlotCache) const
 book the efficiency plots
 
void fill (EffPlotCache &effPlotCache, const ActsFatras::Particle &truthParticle, bool status) const
 fill efficiency plots
 
void write (const EffPlotCache &effPlotCache) const
 write the efficiency plots to file
 
void clear (EffPlotCache &effPlotCache) const
 delete the efficiency 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 24 of file EffPlotTool.hpp.

View newest version in sPHENIX GitHub at line 24 of file EffPlotTool.hpp

Constructor & Destructor Documentation

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

Constructor

Parameters
cfgConfiguration struct
lvlMessage level declaration

Definition at line 17 of file EffPlotTool.cpp.

View newest version in sPHENIX GitHub at line 17 of file EffPlotTool.cpp

Member Function Documentation

void ActsExamples::EffPlotTool::book ( EffPlotTool::EffPlotCache effPlotCache) const

book the efficiency plots

Parameters
effPlotCachethe cache for efficiency plots

Definition at line 21 of file EffPlotTool.cpp.

View newest version in sPHENIX GitHub at line 21 of file EffPlotTool.cpp

References ACTS_DEBUG, ActsExamples::PlotHelpers::bookEff(), ActsExamples::EffPlotTool::EffPlotCache::trackEff_vs_eta, ActsExamples::EffPlotTool::EffPlotCache::trackEff_vs_phi, and ActsExamples::EffPlotTool::EffPlotCache::trackEff_vs_pT.

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ActsExamples::EffPlotTool::clear ( EffPlotCache effPlotCache) const

delete the efficiency plots

Parameters
effPlotCachecache object for efficiency plots

Definition at line 38 of file EffPlotTool.cpp.

View newest version in sPHENIX GitHub at line 38 of file EffPlotTool.cpp

References ActsExamples::EffPlotTool::EffPlotCache::trackEff_vs_eta, ActsExamples::EffPlotTool::EffPlotCache::trackEff_vs_phi, and ActsExamples::EffPlotTool::EffPlotCache::trackEff_vs_pT.

void ActsExamples::EffPlotTool::fill ( EffPlotTool::EffPlotCache effPlotCache,
const ActsFatras::Particle truthParticle,
bool  status 
) const

fill efficiency plots

Parameters
effPlotCachecache object for efficiency plots
truthParticlethe truth Particle
statusthe reconstruction status

Definition at line 52 of file EffPlotTool.cpp.

View newest version in sPHENIX GitHub at line 52 of file EffPlotTool.cpp

References Acts::VectorHelpers::eta(), ActsExamples::PlotHelpers::fillEff(), phi, ActsExamples::EffPlotTool::EffPlotCache::trackEff_vs_eta, ActsExamples::EffPlotTool::EffPlotCache::trackEff_vs_phi, ActsExamples::EffPlotTool::EffPlotCache::trackEff_vs_pT, ActsFatras::Particle::transverseMomentum(), and ActsFatras::Particle::unitDirection().

+ Here is the call graph for this function:

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

The logger.

Definition at line 75 of file EffPlotTool.hpp.

View newest version in sPHENIX GitHub at line 75 of file EffPlotTool.hpp

References m_logger.

void ActsExamples::EffPlotTool::write ( const EffPlotCache effPlotCache) const

write the efficiency plots to file

Parameters
effPlotCachecache object for efficiency plots

Definition at line 44 of file EffPlotTool.cpp.

View newest version in sPHENIX GitHub at line 44 of file EffPlotTool.cpp

References ACTS_DEBUG, ActsExamples::EffPlotTool::EffPlotCache::trackEff_vs_eta, ActsExamples::EffPlotTool::EffPlotCache::trackEff_vs_phi, and ActsExamples::EffPlotTool::EffPlotCache::trackEff_vs_pT.

Member Data Documentation

Config ActsExamples::EffPlotTool::m_cfg
private

The Config class.

Definition at line 71 of file EffPlotTool.hpp.

View newest version in sPHENIX GitHub at line 71 of file EffPlotTool.hpp

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

The logging instance.

Definition at line 72 of file EffPlotTool.hpp.

View newest version in sPHENIX GitHub at line 72 of file EffPlotTool.hpp

Referenced by logger().


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