Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Io/Root/include/ActsExamples/Io/Root/RootTrackParameterWriter.hpp>
Classes | |
struct | Config |
Public Types | |
using | HitParticlesMap = IndexMultimap< ActsFatras::Barcode > |
using | HitSimHitsMap = IndexMultimap< Index > |
Public Member Functions | |
RootTrackParameterWriter (const Config &config, Acts::Logging::Level level=Acts::Logging::INFO) | |
~RootTrackParameterWriter () override | |
Virtual destructor. | |
ProcessCode | finalize () override |
End-of-run hook. | |
const Config & | config () const |
Get readonly access to the config parameters. | |
Public Member Functions inherited from ActsExamples::WriterT< write_data_t > | |
WriterT (std::string objectName, std::string writerName, Acts::Logging::Level level) | |
std::string | name () const override |
Provide the name of the writer. | |
ProcessCode | write (const AlgorithmContext &context) override |
Read the object and call the type-specific member function. | |
Public Member Functions inherited from ActsExamples::IWriter | |
ProcessCode | internalExecute (const AlgorithmContext &context) final |
ProcessCode | initialize () override |
Fulfil 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 |
Protected Member Functions | |
ProcessCode | writeT (const AlgorithmContext &ctx, const TrackParametersContainer &trackParams) override |
Write method called by the base class. | |
Protected Member Functions inherited from ActsExamples::WriterT< write_data_t > | |
virtual ProcessCode | writeT (const AlgorithmContext &context, const write_data_t &t)=0 |
const Acts::Logger & | logger () const |
Private Attributes | |
Config | m_cfg |
The config class. | |
ReadDataHandle < ProtoTrackContainer > | m_inputProtoTracks |
ReadDataHandle < SimParticleContainer > | m_inputParticles {this, "InputParticles"} |
ReadDataHandle< SimHitContainer > | m_inputSimHits {this, "InputSimHits"} |
ReadDataHandle< HitParticlesMap > | m_inputMeasurementParticlesMap |
ReadDataHandle< HitSimHitsMap > | m_inputMeasurementSimHitsMap |
std::mutex | m_writeMutex |
Mutex used to protect multi-threaded writes. | |
TFile * | m_outputFile {nullptr} |
The output file. | |
TTree * | m_outputTree {nullptr} |
The output tree. | |
int | m_eventNr {0} |
the event number of | |
float | m_loc0 {NaNfloat} |
loc0 | |
float | m_loc1 {NaNfloat} |
loc1 | |
float | m_phi {NaNfloat} |
phi | |
float | m_theta {NaNfloat} |
theta | |
float | m_qop {NaNfloat} |
q/p | |
float | m_time {NaNfloat} |
time | |
float | m_p {NaNfloat} |
p | |
float | m_pt {NaNfloat} |
pt | |
float | m_eta {NaNfloat} |
eta | |
int | m_t_charge {0} |
Truth particle charge. | |
float | m_t_loc0 {NaNfloat} |
Truth parameter loc0. | |
float | m_t_loc1 {NaNfloat} |
Truth parameter loc1. | |
float | m_t_phi {NaNfloat} |
Truth parameter phi. | |
float | m_t_theta {NaNfloat} |
Truth parameter theta. | |
float | m_t_qop {NaNfloat} |
Truth parameter qop. | |
float | m_t_time {NaNfloat} |
Truth parameter time. | |
bool | m_truthMatched = false |
Whether the seed is matched with truth. | |
Write out the track parameters from both simulation and those estimated from reconstructed seeds into a TTree
Each entry in the TTree corresponds to one seed for optimum writing speed. The event number is part of the written data.
Definition at line 40 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 40 of file RootTrackParameterWriter.hpp
Definition at line 42 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 42 of file RootTrackParameterWriter.hpp
Definition at line 43 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 43 of file RootTrackParameterWriter.hpp
ActsExamples::RootTrackParameterWriter::RootTrackParameterWriter | ( | const Config & | config, |
Acts::Logging::Level | level = Acts::Logging::INFO |
||
) |
Constructor
config | Configuration struct |
level | Message level declaration |
Definition at line 39 of file RootTrackParameterWriter.cpp.
View newest version in sPHENIX GitHub at line 39 of file RootTrackParameterWriter.cpp
References ActsExamples::RootTrackParameterWriter::Config::fileMode, ActsExamples::RootTrackParameterWriter::Config::filePath, ActsExamples::ReadDataHandle< T >::initialize(), ActsExamples::RootTrackParameterWriter::Config::inputMeasurementParticlesMap, ActsExamples::RootTrackParameterWriter::Config::inputMeasurementSimHitsMap, ActsExamples::RootTrackParameterWriter::Config::inputParticles, ActsExamples::RootTrackParameterWriter::Config::inputProtoTracks, ActsExamples::RootTrackParameterWriter::Config::inputSimHits, m_cfg, m_eta, m_eventNr, m_inputMeasurementParticlesMap, m_inputMeasurementSimHitsMap, m_inputParticles, m_inputProtoTracks, m_inputSimHits, m_loc0, m_loc1, m_outputFile, m_outputTree, m_p, m_phi, m_pt, m_qop, m_t_loc0, m_t_loc1, m_t_phi, m_t_qop, m_t_theta, m_t_time, m_theta, m_time, m_truthMatched, path, and ActsExamples::RootTrackParameterWriter::Config::treeName.
|
override |
Virtual destructor.
Definition at line 110 of file RootTrackParameterWriter.cpp.
View newest version in sPHENIX GitHub at line 110 of file RootTrackParameterWriter.cpp
|
inline |
Get readonly access to the config parameters.
Definition at line 80 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 80 of file RootTrackParameterWriter.hpp
References m_cfg.
|
overridevirtual |
End-of-run hook.
Reimplemented from ActsExamples::WriterT< write_data_t >.
Definition at line 116 of file RootTrackParameterWriter.cpp.
View newest version in sPHENIX GitHub at line 116 of file RootTrackParameterWriter.cpp
References ACTS_INFO, m_cfg(), and SUCCESS.
|
overrideprotected |
Write method called by the base class.
[in] | ctx | is the algorithm context for event information |
[in] | trackParams | are parameters to write |
Definition at line 127 of file RootTrackParameterWriter.cpp.
View newest version in sPHENIX GitHub at line 127 of file RootTrackParameterWriter.cpp
References ACTS_DEBUG, ACTS_VERBOSE, ActsExamples::averageSimHits(), Acts::eBoundLoc0, Acts::eBoundLoc1, Acts::eBoundPhi, Acts::eBoundQOverP, Acts::eBoundTheta, Acts::eBoundTime, Acts::eMom0, Acts::ePos0, Acts::ePos1, Acts::eTime, ActsExamples::AlgorithmContext::eventNumber, ActsExamples::AlgorithmContext::geoContext, ActsExamples::identifyContributingParticles(), logger(), ActsExamples::makeRange(), norm, merge_hashes::p, particle, particles, ActsTests::PropagationDatasets::phi, SUCCESS, writeMapConfig::surface, and ActsTests::PropagationDatasets::theta.
|
private |
The config class.
Definition at line 90 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 90 of file RootTrackParameterWriter.hpp
Referenced by config(), and RootTrackParameterWriter().
|
private |
eta
Definition at line 114 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 114 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
the event number of
Definition at line 104 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 104 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
Definition at line 96 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 96 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
Definition at line 98 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 98 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
Definition at line 94 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 94 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
Definition at line 92 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 92 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
Definition at line 95 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 95 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
loc0
Definition at line 106 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 106 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
loc1
Definition at line 107 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 107 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
The output file.
Definition at line 102 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 102 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
The output tree.
Definition at line 103 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 103 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
p
Definition at line 112 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 112 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
phi
Definition at line 108 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 108 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
pt
Definition at line 113 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 113 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
q/p
Definition at line 110 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 110 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
Truth particle charge.
Definition at line 116 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 116 of file RootTrackParameterWriter.hpp
|
private |
Truth parameter loc0.
Definition at line 117 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 117 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
Truth parameter loc1.
Definition at line 118 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 118 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
Truth parameter phi.
Definition at line 119 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 119 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
Truth parameter qop.
Definition at line 121 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 121 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
Truth parameter theta.
Definition at line 120 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 120 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
Truth parameter time.
Definition at line 122 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 122 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
theta
Definition at line 109 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 109 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
time
Definition at line 111 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 111 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
Whether the seed is matched with truth.
Definition at line 123 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 123 of file RootTrackParameterWriter.hpp
Referenced by RootTrackParameterWriter().
|
private |
Mutex used to protect multi-threaded writes.
Definition at line 101 of file RootTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 101 of file RootTrackParameterWriter.hpp