Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::RootTrackParameterWriter Exception Referencefinal

#include <acts/blob/sPHENIX/Examples/Io/Root/include/ActsExamples/Io/Root/RootTrackParameterWriter.hpp>

+ Inheritance diagram for ActsExamples::RootTrackParameterWriter:
+ Collaboration diagram for ActsExamples::RootTrackParameterWriter:

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 Configconfig () 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::Loggerlogger () const
 

Private Attributes

Config m_cfg
 The config class.
 
ReadDataHandle
< ProtoTrackContainer
m_inputProtoTracks
 
ReadDataHandle
< SimParticleContainer
m_inputParticles {this, "InputParticles"}
 
ReadDataHandle< SimHitContainerm_inputSimHits {this, "InputSimHits"}
 
ReadDataHandle< HitParticlesMapm_inputMeasurementParticlesMap
 
ReadDataHandle< HitSimHitsMapm_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.
 

Detailed Description

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

Member Typedef Documentation

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

Constructor & Destructor Documentation

ActsExamples::RootTrackParameterWriter::~RootTrackParameterWriter ( )
override

Virtual destructor.

Definition at line 110 of file RootTrackParameterWriter.cpp.

View newest version in sPHENIX GitHub at line 110 of file RootTrackParameterWriter.cpp

Member Function Documentation

const Config& ActsExamples::RootTrackParameterWriter::config ( ) const
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.

ActsExamples::ProcessCode ActsExamples::RootTrackParameterWriter::finalize ( )
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.

+ Here is the call graph for this function:

ActsExamples::ProcessCode ActsExamples::RootTrackParameterWriter::writeT ( const AlgorithmContext ctx,
const TrackParametersContainer trackParams 
)
overrideprotected

Write method called by the base class.

Parameters
[in]ctxis the algorithm context for event information
[in]trackParamsare 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.

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::RootTrackParameterWriter::m_cfg
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().

float ActsExamples::RootTrackParameterWriter::m_eta {NaNfloat}
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().

int ActsExamples::RootTrackParameterWriter::m_eventNr {0}
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().

ReadDataHandle<HitParticlesMap> ActsExamples::RootTrackParameterWriter::m_inputMeasurementParticlesMap
private
Initial value:
{
this, "InputMeasurementParticlesMap"}

Definition at line 96 of file RootTrackParameterWriter.hpp.

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

Referenced by RootTrackParameterWriter().

ReadDataHandle<HitSimHitsMap> ActsExamples::RootTrackParameterWriter::m_inputMeasurementSimHitsMap
private
Initial value:
{
this, "InputMeasurementSimHitsMap"}

Definition at line 98 of file RootTrackParameterWriter.hpp.

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

Referenced by RootTrackParameterWriter().

ReadDataHandle<SimParticleContainer> ActsExamples::RootTrackParameterWriter::m_inputParticles {this, "InputParticles"}
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().

ReadDataHandle<ProtoTrackContainer> ActsExamples::RootTrackParameterWriter::m_inputProtoTracks
private
Initial value:
{this,
"InputProtoTracks"}

Definition at line 92 of file RootTrackParameterWriter.hpp.

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

Referenced by RootTrackParameterWriter().

ReadDataHandle<SimHitContainer> ActsExamples::RootTrackParameterWriter::m_inputSimHits {this, "InputSimHits"}
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().

float ActsExamples::RootTrackParameterWriter::m_loc0 {NaNfloat}
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().

float ActsExamples::RootTrackParameterWriter::m_loc1 {NaNfloat}
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().

TFile* ActsExamples::RootTrackParameterWriter::m_outputFile {nullptr}
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().

TTree* ActsExamples::RootTrackParameterWriter::m_outputTree {nullptr}
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().

float ActsExamples::RootTrackParameterWriter::m_p {NaNfloat}
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().

float ActsExamples::RootTrackParameterWriter::m_phi {NaNfloat}
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().

float ActsExamples::RootTrackParameterWriter::m_pt {NaNfloat}
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().

float ActsExamples::RootTrackParameterWriter::m_qop {NaNfloat}
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().

int ActsExamples::RootTrackParameterWriter::m_t_charge {0}
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

float ActsExamples::RootTrackParameterWriter::m_t_loc0 {NaNfloat}
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().

float ActsExamples::RootTrackParameterWriter::m_t_loc1 {NaNfloat}
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().

float ActsExamples::RootTrackParameterWriter::m_t_phi {NaNfloat}
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().

float ActsExamples::RootTrackParameterWriter::m_t_qop {NaNfloat}
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().

float ActsExamples::RootTrackParameterWriter::m_t_theta {NaNfloat}
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().

float ActsExamples::RootTrackParameterWriter::m_t_time {NaNfloat}
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().

float ActsExamples::RootTrackParameterWriter::m_theta {NaNfloat}
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().

float ActsExamples::RootTrackParameterWriter::m_time {NaNfloat}
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().

bool ActsExamples::RootTrackParameterWriter::m_truthMatched = false
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().

std::mutex ActsExamples::RootTrackParameterWriter::m_writeMutex
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


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