EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Examples/Framework/include/ActsExamples/Validation/DuplicationPlotTool.hpp>
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::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 29 of file DuplicationPlotTool.hpp.
View newest version in sPHENIX GitHub at line 29 of file DuplicationPlotTool.hpp
ActsExamples::DuplicationPlotTool::DuplicationPlotTool | ( | const Config & | cfg, |
Acts::Logging::Level | lvl | ||
) |
Constructor
cfg | Configuration struct |
lvl | Message level declaration |
Definition at line 18 of file DuplicationPlotTool.cpp.
View newest version in sPHENIX GitHub at line 18 of file DuplicationPlotTool.cpp
void ActsExamples::DuplicationPlotTool::book | ( | DuplicationPlotTool::DuplicationPlotCache & | duplicationPlotCache | ) | const |
book the duplication plots
duplicationPlotCache | the 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().
void ActsExamples::DuplicationPlotTool::clear | ( | DuplicationPlotCache & | duplicationPlotCache | ) | const |
delete the duplication plots
duplicationPlotCache | cache object for duplication plots |
Definition at line 56 of file DuplicationPlotTool.cpp.
View newest version in sPHENIX GitHub at line 56 of file DuplicationPlotTool.cpp
References 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.
void ActsExamples::DuplicationPlotTool::fill | ( | DuplicationPlotTool::DuplicationPlotCache & | duplicationPlotCache, |
const Acts::BoundTrackParameters & | fittedParameters, | ||
bool | status | ||
) | const |
fill duplication rate w.r.t. fitted track parameters
duplicationPlotCache | cache object for duplication plots |
fittedParameters | fitted track parameters of this track |
status | the (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.
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
duplicationPlotCache | cache object for duplication plots |
truthParticle | the truth Particle |
nDuplicatedTracks | the 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().
|
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.
void ActsExamples::DuplicationPlotTool::write | ( | const DuplicationPlotCache & | duplicationPlotCache | ) | const |
write the duplication plots to file
duplicationPlotCache | cache object for duplication plots |
Definition at line 66 of file DuplicationPlotTool.cpp.
View newest version in sPHENIX GitHub at line 66 of file DuplicationPlotTool.cpp
References ACTS_DEBUG, 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.
|
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
|
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().