EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::CKFPerformanceWriter Exception Referencefinal

#include <acts/blob/sPHENIX/Examples/Io/Performance/ActsExamples/Io/Performance/CKFPerformanceWriter.hpp>

+ Inheritance diagram for ActsExamples::CKFPerformanceWriter:
+ Collaboration diagram for ActsExamples::CKFPerformanceWriter:

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::Loggerlogger () const
 

Detailed Description

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

Constructor & Destructor Documentation

ActsExamples::CKFPerformanceWriter::~CKFPerformanceWriter ( )
override

Definition at line 57 of file CKFPerformanceWriter.cpp.

View newest version in sPHENIX GitHub at line 57 of file CKFPerformanceWriter.cpp

Member Function Documentation

ActsExamples::ProcessCode ActsExamples::CKFPerformanceWriter::endRun ( )
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

References ACTS_INFO, and SUCCESS.

ActsExamples::ProcessCode ActsExamples::CKFPerformanceWriter::writeT ( const AlgorithmContext context,
const TrajectoryContainer t 
)
finaloverrideprivatevirtual

Type-specific write function implementation this method is implemented in the user implementation

Parameters
[in]contextis the algorithm context that guarantees event consistency
Template Parameters
[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().

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::CKFPerformanceWriter::m_cfg
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().

DuplicationPlotTool::DuplicationPlotCache ActsExamples::CKFPerformanceWriter::m_duplicationPlotCache {}
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().

DuplicationPlotTool ActsExamples::CKFPerformanceWriter::m_duplicationPlotTool
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().

EffPlotTool::EffPlotCache ActsExamples::CKFPerformanceWriter::m_effPlotCache
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().

EffPlotTool ActsExamples::CKFPerformanceWriter::m_effPlotTool
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().

FakeRatePlotTool::FakeRatePlotCache ActsExamples::CKFPerformanceWriter::m_fakeRatePlotCache {}
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().

FakeRatePlotTool ActsExamples::CKFPerformanceWriter::m_fakeRatePlotTool
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().

TFile* ActsExamples::CKFPerformanceWriter::m_outputFile {nullptr}
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().

TrackSummaryPlotTool::TrackSummaryPlotCache ActsExamples::CKFPerformanceWriter::m_trackSummaryPlotCache
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().

TrackSummaryPlotTool ActsExamples::CKFPerformanceWriter::m_trackSummaryPlotTool
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().

std::mutex ActsExamples::CKFPerformanceWriter::m_writeMutex
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


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