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

Reads in MaterialTrack information from a root file and fills it into a format to be understood by the MaterialMapping algorithm. More...

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

+ Inheritance diagram for FW::RootMaterialTrackReader:
+ Collaboration diagram for FW::RootMaterialTrackReader:

Classes

struct  Config
 The nested configuration struct. More...
 

Public Member Functions

 RootMaterialTrackReader (const Config &cfg)
 
 ~RootMaterialTrackReader ()
 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 access to the logging instance.
 

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.
 
float m_v_x
 start global x
 
float m_v_y
 start global y
 
float m_v_z
 start global z
 
float m_v_px
 start global momentum x
 
float m_v_py
 start global momentum y
 
float m_v_pz
 start global momentum z
 
float m_v_phi
 start phi direction
 
float m_v_eta
 start eta direction
 
float m_tX0
 thickness in X0/L0
 
float m_tL0
 thickness in X0/L0
 
std::vector< float > * m_step_x = new std::vector<float>
 step x position
 
std::vector< float > * m_step_y = new std::vector<float>
 step y position
 
std::vector< float > * m_step_z = new std::vector<float>
 step z position
 
std::vector< float > * m_step_length = new std::vector<float>
 step length
 
std::vector< float > * m_step_X0 = new std::vector<float>
 step material x0
 
std::vector< float > * m_step_L0 = new std::vector<float>
 step material l0
 
std::vector< float > * m_step_A = new std::vector<float>
 step material A
 
std::vector< float > * m_step_Z = new std::vector<float>
 step material Z
 
std::vector< float > * m_step_rho
 step material rho
 

Detailed Description

Reads in MaterialTrack information from a root file and fills it into a format to be understood by the MaterialMapping algorithm.

Definition at line 30 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 30 of file RootMaterialTrackReader.hpp

Constructor & Destructor Documentation

FW::RootMaterialTrackReader::RootMaterialTrackReader ( const Config cfg)
FW::RootMaterialTrackReader::~RootMaterialTrackReader ( )

Destructor.

Definition at line 55 of file RootMaterialTrackReader.cpp.

View newest version in sPHENIX GitHub at line 55 of file RootMaterialTrackReader.cpp

Member Function Documentation

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

Return the available events range.

Implements FW::IReader.

Definition at line 71 of file RootMaterialTrackReader.cpp.

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

References Acts::UnitConstants::u.

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

Private access to the logging instance.

Definition at line 76 of file RootMaterialTrackReader.hpp.

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

References FW::RootMaterialTrackReader::Config::logger, and m_cfg.

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

Framework name() method.

Implements FW::IReader.

Definition at line 67 of file RootMaterialTrackReader.cpp.

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

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

Read out data from the input stream

Parameters
contextThe algorithm context

Fill the position & the material

Implements FW::IReader.

Definition at line 75 of file RootMaterialTrackReader.cpp.

View newest version in sPHENIX GitHub at line 75 of file RootMaterialTrackReader.cpp

References ACTS_DEBUG, ACTS_VERBOSE, FW::WhiteBoard::add(), FW::AlgorithmContext::eventNumber, FW::AlgorithmContext::eventStore, Acts::MaterialInteraction::materialProperties, Acts::MaterialInteraction::position, and SUCCESS.

+ Here is the call graph for this function:

Member Data Documentation

Config FW::RootMaterialTrackReader::m_cfg
private

The config class.

Definition at line 79 of file RootMaterialTrackReader.hpp.

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

Referenced by logger(), and RootMaterialTrackReader().

size_t FW::RootMaterialTrackReader::m_events = 0
private

The number of events.

Definition at line 85 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 85 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

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

The input tree name.

Definition at line 88 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 88 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

std::mutex FW::RootMaterialTrackReader::m_read_mutex
private

mutex used to protect multi-threaded reads

Definition at line 82 of file RootMaterialTrackReader.hpp.

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

std::vector<float>* FW::RootMaterialTrackReader::m_step_A = new std::vector<float>
private

step material A

Definition at line 107 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 107 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

std::vector<float>* FW::RootMaterialTrackReader::m_step_L0 = new std::vector<float>
private

step material l0

Definition at line 106 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 106 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

std::vector<float>* FW::RootMaterialTrackReader::m_step_length = new std::vector<float>
private

step length

Definition at line 104 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 104 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

std::vector<float>* FW::RootMaterialTrackReader::m_step_rho
private
Initial value:
=
new std::vector<float>

step material rho

Definition at line 109 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 109 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

std::vector<float>* FW::RootMaterialTrackReader::m_step_x = new std::vector<float>
private

step x position

Definition at line 101 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 101 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

std::vector<float>* FW::RootMaterialTrackReader::m_step_X0 = new std::vector<float>
private

step material x0

Definition at line 105 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 105 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

std::vector<float>* FW::RootMaterialTrackReader::m_step_y = new std::vector<float>
private

step y position

Definition at line 102 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 102 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

std::vector<float>* FW::RootMaterialTrackReader::m_step_z = new std::vector<float>
private

step z position

Definition at line 103 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 103 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

std::vector<float>* FW::RootMaterialTrackReader::m_step_Z = new std::vector<float>
private

step material Z

Definition at line 108 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 108 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

float FW::RootMaterialTrackReader::m_tL0
private

thickness in X0/L0

Definition at line 99 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 99 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

float FW::RootMaterialTrackReader::m_tX0
private

thickness in X0/L0

Definition at line 98 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 98 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

float FW::RootMaterialTrackReader::m_v_eta
private

start eta direction

Definition at line 97 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 97 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

float FW::RootMaterialTrackReader::m_v_phi
private

start phi direction

Definition at line 96 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 96 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

float FW::RootMaterialTrackReader::m_v_px
private

start global momentum x

Definition at line 93 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 93 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

float FW::RootMaterialTrackReader::m_v_py
private

start global momentum y

Definition at line 94 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 94 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

float FW::RootMaterialTrackReader::m_v_pz
private

start global momentum z

Definition at line 95 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 95 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

float FW::RootMaterialTrackReader::m_v_x
private

start global x

Definition at line 90 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 90 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

float FW::RootMaterialTrackReader::m_v_y
private

start global y

Definition at line 91 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 91 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().

float FW::RootMaterialTrackReader::m_v_z
private

start global z

Definition at line 92 of file RootMaterialTrackReader.hpp.

View newest version in sPHENIX GitHub at line 92 of file RootMaterialTrackReader.hpp

Referenced by RootMaterialTrackReader().


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