ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
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>
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::Logger & | logger () 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 | |
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
FW::RootMaterialTrackReader::RootMaterialTrackReader | ( | const Config & | cfg | ) |
Constructor
cfg | The Configuration struct |
Definition at line 17 of file RootMaterialTrackReader.cpp.
View newest version in sPHENIX GitHub at line 17 of file RootMaterialTrackReader.cpp
References ACTS_DEBUG, FW::RootMaterialTrackReader::Config::fileList, m_cfg, m_events, m_inputChain, m_step_A, m_step_L0, m_step_length, m_step_rho, m_step_x, m_step_X0, m_step_y, m_step_z, m_step_Z, m_tL0, m_tX0, m_v_eta, m_v_phi, m_v_px, m_v_py, m_v_pz, m_v_x, m_v_y, m_v_z, and FW::RootMaterialTrackReader::Config::treeName.
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
|
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.
|
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.
|
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
|
finaloverridevirtual |
Read out data from the input stream
context | The 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.
|
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().
|
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().
|
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().
|
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
|
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().
|
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().
|
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().
|
private |
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().