EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
Writes out SingleBoundTrackParamters into a TTree. More...
#include <acts/blob/sPHENIX/Examples/Io/Root/include/ActsExamples/Io/Root/RootTrackParameterWriter.hpp>
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::Logger & | logger () 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 | |
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
ActsExamples::RootTrackParameterWriter::RootTrackParameterWriter | ( | const Config & | cfg, |
Acts::Logging::Level | level = Acts::Logging::INFO |
||
) |
Constructor
cfg | Configuration struct |
level | Message level declaration |
Definition at line 20 of file RootTrackParameterWriter.cpp.
View newest version in sPHENIX GitHub at line 20 of file RootTrackParameterWriter.cpp
References ActsExamples::RootTrackParameterWriter::Config::collection, ActsExamples::RootTrackParameterWriter::Config::fileMode, ActsExamples::RootTrackParameterWriter::Config::filePath, m_cfg, m_d0, m_eventNr, m_outputFile, m_outputTree, m_phi, m_qp, m_theta, m_z0, and ActsExamples::RootTrackParameterWriter::Config::treeName.
|
override |
Virtual destructor.
Definition at line 56 of file RootTrackParameterWriter.cpp.
View newest version in sPHENIX GitHub at line 56 of file RootTrackParameterWriter.cpp
|
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
|
finaloverrideprotected |
Write method called by the base class.
[in] | ctx | is the algorithm context for event information |
[in] | trackParams | are 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.
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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
|
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().