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

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

+ Inheritance diagram for ActsExamples::TrackFitterPerformanceWriter:
+ Collaboration diagram for ActsExamples::TrackFitterPerformanceWriter:

Classes

struct  Config
 

Public Member Functions

 TrackFitterPerformanceWriter (Config cfg, Acts::Logging::Level lvl)
 Construct from configuration and log level.
 
 ~TrackFitterPerformanceWriter () 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}
 
ResPlotTool m_resPlotTool
 Plot tool for residuals and pulls.
 
ResPlotTool::ResPlotCache m_resPlotCache
 
EffPlotTool m_effPlotTool
 Plot tool for efficiency.
 
EffPlotTool::EffPlotCache m_effPlotCache
 
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 residual and pull of track parameters and efficiency.

Efficiency here is the fraction of smoothed tracks compared to all tracks.

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 32 of file TrackFitterPerformanceWriter.hpp.

View newest version in sPHENIX GitHub at line 32 of file TrackFitterPerformanceWriter.hpp

Constructor & Destructor Documentation

ActsExamples::TrackFitterPerformanceWriter::TrackFitterPerformanceWriter ( Config  cfg,
Acts::Logging::Level  lvl 
)
ActsExamples::TrackFitterPerformanceWriter::~TrackFitterPerformanceWriter ( )
override

Definition at line 59 of file TrackFitterPerformanceWriter.cpp.

View newest version in sPHENIX GitHub at line 59 of file TrackFitterPerformanceWriter.cpp

Member Function Documentation

ActsExamples::ProcessCode ActsExamples::TrackFitterPerformanceWriter::endRun ( )
finaloverridevirtual

Finalize plots.

Implements ActsExamples::IWriter.

Definition at line 69 of file TrackFitterPerformanceWriter.cpp.

View newest version in sPHENIX GitHub at line 69 of file TrackFitterPerformanceWriter.cpp

References ACTS_INFO, and SUCCESS.

ActsExamples::ProcessCode ActsExamples::TrackFitterPerformanceWriter::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 84 of file TrackFitterPerformanceWriter.cpp.

View newest version in sPHENIX GitHub at line 84 of file TrackFitterPerformanceWriter.cpp

References ACTS_ERROR, ACTS_WARNING, ActsExamples::AlgorithmContext::eventStore, ActsExamples::AlgorithmContext::geoContext, ActsExamples::WhiteBoard::get(), ip(), it, particle, SUCCESS, and Acts::MultiTrajectoryHelpers::trajectoryState().

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::TrackFitterPerformanceWriter::m_cfg
private

Definition at line 60 of file TrackFitterPerformanceWriter.hpp.

View newest version in sPHENIX GitHub at line 60 of file TrackFitterPerformanceWriter.hpp

Referenced by TrackFitterPerformanceWriter().

EffPlotTool::EffPlotCache ActsExamples::TrackFitterPerformanceWriter::m_effPlotCache
private

Definition at line 69 of file TrackFitterPerformanceWriter.hpp.

View newest version in sPHENIX GitHub at line 69 of file TrackFitterPerformanceWriter.hpp

Referenced by TrackFitterPerformanceWriter().

EffPlotTool ActsExamples::TrackFitterPerformanceWriter::m_effPlotTool
private

Plot tool for efficiency.

Definition at line 68 of file TrackFitterPerformanceWriter.hpp.

View newest version in sPHENIX GitHub at line 68 of file TrackFitterPerformanceWriter.hpp

Referenced by TrackFitterPerformanceWriter().

TFile* ActsExamples::TrackFitterPerformanceWriter::m_outputFile {nullptr}
private

Definition at line 63 of file TrackFitterPerformanceWriter.hpp.

View newest version in sPHENIX GitHub at line 63 of file TrackFitterPerformanceWriter.hpp

Referenced by TrackFitterPerformanceWriter().

ResPlotTool::ResPlotCache ActsExamples::TrackFitterPerformanceWriter::m_resPlotCache
private

Definition at line 66 of file TrackFitterPerformanceWriter.hpp.

View newest version in sPHENIX GitHub at line 66 of file TrackFitterPerformanceWriter.hpp

Referenced by TrackFitterPerformanceWriter().

ResPlotTool ActsExamples::TrackFitterPerformanceWriter::m_resPlotTool
private

Plot tool for residuals and pulls.

Definition at line 65 of file TrackFitterPerformanceWriter.hpp.

View newest version in sPHENIX GitHub at line 65 of file TrackFitterPerformanceWriter.hpp

Referenced by TrackFitterPerformanceWriter().

TrackSummaryPlotTool::TrackSummaryPlotCache ActsExamples::TrackFitterPerformanceWriter::m_trackSummaryPlotCache
private

Definition at line 72 of file TrackFitterPerformanceWriter.hpp.

View newest version in sPHENIX GitHub at line 72 of file TrackFitterPerformanceWriter.hpp

Referenced by TrackFitterPerformanceWriter().

TrackSummaryPlotTool ActsExamples::TrackFitterPerformanceWriter::m_trackSummaryPlotTool
private

Plot tool for track hit info.

Definition at line 71 of file TrackFitterPerformanceWriter.hpp.

View newest version in sPHENIX GitHub at line 71 of file TrackFitterPerformanceWriter.hpp

Referenced by TrackFitterPerformanceWriter().

std::mutex ActsExamples::TrackFitterPerformanceWriter::m_writeMutex
private

Mutex used to protect multi-threaded writes.

Definition at line 62 of file TrackFitterPerformanceWriter.hpp.

View newest version in sPHENIX GitHub at line 62 of file TrackFitterPerformanceWriter.hpp


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