EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Examples/Io/Performance/ActsExamples/Io/Performance/CKFPerformanceWriter.hpp>
Classes | |
struct | Config |
Public Member Functions | |
CKFPerformanceWriter (Config cfg, Acts::Logging::Level lvl) | |
Construct from configuration and log level. | |
~CKFPerformanceWriter () override | |
ProcessCode | endRun () finaloverride |
Finalize plots. | |
Public Member Functions inherited from ActsExamples::WriterT< TrajectoryContainer > | |
WriterT (std::string objectName, std::string writerName, Acts::Logging::Level level) | |
std::string | name () const finaloverride |
Provide the name of the writer. | |
ProcessCode | write (const AlgorithmContext &context) finaloverride |
Read the object and call the type-specific member function. | |
ProcessCode | endRun () override |
No-op default implementation. | |
Public Member Functions inherited from ActsExamples::IWriter | |
virtual | ~IWriter ()=default |
Private Member Functions | |
ProcessCode | writeT (const AlgorithmContext &ctx, const TrajectoryContainer &trajectories) finaloverride |
Private Attributes | |
Config | m_cfg |
std::mutex | m_writeMutex |
Mutex used to protect multi-threaded writes. | |
TFile * | m_outputFile {nullptr} |
EffPlotTool | m_effPlotTool |
Plot tool for efficiency. | |
EffPlotTool::EffPlotCache | m_effPlotCache |
FakeRatePlotTool | m_fakeRatePlotTool |
Plot tool for fake rate. | |
FakeRatePlotTool::FakeRatePlotCache | m_fakeRatePlotCache {} |
DuplicationPlotTool | m_duplicationPlotTool |
Plot tool for duplication rate. | |
DuplicationPlotTool::DuplicationPlotCache | m_duplicationPlotCache {} |
TrackSummaryPlotTool | m_trackSummaryPlotTool |
Plot tool for track hit info. | |
TrackSummaryPlotTool::TrackSummaryPlotCache | m_trackSummaryPlotCache |
Additional Inherited Members | |
Protected Member Functions inherited from ActsExamples::WriterT< TrajectoryContainer > | |
const Acts::Logger & | logger () const |
Write out the performance of CombinatorialKalmanFilter (CKF), e.g. track efficiency, fake rate etc. : add duplication plots
A common file can be provided for to the writer to attach his TTree, this is done by setting the Config::rootFile pointer to an existing file
Safe to use from multiple writer threads - uses a std::mutex lock.
Definition at line 36 of file CKFPerformanceWriter.hpp.
View newest version in sPHENIX GitHub at line 36 of file CKFPerformanceWriter.hpp
ActsExamples::CKFPerformanceWriter::CKFPerformanceWriter | ( | Config | cfg, |
Acts::Logging::Level | lvl | ||
) |
Construct from configuration and log level.
Definition at line 22 of file CKFPerformanceWriter.cpp.
View newest version in sPHENIX GitHub at line 22 of file CKFPerformanceWriter.cpp
References ActsExamples::EffPlotTool::book(), ActsExamples::TrackSummaryPlotTool::book(), ActsExamples::DuplicationPlotTool::book(), ActsExamples::FakeRatePlotTool::book(), ActsExamples::CKFPerformanceWriter::Config::inputParticles, ActsExamples::CKFPerformanceWriter::Config::inputTrajectories, ActsExamples::joinPaths(), m_cfg, m_duplicationPlotCache, m_duplicationPlotTool, m_effPlotCache, m_effPlotTool, m_fakeRatePlotCache, m_fakeRatePlotTool, m_outputFile, m_trackSummaryPlotCache, m_trackSummaryPlotTool, ActsExamples::CKFPerformanceWriter::Config::outputDir, and ActsExamples::CKFPerformanceWriter::Config::outputFilename.
|
override |
Definition at line 57 of file CKFPerformanceWriter.cpp.
View newest version in sPHENIX GitHub at line 57 of file CKFPerformanceWriter.cpp
|
finaloverridevirtual |
Finalize plots.
Implements ActsExamples::IWriter.
Definition at line 67 of file CKFPerformanceWriter.cpp.
View newest version in sPHENIX GitHub at line 67 of file CKFPerformanceWriter.cpp
|
finaloverrideprivatevirtual |
Type-specific write function implementation this method is implemented in the user implementation
[in] | context | is the algorithm context that guarantees event consistency |
[in] | is the templeted collection to be written |
Implements ActsExamples::WriterT< TrajectoryContainer >.
Definition at line 79 of file CKFPerformanceWriter.cpp.
View newest version in sPHENIX GitHub at line 79 of file CKFPerformanceWriter.cpp
References ACTS_WARNING, ActsExamples::AlgorithmContext::eventStore, ActsExamples::WhiteBoard::get(), particle, SUCCESS, and Acts::MultiTrajectoryHelpers::trajectoryState().
|
private |
Definition at line 71 of file CKFPerformanceWriter.hpp.
View newest version in sPHENIX GitHub at line 71 of file CKFPerformanceWriter.hpp
Referenced by CKFPerformanceWriter().
|
private |
Definition at line 83 of file CKFPerformanceWriter.hpp.
View newest version in sPHENIX GitHub at line 83 of file CKFPerformanceWriter.hpp
Referenced by CKFPerformanceWriter().
|
private |
Plot tool for duplication rate.
Definition at line 82 of file CKFPerformanceWriter.hpp.
View newest version in sPHENIX GitHub at line 82 of file CKFPerformanceWriter.hpp
Referenced by CKFPerformanceWriter().
|
private |
Definition at line 77 of file CKFPerformanceWriter.hpp.
View newest version in sPHENIX GitHub at line 77 of file CKFPerformanceWriter.hpp
Referenced by CKFPerformanceWriter().
|
private |
Plot tool for efficiency.
Definition at line 76 of file CKFPerformanceWriter.hpp.
View newest version in sPHENIX GitHub at line 76 of file CKFPerformanceWriter.hpp
Referenced by CKFPerformanceWriter().
|
private |
Definition at line 80 of file CKFPerformanceWriter.hpp.
View newest version in sPHENIX GitHub at line 80 of file CKFPerformanceWriter.hpp
Referenced by CKFPerformanceWriter().
|
private |
Plot tool for fake rate.
Definition at line 79 of file CKFPerformanceWriter.hpp.
View newest version in sPHENIX GitHub at line 79 of file CKFPerformanceWriter.hpp
Referenced by CKFPerformanceWriter().
|
private |
Definition at line 74 of file CKFPerformanceWriter.hpp.
View newest version in sPHENIX GitHub at line 74 of file CKFPerformanceWriter.hpp
Referenced by CKFPerformanceWriter().
|
private |
Definition at line 86 of file CKFPerformanceWriter.hpp.
View newest version in sPHENIX GitHub at line 86 of file CKFPerformanceWriter.hpp
Referenced by CKFPerformanceWriter().
|
private |
Plot tool for track hit info.
Definition at line 85 of file CKFPerformanceWriter.hpp.
View newest version in sPHENIX GitHub at line 85 of file CKFPerformanceWriter.hpp
Referenced by CKFPerformanceWriter().
|
private |
Mutex used to protect multi-threaded writes.
Definition at line 73 of file CKFPerformanceWriter.hpp.
View newest version in sPHENIX GitHub at line 73 of file CKFPerformanceWriter.hpp