EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Examples/Framework/include/ActsExamples/Validation/FakeRatePlotTool.hpp>
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::Logger & | logger () const |
The logger. | |
Private Attributes | |
Config | m_cfg |
The Config class. | |
std::unique_ptr< const Acts::Logger > | m_logger |
The logging instance. | |
Definition at line 26 of file FakeRatePlotTool.hpp.
View newest version in sPHENIX GitHub at line 26 of file FakeRatePlotTool.hpp
ActsExamples::FakeRatePlotTool::FakeRatePlotTool | ( | const Config & | cfg, |
Acts::Logging::Level | lvl | ||
) |
Constructor
cfg | Configuration struct |
lvl | Message level declaration |
Definition at line 18 of file FakeRatePlotTool.cpp.
View newest version in sPHENIX GitHub at line 18 of file FakeRatePlotTool.cpp
void ActsExamples::FakeRatePlotTool::book | ( | FakeRatePlotTool::FakeRatePlotCache & | fakeRatePlotCache | ) | const |
book the fake rate plots
fakeRatePlotCache | the cache for fake rate plots |
Definition at line 22 of file FakeRatePlotTool.cpp.
View newest version in sPHENIX GitHub at line 22 of file FakeRatePlotTool.cpp
References ACTS_DEBUG, ActsExamples::PlotHelpers::bookEff(), ActsExamples::PlotHelpers::bookHisto(), ActsExamples::FakeRatePlotTool::FakeRatePlotCache::fakeRate_vs_eta, ActsExamples::FakeRatePlotTool::FakeRatePlotCache::fakeRate_vs_phi, ActsExamples::FakeRatePlotTool::FakeRatePlotCache::fakeRate_vs_pT, 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, and ActsExamples::FakeRatePlotTool::FakeRatePlotCache::nTruthMatched_vs_pT.
Referenced by ActsExamples::CKFPerformanceWriter::CKFPerformanceWriter().
void ActsExamples::FakeRatePlotTool::clear | ( | FakeRatePlotCache & | fakeRatePlotCache | ) | const |
delete the fake rate plots
fakeRatePlotCache | cache object for fake rate plots |
Definition at line 65 of file FakeRatePlotTool.cpp.
View newest version in sPHENIX GitHub at line 65 of file FakeRatePlotTool.cpp
References ActsExamples::FakeRatePlotTool::FakeRatePlotCache::fakeRate_vs_eta, ActsExamples::FakeRatePlotTool::FakeRatePlotCache::fakeRate_vs_phi, ActsExamples::FakeRatePlotTool::FakeRatePlotCache::fakeRate_vs_pT, 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, and ActsExamples::FakeRatePlotTool::FakeRatePlotCache::nTruthMatched_vs_pT.
void ActsExamples::FakeRatePlotTool::fill | ( | FakeRatePlotTool::FakeRatePlotCache & | fakeRatePlotCache, |
const Acts::BoundTrackParameters & | fittedParameters, | ||
bool | status | ||
) | const |
fill fake rate w.r.t. fitted track parameters
fakeRatePlotCache | cache object for fake rate plots |
fittedParameters | fitted track parameters of this track |
status | the 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.
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
fakeRatePlotCache | cache object for fake rate plots |
truthParticle | the truth Particle |
nTruthMatchedTracks | the number of truth-Matched tracks |
nFakeTracks | the 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().
|
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.
void ActsExamples::FakeRatePlotTool::write | ( | const FakeRatePlotCache & | fakeRatePlotCache | ) | const |
write the fake rate plots to file
fakeRatePlotCache | cache object for fake rate plots |
Definition at line 78 of file FakeRatePlotTool.cpp.
View newest version in sPHENIX GitHub at line 78 of file FakeRatePlotTool.cpp
References ACTS_DEBUG, ActsExamples::FakeRatePlotTool::FakeRatePlotCache::fakeRate_vs_eta, ActsExamples::FakeRatePlotTool::FakeRatePlotCache::fakeRate_vs_phi, ActsExamples::FakeRatePlotTool::FakeRatePlotCache::fakeRate_vs_pT, 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, and ActsExamples::FakeRatePlotTool::FakeRatePlotCache::nTruthMatched_vs_pT.
|
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
|
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().