Analysis Software
Documentation for sPHENIX simulation software
|
Reads in TrackParameter information from a root file and fills it into a Acts::BoundTrackParameter format. More...
#include <acts/blob/sPHENIX/Examples/Io/Root/include/ActsExamples/Io/Root/RootTrajectorySummaryReader.hpp>
Classes | |
struct | Config |
The nested configuration struct. More... | |
Public Member Functions | |
RootTrajectorySummaryReader (const Config &config, Acts::Logging::Level level) | |
~RootTrajectorySummaryReader () override | |
Destructor. | |
std::string | name () const override |
Framework name() method. | |
std::pair< size_t, size_t > | availableEvents () const override |
Return the available events range. | |
ProcessCode | read (const ActsExamples::AlgorithmContext &context) override |
const Config & | config () const |
Readonly access to the config. | |
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::Logger & | logger () const |
Private access to the logging instance. | |
Private Attributes | |
std::unique_ptr< const Acts::Logger > | m_logger |
The logger. | |
Config | m_cfg |
The config class. | |
WriteDataHandle< std::vector < Acts::BoundTrackParameters > > | m_outputTrackParameters {this, "OutputTrackParameters"} |
WriteDataHandle < SimParticleContainer > | m_outputParticles |
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. | |
uint32_t | m_eventNr {0} |
the event number | |
std::vector< uint32_t > * | m_multiTrajNr |
the multi-trajectory number | |
std::vector< unsigned int > * | m_subTrajNr |
std::vector< long long > | m_entryNumbers = {} |
std::vector< unsigned int > * | m_nStates |
The number of states. | |
std::vector< unsigned int > * | m_nMeasurements |
The number of measurements. | |
std::vector< unsigned int > * | m_nOutliers |
The number of outliers. | |
std::vector< unsigned int > * | m_nHoles |
The number of holes. | |
std::vector< float > * | m_chi2Sum = new std::vector<float> |
The total chi2. | |
std::vector< unsigned int > * | m_NDF |
std::vector< std::vector < double > > * | m_measurementChi2 |
std::vector< std::vector < double > > * | m_outlierChi2 |
The chi2 on all outlier states. | |
std::vector< std::vector < double > > * | m_measurementVolume |
std::vector< std::vector < double > > * | m_measurementLayer |
std::vector< std::vector < double > > * | m_outlierVolume |
The volume id of the outliers. | |
std::vector< std::vector < double > > * | m_outlierLayer |
The layer id of the outliers. | |
std::vector< unsigned int > * | m_nMajorityHits |
std::vector< uint64_t > * | m_majorityParticleId |
The particle Id of the majority particle. | |
std::vector< int > * | m_t_charge |
Charge of majority particle. | |
std::vector< float > * | m_t_time |
Time of majority particle. | |
std::vector< float > * | m_t_vx |
Vertex x positions of majority particle. | |
std::vector< float > * | m_t_vy |
Vertex y positions of majority particle. | |
std::vector< float > * | m_t_vz |
Vertex z positions of majority particle. | |
std::vector< float > * | m_t_px |
Initial momenta px of majority particle. | |
std::vector< float > * | m_t_py |
Initial momenta py of majority particle. | |
std::vector< float > * | m_t_pz |
Initial momenta pz of majority particle. | |
std::vector< float > * | m_t_theta |
Initial momenta theta of majority particle. | |
std::vector< float > * | m_t_phi |
Initial momenta phi of majority particle. | |
std::vector< float > * | m_t_pT |
Initial momenta pT of majority particle. | |
std::vector< float > * | m_t_eta |
Initial momenta eta of majority particle. | |
std::vector< bool > * | m_hasFittedParams |
If the track has fitted parameter. | |
std::vector< float > * | m_eLOC0_fit |
Fitted parameters eBoundLoc0 of track. | |
std::vector< float > * | m_eLOC1_fit |
Fitted parameters eBoundLoc1 of track. | |
std::vector< float > * | m_ePHI_fit |
Fitted parameters ePHI of track. | |
std::vector< float > * | m_eTHETA_fit |
Fitted parameters eTHETA of track. | |
std::vector< float > * | m_eQOP_fit |
Fitted parameters eQOP of track. | |
std::vector< float > * | m_eT_fit |
Fitted parameters eT of track. | |
std::vector< float > * | m_err_eLOC0_fit |
Fitted parameters eLOC err of track. | |
std::vector< float > * | m_err_eLOC1_fit |
Fitted parameters eBoundLoc1 err of track. | |
std::vector< float > * | m_err_ePHI_fit |
Fitted parameters ePHI err of track. | |
std::vector< float > * | m_err_eTHETA_fit |
Fitted parameters eTHETA err of track. | |
std::vector< float > * | m_err_eQOP_fit |
Fitted parameters eQOP err of track. | |
std::vector< float > * | m_err_eT_fit |
Fitted parameters eT err of track. | |
Reads in TrackParameter information from a root file and fills it into a Acts::BoundTrackParameter format.
Definition at line 37 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 37 of file RootTrajectorySummaryReader.hpp
ActsExamples::RootTrajectorySummaryReader::RootTrajectorySummaryReader | ( | const Config & | config, |
Acts::Logging::Level | level | ||
) |
Constructor
config | The Configuration struct |
level | The log level |
Definition at line 27 of file RootTrajectorySummaryReader.cpp.
View newest version in sPHENIX GitHub at line 27 of file RootTrajectorySummaryReader.cpp
References Acts::getDefaultLogger(), and name().
|
override |
Destructor.
Definition at line 114 of file RootTrajectorySummaryReader.cpp.
View newest version in sPHENIX GitHub at line 114 of file RootTrajectorySummaryReader.cpp
References Acts::detail_vtc::m_nHoles, Acts::detail_vtc::m_nMeasurements, and Acts::detail_vtc::m_nOutliers.
|
overridevirtual |
Return the available events range.
Implements ActsExamples::IReader.
Definition at line 110 of file RootTrajectorySummaryReader.cpp.
View newest version in sPHENIX GitHub at line 110 of file RootTrajectorySummaryReader.cpp
References physmon_ckf_tracking::u.
|
inline |
Readonly access to the config.
Definition at line 71 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 71 of file RootTrajectorySummaryReader.hpp
References m_cfg.
|
inlineprivate |
Private access to the logging instance.
Definition at line 78 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 78 of file RootTrajectorySummaryReader.hpp
References m_logger.
|
inlineoverridevirtual |
Framework name() method.
Implements ActsExamples::SequenceElement.
Definition at line 60 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 60 of file RootTrajectorySummaryReader.hpp
Referenced by RootTrajectorySummaryReader().
|
overridevirtual |
Read out data from the input stream
context | The algorithm context |
Implements ActsExamples::IReader.
Definition at line 158 of file RootTrajectorySummaryReader.cpp.
View newest version in sPHENIX GitHub at line 158 of file RootTrajectorySummaryReader.cpp
References ACTS_DEBUG, ACTS_INFO, ACTS_WARNING, entry, ActsExamples::AlgorithmContext::eventNumber, i, m_cfg(), testing::internal::move(), Acts::ParticleHypothesis::pion(), ActsFatras::Particle::setDirection(), ActsFatras::Particle::setParticleId(), ActsFatras::Particle::setPosition4(), and SUCCESS.
|
private |
The config class.
Definition at line 81 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 81 of file RootTrajectorySummaryReader.hpp
Referenced by config().
|
private |
The total chi2.
Definition at line 117 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 117 of file RootTrajectorySummaryReader.hpp
|
private |
Fitted parameters eBoundLoc0 of track.
Definition at line 170 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 170 of file RootTrajectorySummaryReader.hpp
|
private |
Fitted parameters eBoundLoc1 of track.
Definition at line 172 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 172 of file RootTrajectorySummaryReader.hpp
|
private |
The entry numbers for accessing events in increased order (there could be multiple entries corresponding to one event number)
Definition at line 107 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 107 of file RootTrajectorySummaryReader.hpp
|
private |
Fitted parameters ePHI of track.
Definition at line 174 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 174 of file RootTrajectorySummaryReader.hpp
|
private |
Fitted parameters eQOP of track.
Definition at line 178 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 178 of file RootTrajectorySummaryReader.hpp
|
private |
Fitted parameters eLOC err of track.
Definition at line 182 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 182 of file RootTrajectorySummaryReader.hpp
|
private |
Fitted parameters eBoundLoc1 err of track.
Definition at line 184 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 184 of file RootTrajectorySummaryReader.hpp
|
private |
Fitted parameters ePHI err of track.
Definition at line 186 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 186 of file RootTrajectorySummaryReader.hpp
|
private |
Fitted parameters eQOP err of track.
Definition at line 190 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 190 of file RootTrajectorySummaryReader.hpp
|
private |
Fitted parameters eT err of track.
Definition at line 192 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 192 of file RootTrajectorySummaryReader.hpp
|
private |
Fitted parameters eTHETA err of track.
Definition at line 188 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 188 of file RootTrajectorySummaryReader.hpp
|
private |
Fitted parameters eT of track.
Definition at line 180 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 180 of file RootTrajectorySummaryReader.hpp
|
private |
Fitted parameters eTHETA of track.
Definition at line 176 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 176 of file RootTrajectorySummaryReader.hpp
|
private |
the event number
Definition at line 98 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 98 of file RootTrajectorySummaryReader.hpp
|
private |
The number of events.
Definition at line 93 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 93 of file RootTrajectorySummaryReader.hpp
|
private |
If the track has fitted parameter.
Definition at line 168 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 168 of file RootTrajectorySummaryReader.hpp
|
private |
The input tree name.
Definition at line 96 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 96 of file RootTrajectorySummaryReader.hpp
|
private |
The logger.
Definition at line 75 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 75 of file RootTrajectorySummaryReader.hpp
Referenced by logger().
|
private |
The particle Id of the majority particle.
Definition at line 141 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 141 of file RootTrajectorySummaryReader.hpp
|
private |
The chi2 on all measurement states
Definition at line 121 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 121 of file RootTrajectorySummaryReader.hpp
|
private |
The layer id of the measurements
Definition at line 129 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 129 of file RootTrajectorySummaryReader.hpp
|
private |
The volume id of the measurements
Definition at line 126 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 126 of file RootTrajectorySummaryReader.hpp
|
private |
the multi-trajectory number
Definition at line 99 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 99 of file RootTrajectorySummaryReader.hpp
|
private |
The number of ndf of the measurements+outliers
Definition at line 118 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 118 of file RootTrajectorySummaryReader.hpp
|
private |
The number of holes.
Definition at line 115 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 115 of file RootTrajectorySummaryReader.hpp
|
private |
The number of hits from majority particle
Definition at line 138 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 138 of file RootTrajectorySummaryReader.hpp
|
private |
The number of measurements.
Definition at line 111 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 111 of file RootTrajectorySummaryReader.hpp
|
private |
The number of outliers.
Definition at line 113 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 113 of file RootTrajectorySummaryReader.hpp
|
private |
The number of states.
Definition at line 109 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 109 of file RootTrajectorySummaryReader.hpp
|
private |
The chi2 on all outlier states.
Definition at line 124 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 124 of file RootTrajectorySummaryReader.hpp
|
private |
The layer id of the outliers.
Definition at line 134 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 134 of file RootTrajectorySummaryReader.hpp
|
private |
The volume id of the outliers.
Definition at line 132 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 132 of file RootTrajectorySummaryReader.hpp
|
private |
Definition at line 86 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 86 of file RootTrajectorySummaryReader.hpp
|
private |
Definition at line 84 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 84 of file RootTrajectorySummaryReader.hpp
|
private |
mutex used to protect multi-threaded reads
Definition at line 90 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 90 of file RootTrajectorySummaryReader.hpp
|
private |
the multi-trajectory sub-trajectory number
Definition at line 101 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 101 of file RootTrajectorySummaryReader.hpp
|
private |
Charge of majority particle.
Definition at line 143 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 143 of file RootTrajectorySummaryReader.hpp
|
private |
Initial momenta eta of majority particle.
Definition at line 165 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 165 of file RootTrajectorySummaryReader.hpp
|
private |
Initial momenta phi of majority particle.
Definition at line 161 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 161 of file RootTrajectorySummaryReader.hpp
|
private |
Initial momenta pT of majority particle.
Definition at line 163 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 163 of file RootTrajectorySummaryReader.hpp
|
private |
Initial momenta px of majority particle.
Definition at line 153 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 153 of file RootTrajectorySummaryReader.hpp
|
private |
Initial momenta py of majority particle.
Definition at line 155 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 155 of file RootTrajectorySummaryReader.hpp
|
private |
Initial momenta pz of majority particle.
Definition at line 157 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 157 of file RootTrajectorySummaryReader.hpp
|
private |
Initial momenta theta of majority particle.
Definition at line 159 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 159 of file RootTrajectorySummaryReader.hpp
|
private |
Time of majority particle.
Definition at line 145 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 145 of file RootTrajectorySummaryReader.hpp
|
private |
Vertex x positions of majority particle.
Definition at line 147 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 147 of file RootTrajectorySummaryReader.hpp
|
private |
Vertex y positions of majority particle.
Definition at line 149 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 149 of file RootTrajectorySummaryReader.hpp
|
private |
Vertex z positions of majority particle.
Definition at line 151 of file RootTrajectorySummaryReader.hpp.
View newest version in sPHENIX GitHub at line 151 of file RootTrajectorySummaryReader.hpp