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

Reads in vertex and tracks information from a root file and fills it into a format to be understood by the vertexing algorithms. More...

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

+ Inheritance diagram for FW::RootVertexAndTracksReader:
+ Collaboration diagram for FW::RootVertexAndTracksReader:

Classes

struct  Config
 The nested configuration struct. More...
 

Public Member Functions

 RootVertexAndTracksReader (Config cfg, Acts::Logging::Level lvl)
 
 ~RootVertexAndTracksReader () finaloverride
 Destructor.
 
std::string name () const finaloverride
 Framework name() method.
 
std::pair< size_t, size_t > availableEvents () const finaloverride
 Return the available events range.
 
ProcessCode read (const FW::AlgorithmContext &context) finaloverride
 
- Public Member Functions inherited from FW::IReader
virtual ~IReader ()=default
 

Private Member Functions

const Acts::Loggerlogger () const
 

Private Attributes

Config m_cfg
 The config class.
 
std::mutex m_read_mutex
 mutex used to protect multi-threaded reads
 
size_t m_events = 0
 The number of events.
 
TChain * m_inputChain = nullptr
 The input tree name.
 
int m_eventNr = 0
 
std::vector< double > * m_ptrVx = new std::vector<double>
 
std::vector< double > * m_ptrVy = new std::vector<double>
 
std::vector< double > * m_ptrVz = new std::vector<double>
 
std::vector< double > * m_ptrD0 = new std::vector<double>
 
std::vector< double > * m_ptrZ0 = new std::vector<double>
 
std::vector< double > * m_ptrPhi = new std::vector<double>
 
std::vector< double > * m_ptrTheta = new std::vector<double>
 
std::vector< double > * m_ptrQP = new std::vector<double>
 
std::vector< double > * m_ptrTime = new std::vector<double>
 
std::vector< int > * m_ptrVtxID = new std::vector<int>
 
std::vector< std::vector
< double > > * 
m_ptrTrkCov
 
std::unique_ptr< const
Acts::Logger
m_logger
 

Detailed Description

Reads in vertex and tracks information from a root file and fills it into a format to be understood by the vertexing algorithms.

Definition at line 29 of file RootVertexAndTracksReader.hpp.

View newest version in sPHENIX GitHub at line 29 of file RootVertexAndTracksReader.hpp

Constructor & Destructor Documentation

FW::RootVertexAndTracksReader::RootVertexAndTracksReader ( Config  cfg,
Acts::Logging::Level  lvl 
)

Constructor

Parameters
cfgThe Configuration struct
lvlMessage level declaration

Definition at line 19 of file RootVertexAndTracksReader.cpp.

View newest version in sPHENIX GitHub at line 19 of file RootVertexAndTracksReader.cpp

References ACTS_DEBUG, FW::RootVertexAndTracksReader::Config::fileList, m_cfg, m_eventNr, m_events, m_inputChain, m_ptrD0, m_ptrPhi, m_ptrQP, m_ptrTheta, m_ptrTime, m_ptrTrkCov, m_ptrVtxID, m_ptrVx, m_ptrVy, m_ptrVz, m_ptrZ0, and FW::RootVertexAndTracksReader::Config::treeName.

FW::RootVertexAndTracksReader::~RootVertexAndTracksReader ( )
finaloverride

Destructor.

Definition at line 53 of file RootVertexAndTracksReader.cpp.

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

Member Function Documentation

std::pair< size_t, size_t > FW::RootVertexAndTracksReader::availableEvents ( ) const
finaloverridevirtual

Return the available events range.

Implements FW::IReader.

Definition at line 71 of file RootVertexAndTracksReader.cpp.

View newest version in sPHENIX GitHub at line 71 of file RootVertexAndTracksReader.cpp

References Acts::UnitConstants::u.

const Acts::Logger& FW::RootVertexAndTracksReader::logger ( ) const
inlineprivate

Definition at line 84 of file RootVertexAndTracksReader.hpp.

View newest version in sPHENIX GitHub at line 84 of file RootVertexAndTracksReader.hpp

References m_logger.

std::string FW::RootVertexAndTracksReader::name ( ) const
finaloverridevirtual

Framework name() method.

Implements FW::IReader.

Definition at line 67 of file RootVertexAndTracksReader.cpp.

View newest version in sPHENIX GitHub at line 67 of file RootVertexAndTracksReader.cpp

FW::ProcessCode FW::RootVertexAndTracksReader::read ( const FW::AlgorithmContext context)
finaloverridevirtual

Read out data from the input stream

Parameters
contextThe algorithm context

Implements FW::IReader.

Definition at line 76 of file RootVertexAndTracksReader.cpp.

View newest version in sPHENIX GitHub at line 76 of file RootVertexAndTracksReader.cpp

References ACTS_DEBUG, ACTS_VERBOSE, FW::WhiteBoard::add(), FW::AlgorithmContext::eventNumber, FW::AlgorithmContext::eventStore, FW::AlgorithmContext::geoContext, incremental_prev_tag::idx, FW::SimVertex::position4, SUCCESS, FW::VertexAndTracks::tracks, and FW::VertexAndTracks::vertex.

+ Here is the call graph for this function:

Member Data Documentation

Config FW::RootVertexAndTracksReader::m_cfg
private

The config class.

Definition at line 60 of file RootVertexAndTracksReader.hpp.

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

Referenced by RootVertexAndTracksReader().

int FW::RootVertexAndTracksReader::m_eventNr = 0
private

Definition at line 67 of file RootVertexAndTracksReader.hpp.

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

Referenced by RootVertexAndTracksReader().

size_t FW::RootVertexAndTracksReader::m_events = 0
private

The number of events.

Definition at line 64 of file RootVertexAndTracksReader.hpp.

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

Referenced by RootVertexAndTracksReader().

TChain* FW::RootVertexAndTracksReader::m_inputChain = nullptr
private

The input tree name.

Definition at line 66 of file RootVertexAndTracksReader.hpp.

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

Referenced by RootVertexAndTracksReader().

std::unique_ptr<const Acts::Logger> FW::RootVertexAndTracksReader::m_logger
private

Definition at line 82 of file RootVertexAndTracksReader.hpp.

View newest version in sPHENIX GitHub at line 82 of file RootVertexAndTracksReader.hpp

Referenced by logger().

std::vector<double>* FW::RootVertexAndTracksReader::m_ptrD0 = new std::vector<double>
private

Definition at line 72 of file RootVertexAndTracksReader.hpp.

View newest version in sPHENIX GitHub at line 72 of file RootVertexAndTracksReader.hpp

Referenced by RootVertexAndTracksReader().

std::vector<double>* FW::RootVertexAndTracksReader::m_ptrPhi = new std::vector<double>
private

Definition at line 74 of file RootVertexAndTracksReader.hpp.

View newest version in sPHENIX GitHub at line 74 of file RootVertexAndTracksReader.hpp

Referenced by RootVertexAndTracksReader().

std::vector<double>* FW::RootVertexAndTracksReader::m_ptrQP = new std::vector<double>
private

Definition at line 76 of file RootVertexAndTracksReader.hpp.

View newest version in sPHENIX GitHub at line 76 of file RootVertexAndTracksReader.hpp

Referenced by RootVertexAndTracksReader().

std::vector<double>* FW::RootVertexAndTracksReader::m_ptrTheta = new std::vector<double>
private

Definition at line 75 of file RootVertexAndTracksReader.hpp.

View newest version in sPHENIX GitHub at line 75 of file RootVertexAndTracksReader.hpp

Referenced by RootVertexAndTracksReader().

std::vector<double>* FW::RootVertexAndTracksReader::m_ptrTime = new std::vector<double>
private

Definition at line 77 of file RootVertexAndTracksReader.hpp.

View newest version in sPHENIX GitHub at line 77 of file RootVertexAndTracksReader.hpp

Referenced by RootVertexAndTracksReader().

std::vector<std::vector<double> >* FW::RootVertexAndTracksReader::m_ptrTrkCov
private
Initial value:
=
new std::vector<std::vector<double>>

Definition at line 79 of file RootVertexAndTracksReader.hpp.

View newest version in sPHENIX GitHub at line 79 of file RootVertexAndTracksReader.hpp

Referenced by RootVertexAndTracksReader().

std::vector<int>* FW::RootVertexAndTracksReader::m_ptrVtxID = new std::vector<int>
private

Definition at line 78 of file RootVertexAndTracksReader.hpp.

View newest version in sPHENIX GitHub at line 78 of file RootVertexAndTracksReader.hpp

Referenced by RootVertexAndTracksReader().

std::vector<double>* FW::RootVertexAndTracksReader::m_ptrVx = new std::vector<double>
private

Definition at line 69 of file RootVertexAndTracksReader.hpp.

View newest version in sPHENIX GitHub at line 69 of file RootVertexAndTracksReader.hpp

Referenced by RootVertexAndTracksReader().

std::vector<double>* FW::RootVertexAndTracksReader::m_ptrVy = new std::vector<double>
private

Definition at line 70 of file RootVertexAndTracksReader.hpp.

View newest version in sPHENIX GitHub at line 70 of file RootVertexAndTracksReader.hpp

Referenced by RootVertexAndTracksReader().

std::vector<double>* FW::RootVertexAndTracksReader::m_ptrVz = new std::vector<double>
private

Definition at line 71 of file RootVertexAndTracksReader.hpp.

View newest version in sPHENIX GitHub at line 71 of file RootVertexAndTracksReader.hpp

Referenced by RootVertexAndTracksReader().

std::vector<double>* FW::RootVertexAndTracksReader::m_ptrZ0 = new std::vector<double>
private

Definition at line 73 of file RootVertexAndTracksReader.hpp.

View newest version in sPHENIX GitHub at line 73 of file RootVertexAndTracksReader.hpp

Referenced by RootVertexAndTracksReader().

std::mutex FW::RootVertexAndTracksReader::m_read_mutex
private

mutex used to protect multi-threaded reads

Definition at line 62 of file RootVertexAndTracksReader.hpp.

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


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