Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::EDM4hepMultiTrajectoryWriter Class Reference

#include <acts/blob/sPHENIX/Examples/Io/EDM4hep/include/ActsExamples/Io/EDM4hep/EDM4hepMultiTrajectoryWriter.hpp>

+ Inheritance diagram for ActsExamples::EDM4hepMultiTrajectoryWriter:
+ Collaboration diagram for ActsExamples::EDM4hepMultiTrajectoryWriter:

Classes

struct  Config
 

Public Member Functions

 EDM4hepMultiTrajectoryWriter (const Config &config, Acts::Logging::Level level=Acts::Logging::INFO)
 
ProcessCode finalize () final
 Finalize the algorithm.
 
const Configconfig () const
 Readonly access to the config.
 
- Public Member Functions inherited from ActsExamples::WriterT< TrajectoriesContainer >
 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.
 
ProcessCode finalize () override
 No-op default implementation.
 
- 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 &context, const TrajectoriesContainer &trajectories) final
 Write method called by the base class.
 
- Protected Member Functions inherited from ActsExamples::WriterT< TrajectoriesContainer >
const Acts::Loggerlogger () const
 

Private Attributes

Config m_cfg
 
podio::ROOTFrameWriter m_writer
 
ReadDataHandle< IndexMultimap
< ActsFatras::Barcode > > 
m_inputMeasurementParticlesMap {this, "InputMeasurementParticlesMaps"}
 

Detailed Description

Write out the tracks reconstructed using Combinatorial Kalman Filter to EDM4hep.

Inpersistent information:

  • trajectory state incomplete
  • relation to the particles

Known issues:

  • curvature parameter
  • track state local coordinates are written to (D0,Z0)
  • covariance incorrect

Definition at line 34 of file EDM4hepMultiTrajectoryWriter.hpp.

View newest version in sPHENIX GitHub at line 34 of file EDM4hepMultiTrajectoryWriter.hpp

Constructor & Destructor Documentation

ActsExamples::EDM4hepMultiTrajectoryWriter::EDM4hepMultiTrajectoryWriter ( const Config config,
Acts::Logging::Level  level = Acts::Logging::INFO 
)

constructor

Parameters
configis the configuration object
levelis the output logging level

Definition at line 22 of file EDM4hepMultiTrajectoryWriter.cpp.

View newest version in sPHENIX GitHub at line 22 of file EDM4hepMultiTrajectoryWriter.cpp

References ActsExamples::ReadDataHandle< T >::initialize(), ActsExamples::EDM4hepMultiTrajectoryWriter::Config::inputMeasurementParticlesMap, ActsExamples::EDM4hepMultiTrajectoryWriter::Config::inputTrajectories, m_cfg, and m_inputMeasurementParticlesMap.

+ Here is the call graph for this function:

Member Function Documentation

const Config& ActsExamples::EDM4hepMultiTrajectoryWriter::config ( ) const
inline

Readonly access to the config.

Definition at line 59 of file EDM4hepMultiTrajectoryWriter.hpp.

View newest version in sPHENIX GitHub at line 59 of file EDM4hepMultiTrajectoryWriter.hpp

References m_cfg.

ActsExamples::ProcessCode ActsExamples::EDM4hepMultiTrajectoryWriter::finalize ( )
finalvirtual

Finalize the algorithm.

Implements ActsExamples::SequenceElement.

Definition at line 40 of file EDM4hepMultiTrajectoryWriter.cpp.

View newest version in sPHENIX GitHub at line 40 of file EDM4hepMultiTrajectoryWriter.cpp

References m_writer, and SUCCESS.

ProcessCode ActsExamples::EDM4hepMultiTrajectoryWriter::writeT ( const AlgorithmContext context,
const TrajectoriesContainer trajectories 
)
finalprotectedvirtual

Write method called by the base class.

Parameters
[in]contextis the algorithm context for consistency
[in]tracksis the track collection

Implements ActsExamples::WriterT< TrajectoriesContainer >.

Definition at line 46 of file EDM4hepMultiTrajectoryWriter.cpp.

View newest version in sPHENIX GitHub at line 46 of file EDM4hepMultiTrajectoryWriter.cpp

References ActsExamples::EDM4hepMultiTrajectoryWriter::Config::Bz, ActsExamples::AlgorithmContext::geoContext, m_cfg, m_inputMeasurementParticlesMap, m_writer, testing::internal::move(), ActsExamples::EDM4hepMultiTrajectoryWriter::Config::particleHypothesis, SUCCESS, and ActsExamples::EDM4hepUtil::writeTrajectory().

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::EDM4hepMultiTrajectoryWriter::m_cfg
private

Definition at line 69 of file EDM4hepMultiTrajectoryWriter.hpp.

View newest version in sPHENIX GitHub at line 69 of file EDM4hepMultiTrajectoryWriter.hpp

Referenced by config(), EDM4hepMultiTrajectoryWriter(), and writeT().

ReadDataHandle<IndexMultimap<ActsFatras::Barcode> > ActsExamples::EDM4hepMultiTrajectoryWriter::m_inputMeasurementParticlesMap {this, "InputMeasurementParticlesMaps"}
private

Definition at line 74 of file EDM4hepMultiTrajectoryWriter.hpp.

View newest version in sPHENIX GitHub at line 74 of file EDM4hepMultiTrajectoryWriter.hpp

Referenced by EDM4hepMultiTrajectoryWriter(), and writeT().

podio::ROOTFrameWriter ActsExamples::EDM4hepMultiTrajectoryWriter::m_writer
private

Definition at line 71 of file EDM4hepMultiTrajectoryWriter.hpp.

View newest version in sPHENIX GitHub at line 71 of file EDM4hepMultiTrajectoryWriter.hpp

Referenced by finalize(), and writeT().


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