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

Writes out SingleBoundTrackParamters into a TTree. More...

#include <acts/blob/sPHENIX/Examples/Io/Root/include/ActsExamples/Io/Root/RootTrackParameterWriter.hpp>

+ Inheritance diagram for ActsExamples::RootTrackParameterWriter:
+ Collaboration diagram for ActsExamples::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 ActsExamples::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 ActsExamples::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 ActsExamples::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

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

Virtual destructor.

Definition at line 56 of file RootTrackParameterWriter.cpp.

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

Member Function Documentation

ActsExamples::ProcessCode ActsExamples::RootTrackParameterWriter::endRun ( )
finaloverridevirtual

End-of-run hook.

Reimplemented from ActsExamples::WriterT< write_data_t >.

Definition at line 62 of file RootTrackParameterWriter.cpp.

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

References ACTS_INFO, and SUCCESS.

ActsExamples::ProcessCode ActsExamples::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 72 of file RootTrackParameterWriter.cpp.

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

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

Member Data Documentation

Config ActsExamples::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 ActsExamples::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 ActsExamples::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* ActsExamples::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* ActsExamples::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 ActsExamples::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 ActsExamples::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 ActsExamples::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 ActsExamples::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 ActsExamples::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: