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

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

+ Collaboration diagram for ActsExamples::FakeRatePlotTool:

Classes

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

Public Member Functions

 FakeRatePlotTool (const Config &cfg, Acts::Logging::Level lvl)
 
void book (FakeRatePlotCache &fakeRatePlotCache) const
 book the fake rate plots
 
void fill (FakeRatePlotCache &fakeRatePlotCache, const Acts::BoundTrackParameters &fittedParameters, bool status) const
 fill fake rate w.r.t. fitted track parameters
 
void fill (FakeRatePlotCache &fakeRatePlotCache, const ActsFatras::Particle &truthParticle, size_t nTruthMatchedTracks, size_t nFakeTracks) const
 fill number of reco/truth-matched/fake tracks for a truth particle seed
 
void write (const FakeRatePlotCache &fakeRatePlotCache) const
 write the fake rate plots to file
 
void clear (FakeRatePlotCache &fakeRatePlotCache) const
 delete the fake rate 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 26 of file FakeRatePlotTool.hpp.

View newest version in sPHENIX GitHub at line 26 of file FakeRatePlotTool.hpp

Constructor & Destructor Documentation

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

Constructor

Parameters
cfgConfiguration struct
lvlMessage level declaration

Definition at line 18 of file FakeRatePlotTool.cpp.

View newest version in sPHENIX GitHub at line 18 of file FakeRatePlotTool.cpp

Member Function Documentation

void ActsExamples::FakeRatePlotTool::book ( FakeRatePlotTool::FakeRatePlotCache fakeRatePlotCache) const
void ActsExamples::FakeRatePlotTool::fill ( FakeRatePlotTool::FakeRatePlotCache fakeRatePlotCache,
const Acts::BoundTrackParameters fittedParameters,
bool  status 
) const

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

Parameters
fakeRatePlotCachecache object for fake rate plots
fittedParametersfitted track parameters of this track
statusthe reconstructed track is fake or not

Definition at line 92 of file FakeRatePlotTool.cpp.

View newest version in sPHENIX GitHub at line 92 of file FakeRatePlotTool.cpp

References Acts::VectorHelpers::eta(), ActsExamples::FakeRatePlotTool::FakeRatePlotCache::fakeRate_vs_eta, ActsExamples::FakeRatePlotTool::FakeRatePlotCache::fakeRate_vs_phi, ActsExamples::FakeRatePlotTool::FakeRatePlotCache::fakeRate_vs_pT, ActsExamples::PlotHelpers::fillEff(), momentum, Acts::SingleBoundTrackParameters< charge_t >::momentum(), Acts::VectorHelpers::perp(), and phi.

+ Here is the call graph for this function:

void ActsExamples::FakeRatePlotTool::fill ( FakeRatePlotTool::FakeRatePlotCache fakeRatePlotCache,
const ActsFatras::Particle truthParticle,
size_t  nTruthMatchedTracks,
size_t  nFakeTracks 
) const

fill number of reco/truth-matched/fake tracks for a truth particle seed

Parameters
fakeRatePlotCachecache object for fake rate plots
truthParticlethe truth Particle
nTruthMatchedTracksthe number of truth-Matched tracks
nFakeTracksthe number of fake tracks

Definition at line 105 of file FakeRatePlotTool.cpp.

View newest version in sPHENIX GitHub at line 105 of file FakeRatePlotTool.cpp

References Acts::VectorHelpers::eta(), ActsExamples::PlotHelpers::fillHisto(), ActsExamples::FakeRatePlotTool::FakeRatePlotCache::nFake_vs_eta, ActsExamples::FakeRatePlotTool::FakeRatePlotCache::nFake_vs_pT, ActsExamples::FakeRatePlotTool::FakeRatePlotCache::nReco_vs_eta, ActsExamples::FakeRatePlotTool::FakeRatePlotCache::nReco_vs_pT, ActsExamples::FakeRatePlotTool::FakeRatePlotCache::nTruthMatched_vs_eta, ActsExamples::FakeRatePlotTool::FakeRatePlotCache::nTruthMatched_vs_pT, ActsFatras::Particle::transverseMomentum(), and ActsFatras::Particle::unitDirection().

+ Here is the call graph for this function:

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

The logger.

Definition at line 100 of file FakeRatePlotTool.hpp.

View newest version in sPHENIX GitHub at line 100 of file FakeRatePlotTool.hpp

References m_logger.

Member Data Documentation

Config ActsExamples::FakeRatePlotTool::m_cfg
private

The Config class.

Definition at line 96 of file FakeRatePlotTool.hpp.

View newest version in sPHENIX GitHub at line 96 of file FakeRatePlotTool.hpp

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

The logging instance.

Definition at line 97 of file FakeRatePlotTool.hpp.

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

Referenced by logger().


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