EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::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/sPHENIX/Examples/Io/Root/include/ActsExamples/Io/Root/RootMaterialTrackReader.hpp>

+ Inheritance diagram for ActsExamples::RootMaterialTrackReader:
+ Collaboration diagram for ActsExamples::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 ActsExamples::AlgorithmContext &context) finaloverride
 
- Public Member Functions inherited from ActsExamples::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_dx = new std::vector<float>
 step x direction
 
std::vector< float > * m_step_dy = new std::vector<float>
 step y direction
 
std::vector< float > * m_step_dz = new std::vector<float>
 step z direction
 
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

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

Destructor.

Definition at line 59 of file RootMaterialTrackReader.cpp.

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

Member Function Documentation

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

Return the available events range.

Implements ActsExamples::IReader.

Definition at line 76 of file RootMaterialTrackReader.cpp.

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

References Acts::UnitConstants::u.

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

Private access to the logging instance.

Definition at line 77 of file RootMaterialTrackReader.hpp.

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

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

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

Framework name() method.

Implements ActsExamples::IReader.

Definition at line 71 of file RootMaterialTrackReader.cpp.

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

Referenced by eicpy.verify.PythiaHistograms::__init__(), and eicpy.verify.DjangohHistograms::__init__().

+ Here is the caller graph for this function:

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

Read out data from the input stream

Parameters
contextThe algorithm context

Fill the position & the material

Implements ActsExamples::IReader.

Definition at line 80 of file RootMaterialTrackReader.cpp.

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

References ACTS_DEBUG, ACTS_VERBOSE, ActsExamples::WhiteBoard::add(), Acts::MaterialInteraction::direction, ActsExamples::AlgorithmContext::eventNumber, ActsExamples::AlgorithmContext::eventStore, Acts::Material::fromMassDensity(), Acts::MaterialInteraction::materialSlab, Acts::MaterialInteraction::position, Acts::UnitConstants::s, and SUCCESS.

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::RootMaterialTrackReader::m_cfg
private

The config class.

Definition at line 80 of file RootMaterialTrackReader.hpp.

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

Referenced by logger(), and RootMaterialTrackReader().

size_t ActsExamples::RootMaterialTrackReader::m_events = 0
private

The number of events.

Definition at line 86 of file RootMaterialTrackReader.hpp.

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

Referenced by RootMaterialTrackReader().

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

The input tree name.

Definition at line 89 of file RootMaterialTrackReader.hpp.

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

Referenced by RootMaterialTrackReader().

std::mutex ActsExamples::RootMaterialTrackReader::m_read_mutex
private

mutex used to protect multi-threaded reads

Definition at line 83 of file RootMaterialTrackReader.hpp.

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

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

step material A

Definition at line 111 of file RootMaterialTrackReader.hpp.

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

Referenced by RootMaterialTrackReader().

std::vector<float>* ActsExamples::RootMaterialTrackReader::m_step_dx = new std::vector<float>
private

step x direction

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>* ActsExamples::RootMaterialTrackReader::m_step_dy = new std::vector<float>
private

step y direction

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>* ActsExamples::RootMaterialTrackReader::m_step_dz = new std::vector<float>
private

step z direction

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>* ActsExamples::RootMaterialTrackReader::m_step_L0 = new std::vector<float>
private

step material l0

Definition at line 110 of file RootMaterialTrackReader.hpp.

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

Referenced by RootMaterialTrackReader().

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

step length

Definition at line 108 of file RootMaterialTrackReader.hpp.

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

Referenced by RootMaterialTrackReader().

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

step material rho

Definition at line 113 of file RootMaterialTrackReader.hpp.

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

Referenced by RootMaterialTrackReader().

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

step x 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>* ActsExamples::RootMaterialTrackReader::m_step_X0 = new std::vector<float>
private

step material x0

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>* ActsExamples::RootMaterialTrackReader::m_step_y = new std::vector<float>
private

step y 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>* ActsExamples::RootMaterialTrackReader::m_step_z = new std::vector<float>
private

step z position

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>* ActsExamples::RootMaterialTrackReader::m_step_Z = new std::vector<float>
private

step material Z

Definition at line 112 of file RootMaterialTrackReader.hpp.

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

Referenced by RootMaterialTrackReader().

float ActsExamples::RootMaterialTrackReader::m_tL0
private

thickness in X0/L0

Definition at line 100 of file RootMaterialTrackReader.hpp.

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

Referenced by RootMaterialTrackReader().

float ActsExamples::RootMaterialTrackReader::m_tX0
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 ActsExamples::RootMaterialTrackReader::m_v_eta
private

start eta direction

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 ActsExamples::RootMaterialTrackReader::m_v_phi
private

start phi 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 ActsExamples::RootMaterialTrackReader::m_v_px
private

start global momentum x

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 ActsExamples::RootMaterialTrackReader::m_v_py
private

start global momentum y

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 ActsExamples::RootMaterialTrackReader::m_v_pz
private

start global momentum z

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 ActsExamples::RootMaterialTrackReader::m_v_x
private

start global x

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 ActsExamples::RootMaterialTrackReader::m_v_y
private

start global y

Definition at line 92 of file RootMaterialTrackReader.hpp.

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

Referenced by RootMaterialTrackReader().

float ActsExamples::RootMaterialTrackReader::m_v_z
private

start global z

Definition at line 93 of file RootMaterialTrackReader.hpp.

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

Referenced by RootMaterialTrackReader().


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