Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Io/Root/include/ActsExamples/Io/Root/RootAthenaNTupleReader.hpp>
Classes | |
struct | BranchPointerWrapper |
struct | Config |
The nested configuration struct. More... | |
Public Member Functions | |
RootAthenaNTupleReader (const Config &config, Acts::Logging::Level level) | |
std::string | name () const final |
Framework name() method. | |
std::pair< std::size_t, std::size_t > | availableEvents () const final |
Return the available events range. | |
ActsExamples::ProcessCode | read (const ActsExamples::AlgorithmContext &context) final |
const Config & | config () const |
Readonly access to the config. | |
const BranchPointerWrapper & | branches () const |
Readonly access to the branches. | |
Public Member Functions inherited from ActsExamples::IReader | |
ProcessCode | internalExecute (const AlgorithmContext &context) final |
ProcessCode | initialize () override |
Fulfill the algorithm interface. | |
ProcessCode | finalize () override |
Fulfill the algorithm interface. | |
Public Member Functions inherited from ActsExamples::SequenceElement | |
virtual | ~SequenceElement ()=default |
const std::vector< const DataHandleBase * > & | writeHandles () const |
const std::vector< const DataHandleBase * > & | readHandles () const |
Private Member Functions | |
const Acts::Logger & | logger () const |
Private access to the logging instance. | |
Private Attributes | |
Config | m_cfg |
The config class. | |
std::unique_ptr< const Acts::Logger > | m_logger |
std::mutex | m_read_mutex |
mutex used to protect multi-threaded reads | |
std::size_t | m_events = 0 |
The number of events. | |
TChain * | m_inputChain = nullptr |
The input tree name. | |
BranchPointerWrapper | m_branches |
The handle to branches in current event. | |
WriteDataHandle < TrackParametersContainer > | m_outputTrackParameters |
WriteDataHandle< std::vector < Acts::Vector4 > > | m_outputTruthVtxParameters |
WriteDataHandle< std::vector < Acts::Vector4 > > | m_outputRecoVtxParameters |
WriteDataHandle< Acts::Vertex < Acts::BoundTrackParameters > > | m_outputBeamspotConstraint {this, "OutputBeamsspotConstraint"} |
Definition at line 34 of file RootAthenaNTupleReader.hpp.
View newest version in sPHENIX GitHub at line 34 of file RootAthenaNTupleReader.hpp
ActsExamples::RootAthenaNTupleReader::RootAthenaNTupleReader | ( | const Config & | config, |
Acts::Logging::Level | level | ||
) |
Constructor
config | The Configuration struct |
Definition at line 28 of file RootAthenaNTupleReader.cpp.
View newest version in sPHENIX GitHub at line 28 of file RootAthenaNTupleReader.cpp
References ACTS_DEBUG, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::beamspot_sigX, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::beamspot_sigY, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::beamspot_sigZ, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::beamspot_x, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::beamspot_y, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::beamspot_z, ActsExamples::WriteDataHandle< T >::initialize(), ActsExamples::RootAthenaNTupleReader::Config::inputFilePath, ActsExamples::RootAthenaNTupleReader::Config::inputTreeName, m_branches, m_cfg, m_events, m_inputChain, m_outputBeamspotConstraint, m_outputRecoVtxParameters, m_outputTrackParameters, m_outputTruthVtxParameters, ActsExamples::RootAthenaNTupleReader::Config::outputBeamspotConstraint, ActsExamples::RootAthenaNTupleReader::Config::outputRecoVtxParameters, ActsExamples::RootAthenaNTupleReader::Config::outputTrackParameters, ActsExamples::RootAthenaNTupleReader::Config::outputTruthVtxParameters, path, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::recovertex_x, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::recovertex_y, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::recovertex_z, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_cov_d0phi, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_cov_d0qOverP, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_cov_d0theta, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_cov_d0z0, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_cov_phiqOverP, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_cov_phitheta, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_cov_tehtaqOverP, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_cov_z0phi, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_cov_z0qOverP, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_cov_z0theta, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_d0, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_phi, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_qOverP, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_t, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_theta, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_var_d0, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_var_phi, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_var_qOverP, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_var_theta, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_var_z0, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_z, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::track_z0, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::truthvertex_t, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::truthvertex_tracks_idx, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::truthvertex_x, ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::truthvertex_y, and ActsExamples::RootAthenaNTupleReader::BranchPointerWrapper::truthvertex_z.
|
inlinefinalvirtual |
Return the available events range.
Implements ActsExamples::IReader.
Definition at line 185 of file RootAthenaNTupleReader.hpp.
View newest version in sPHENIX GitHub at line 185 of file RootAthenaNTupleReader.hpp
References m_events, and physmon_ckf_tracking::u.
|
inline |
Readonly access to the branches.
Definition at line 199 of file RootAthenaNTupleReader.hpp.
View newest version in sPHENIX GitHub at line 199 of file RootAthenaNTupleReader.hpp
References m_branches.
|
inline |
Readonly access to the config.
Definition at line 196 of file RootAthenaNTupleReader.hpp.
View newest version in sPHENIX GitHub at line 196 of file RootAthenaNTupleReader.hpp
References m_cfg.
|
inlineprivate |
Private access to the logging instance.
Definition at line 203 of file RootAthenaNTupleReader.hpp.
View newest version in sPHENIX GitHub at line 203 of file RootAthenaNTupleReader.hpp
References m_logger.
|
inlinefinalvirtual |
Framework name() method.
Implements ActsExamples::SequenceElement.
Definition at line 182 of file RootAthenaNTupleReader.hpp.
View newest version in sPHENIX GitHub at line 182 of file RootAthenaNTupleReader.hpp
|
finalvirtual |
Read out data from the input stream
context | The algorithm context |
Implements ActsExamples::IReader.
Definition at line 131 of file RootAthenaNTupleReader.cpp.
View newest version in sPHENIX GitHub at line 131 of file RootAthenaNTupleReader.cpp
References ACTS_DEBUG, ACTS_ERROR, ACTS_INFO, Acts::Test::cov, Acts::eBoundLoc0, Acts::eBoundLoc1, Acts::eBoundPhi, Acts::eBoundQOverP, Acts::eBoundTheta, Acts::eBoundTime, entry, ActsExamples::AlgorithmContext::eventNumber, i, testing::internal::move(), Acts::ParticleHypothesis::pion(), Acts::Test::pos, Acts::Vertex< input_track_t >::setCovariance(), Acts::Vertex< input_track_t >::setPosition(), SUCCESS, writeMapConfig::surface, and tc.
|
private |
The handle to branches in current event.
Definition at line 220 of file RootAthenaNTupleReader.hpp.
View newest version in sPHENIX GitHub at line 220 of file RootAthenaNTupleReader.hpp
Referenced by branches(), and RootAthenaNTupleReader().
|
private |
The config class.
Definition at line 206 of file RootAthenaNTupleReader.hpp.
View newest version in sPHENIX GitHub at line 206 of file RootAthenaNTupleReader.hpp
Referenced by config(), and RootAthenaNTupleReader().
|
private |
The number of events.
Definition at line 214 of file RootAthenaNTupleReader.hpp.
View newest version in sPHENIX GitHub at line 214 of file RootAthenaNTupleReader.hpp
Referenced by availableEvents(), and RootAthenaNTupleReader().
|
private |
The input tree name.
Definition at line 217 of file RootAthenaNTupleReader.hpp.
View newest version in sPHENIX GitHub at line 217 of file RootAthenaNTupleReader.hpp
Referenced by RootAthenaNTupleReader().
|
private |
Definition at line 208 of file RootAthenaNTupleReader.hpp.
View newest version in sPHENIX GitHub at line 208 of file RootAthenaNTupleReader.hpp
Referenced by logger().
|
private |
Definition at line 232 of file RootAthenaNTupleReader.hpp.
View newest version in sPHENIX GitHub at line 232 of file RootAthenaNTupleReader.hpp
Referenced by RootAthenaNTupleReader().
|
private |
Definition at line 228 of file RootAthenaNTupleReader.hpp.
View newest version in sPHENIX GitHub at line 228 of file RootAthenaNTupleReader.hpp
Referenced by RootAthenaNTupleReader().
|
private |
Definition at line 222 of file RootAthenaNTupleReader.hpp.
View newest version in sPHENIX GitHub at line 222 of file RootAthenaNTupleReader.hpp
Referenced by RootAthenaNTupleReader().
|
private |
Definition at line 225 of file RootAthenaNTupleReader.hpp.
View newest version in sPHENIX GitHub at line 225 of file RootAthenaNTupleReader.hpp
Referenced by RootAthenaNTupleReader().
|
private |
mutex used to protect multi-threaded reads
Definition at line 211 of file RootAthenaNTupleReader.hpp.
View newest version in sPHENIX GitHub at line 211 of file RootAthenaNTupleReader.hpp