Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::RootAthenaNTupleReader Class Reference

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

+ Inheritance diagram for ActsExamples::RootAthenaNTupleReader:
+ Collaboration diagram for ActsExamples::RootAthenaNTupleReader:

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 Configconfig () const
 Readonly access to the config.
 
const BranchPointerWrapperbranches () 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::Loggerlogger () 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"}
 

Detailed Description

Definition at line 34 of file RootAthenaNTupleReader.hpp.

View newest version in sPHENIX GitHub at line 34 of file RootAthenaNTupleReader.hpp

Constructor & Destructor Documentation

ActsExamples::RootAthenaNTupleReader::RootAthenaNTupleReader ( const Config config,
Acts::Logging::Level  level 
)

Constructor

Parameters
configThe 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.

+ Here is the call graph for this function:

Member Function Documentation

std::pair<std::size_t, std::size_t> ActsExamples::RootAthenaNTupleReader::availableEvents ( ) const
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.

const BranchPointerWrapper& ActsExamples::RootAthenaNTupleReader::branches ( ) const
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.

const Config& ActsExamples::RootAthenaNTupleReader::config ( ) const
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.

const Acts::Logger& ActsExamples::RootAthenaNTupleReader::logger ( ) const
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.

std::string ActsExamples::RootAthenaNTupleReader::name ( ) const
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

ActsExamples::ProcessCode ActsExamples::RootAthenaNTupleReader::read ( const ActsExamples::AlgorithmContext context)
finalvirtual

Read out data from the input stream

Parameters
contextThe 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.

+ Here is the call graph for this function:

Member Data Documentation

BranchPointerWrapper ActsExamples::RootAthenaNTupleReader::m_branches
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().

Config ActsExamples::RootAthenaNTupleReader::m_cfg
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().

std::size_t ActsExamples::RootAthenaNTupleReader::m_events = 0
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().

TChain* ActsExamples::RootAthenaNTupleReader::m_inputChain = nullptr
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().

std::unique_ptr<const Acts::Logger> ActsExamples::RootAthenaNTupleReader::m_logger
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().

WriteDataHandle<Acts::Vertex<Acts::BoundTrackParameters> > ActsExamples::RootAthenaNTupleReader::m_outputBeamspotConstraint {this, "OutputBeamsspotConstraint"}
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().

WriteDataHandle<std::vector<Acts::Vector4> > ActsExamples::RootAthenaNTupleReader::m_outputRecoVtxParameters
private
Initial value:
{
this, "OutputRecoVertices"}

Definition at line 228 of file RootAthenaNTupleReader.hpp.

View newest version in sPHENIX GitHub at line 228 of file RootAthenaNTupleReader.hpp

Referenced by RootAthenaNTupleReader().

WriteDataHandle<TrackParametersContainer> ActsExamples::RootAthenaNTupleReader::m_outputTrackParameters
private
Initial value:
{
this, "OutputTrackParameters"}

Definition at line 222 of file RootAthenaNTupleReader.hpp.

View newest version in sPHENIX GitHub at line 222 of file RootAthenaNTupleReader.hpp

Referenced by RootAthenaNTupleReader().

WriteDataHandle<std::vector<Acts::Vector4> > ActsExamples::RootAthenaNTupleReader::m_outputTruthVtxParameters
private
Initial value:
{
this, "OutputTruthVertices"}

Definition at line 225 of file RootAthenaNTupleReader.hpp.

View newest version in sPHENIX GitHub at line 225 of file RootAthenaNTupleReader.hpp

Referenced by RootAthenaNTupleReader().

std::mutex ActsExamples::RootAthenaNTupleReader::m_read_mutex
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


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