ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FW::RootTrackParameterWriter Exception Referencefinal

Writes out SingleBoundTrackParamters into a TTree. More...

#include <acts/blob/master/Examples/Io/Root/include/ACTFW/Io/Root/RootTrackParameterWriter.hpp>

+ Inheritance diagram for FW::RootTrackParameterWriter:
+ Collaboration diagram for FW::RootTrackParameterWriter:

Classes

struct  Config
 

Public Member Functions

 RootTrackParameterWriter (const Config &cfg, Acts::Logging::Level level=Acts::Logging::INFO)
 
 ~RootTrackParameterWriter () override
 Virtual destructor.
 
ProcessCode endRun () finaloverride
 End-of-run hook.
 
- Public Member Functions inherited from FW::WriterT< write_data_t >
 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.
 
- Public Member Functions inherited from FW::IWriter
virtual ~IWriter ()=default
 

Protected Member Functions

ProcessCode writeT (const AlgorithmContext &ctx, const std::vector< BoundTrackParameters > &trackParams) finaloverride
 Write method called by the base class.
 
- Protected Member Functions inherited from FW::WriterT< write_data_t >
virtual ProcessCode writeT (const AlgorithmContext &context, const write_data_t &t)=0
 
const Acts::Loggerlogger () const
 

Private Attributes

Config m_cfg
 The config class.
 
std::mutex m_writeMutex
 Mutex used to protect multi-threaded writes.
 
TFile * m_outputFile {nullptr}
 The output file.
 
TTree * m_outputTree {nullptr}
 The output tree.
 
int m_eventNr {0}
 the event number of
 
float m_d0 {0.}
 transversal IP d0
 
float m_z0 {0.}
 longitudinal IP z0
 
float m_phi {0.}
 phi
 
float m_theta {0.}
 theta
 
float m_qp {0.}
 q/p
 

Detailed Description

Writes out SingleBoundTrackParamters into a TTree.

Definition at line 26 of file RootTrackParameterWriter.hpp.

View newest version in sPHENIX GitHub at line 26 of file RootTrackParameterWriter.hpp

Constructor & Destructor Documentation

FW::RootTrackParameterWriter::RootTrackParameterWriter ( const Config cfg,
Acts::Logging::Level  level = Acts::Logging::INFO 
)
FW::RootTrackParameterWriter::~RootTrackParameterWriter ( )
override

Virtual destructor.

Definition at line 53 of file RootTrackParameterWriter.cpp.

View newest version in sPHENIX GitHub at line 53 of file RootTrackParameterWriter.cpp

Member Function Documentation

FW::ProcessCode FW::RootTrackParameterWriter::endRun ( )
finaloverridevirtual

End-of-run hook.

Reimplemented from FW::WriterT< write_data_t >.

Definition at line 59 of file RootTrackParameterWriter.cpp.

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

References ACTS_INFO, and SUCCESS.

FW::ProcessCode FW::RootTrackParameterWriter::writeT ( const AlgorithmContext ctx,
const std::vector< BoundTrackParameters > &  trackParams 
)
finaloverrideprotected

Write method called by the base class.

Parameters
[in]ctxis the algorithm context for event information
[in]trackParamsare parameters to write

Definition at line 69 of file RootTrackParameterWriter.cpp.

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

References FW::AlgorithmContext::eventNumber, and SUCCESS.

Member Data Documentation

Config FW::RootTrackParameterWriter::m_cfg
private

The config class.

Definition at line 58 of file RootTrackParameterWriter.hpp.

View newest version in sPHENIX GitHub at line 58 of file RootTrackParameterWriter.hpp

Referenced by RootTrackParameterWriter().

float FW::RootTrackParameterWriter::m_d0 {0.}
private

transversal IP d0

Definition at line 63 of file RootTrackParameterWriter.hpp.

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

Referenced by RootTrackParameterWriter().

int FW::RootTrackParameterWriter::m_eventNr {0}
private

the event number of

Definition at line 62 of file RootTrackParameterWriter.hpp.

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

Referenced by RootTrackParameterWriter().

TFile* FW::RootTrackParameterWriter::m_outputFile {nullptr}
private

The output file.

Definition at line 60 of file RootTrackParameterWriter.hpp.

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

Referenced by RootTrackParameterWriter().

TTree* FW::RootTrackParameterWriter::m_outputTree {nullptr}
private

The output tree.

Definition at line 61 of file RootTrackParameterWriter.hpp.

View newest version in sPHENIX GitHub at line 61 of file RootTrackParameterWriter.hpp

Referenced by RootTrackParameterWriter().

float FW::RootTrackParameterWriter::m_phi {0.}
private

phi

Definition at line 65 of file RootTrackParameterWriter.hpp.

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

Referenced by RootTrackParameterWriter().

float FW::RootTrackParameterWriter::m_qp {0.}
private

q/p

Definition at line 67 of file RootTrackParameterWriter.hpp.

View newest version in sPHENIX GitHub at line 67 of file RootTrackParameterWriter.hpp

Referenced by RootTrackParameterWriter().

float FW::RootTrackParameterWriter::m_theta {0.}
private

theta

Definition at line 66 of file RootTrackParameterWriter.hpp.

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

Referenced by RootTrackParameterWriter().

std::mutex FW::RootTrackParameterWriter::m_writeMutex
private

Mutex used to protect multi-threaded writes.

Definition at line 59 of file RootTrackParameterWriter.hpp.

View newest version in sPHENIX GitHub at line 59 of file RootTrackParameterWriter.hpp

float FW::RootTrackParameterWriter::m_z0 {0.}
private

longitudinal IP z0

Definition at line 64 of file RootTrackParameterWriter.hpp.

View newest version in sPHENIX GitHub at line 64 of file RootTrackParameterWriter.hpp

Referenced by RootTrackParameterWriter().


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