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

#include <acts/blob/sPHENIX/Examples/Io/Csv/include/ActsExamples/Io/Csv/CsvPlanarClusterWriter.hpp>

+ Inheritance diagram for ActsExamples::CsvPlanarClusterWriter:
+ Collaboration diagram for ActsExamples::CsvPlanarClusterWriter:

Classes

struct  Config
 

Public Member Functions

 CsvPlanarClusterWriter (const Config &config, Acts::Logging::Level level)
 
const Configconfig () const
 Readonly access to the config.
 
- Public Member Functions inherited from ActsExamples::WriterT< GeometryIdMultimap< Acts::PlanarModuleCluster > >
 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 &ctx, const GeometryIdMultimap< Acts::PlanarModuleCluster > &clusters) override
 
- Protected Member Functions inherited from ActsExamples::WriterT< GeometryIdMultimap< Acts::PlanarModuleCluster > >
const Acts::Loggerlogger () const
 

Private Attributes

Config m_cfg
 
ReadDataHandle< SimHitContainerm_inputSimHits {this, "InputSimHits"}
 

Detailed Description

Write out a planar cluster collection in comma-separated-value format.

This writes multiples file per event containing information about the space points, local constituent cells, and hit-particle truth mapping into the configured output directory. By default it writes to the current working directory. Files are named using the following schema

event000000001-cells.csv
event000000001-hits.csv
event000000001-truth.csv
event000000002-cells.csv
event000000002-hits.csv
event000000002-truth.csv
...

and each line in the file corresponds to one hit/cluster.

Definition at line 49 of file CsvPlanarClusterWriter.hpp.

View newest version in sPHENIX GitHub at line 49 of file CsvPlanarClusterWriter.hpp

Constructor & Destructor Documentation

ActsExamples::CsvPlanarClusterWriter::CsvPlanarClusterWriter ( const Config config,
Acts::Logging::Level  level 
)

Construct the cluster writer.

Parameters
configis the configuration object
levelis the logging level

Definition at line 36 of file CsvPlanarClusterWriter.cpp.

View newest version in sPHENIX GitHub at line 36 of file CsvPlanarClusterWriter.cpp

References ActsExamples::ReadDataHandle< T >::initialize(), ActsExamples::CsvPlanarClusterWriter::Config::inputSimHits, m_cfg, m_inputSimHits, and ActsExamples::CsvPlanarClusterWriter::Config::trackingGeometry.

+ Here is the call graph for this function:

Member Function Documentation

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

Readonly access to the config.

Definition at line 72 of file CsvPlanarClusterWriter.hpp.

View newest version in sPHENIX GitHub at line 72 of file CsvPlanarClusterWriter.hpp

References m_cfg.

ActsExamples::ProcessCode ActsExamples::CsvPlanarClusterWriter::writeT ( const AlgorithmContext ctx,
const GeometryIdMultimap< Acts::PlanarModuleCluster > &  clusters 
)
overrideprotectedvirtual

Type-specific write implementation.

Parameters
[in]ctxis the algorithm context
[in]particlesare the particle to be written

Implements ActsExamples::WriterT< GeometryIdMultimap< Acts::PlanarModuleCluster > >.

Definition at line 52 of file CsvPlanarClusterWriter.cpp.

View newest version in sPHENIX GitHub at line 52 of file CsvPlanarClusterWriter.cpp

References ACTS_ERROR, ACTS_FATAL, Acts::PhysicalConstants::c, ActsExamples::CellDataLegacy::channel0, ActsExamples::CellDataLegacy::channel1, ActsExamples::TruthHitData::deltae, ActsExamples::TruthHitData::deltapx, ActsExamples::TruthHitData::deltapy, ActsExamples::TruthHitData::deltapz, Acts::PlanarModuleCluster::digitizationCells(), entry, ActsExamples::AlgorithmContext::eventNumber, ActsExamples::AlgorithmContext::geoContext, ActsExamples::TruthHitData::geometry_id, ActsExamples::HitData::geometry_id, Acts::SourceLink::get(), Acts::UnitConstants::GeV, ActsExamples::groupByModule(), ActsExamples::TruthHitData::hit_id, ActsExamples::HitData::hit_id, ActsExamples::CellDataLegacy::hit_id, ambiguity_solver_full_chain::idx, ActsExamples::TruthHitData::index, it, Acts::Surface::localToGlobal(), m_cfg(), Acts::UnitConstants::mm, Acts::UnitConstants::ns, Dataset::parameters, Acts::Measurement< indices_t, kSize >::parameters(), ActsExamples::TruthHitData::particle_id, ActsExamples::perEventFilepath(), Acts::Measurement< indices_t, kSize >::sourceLink(), SUCCESS, ActsExamples::HitData::t, ActsExamples::TruthHitData::te, ActsExamples::CellDataLegacy::timestamp, ActsExamples::TruthHitData::tpx, ActsExamples::TruthHitData::tpy, ActsExamples::TruthHitData::tpz, ActsExamples::TruthHitData::tt, ActsExamples::TruthHitData::tx, ActsExamples::TruthHitData::ty, ActsExamples::TruthHitData::tz, ActsExamples::CellDataLegacy::value, ActsExamples::HitData::x, ActsExamples::HitData::y, and ActsExamples::HitData::z.

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::CsvPlanarClusterWriter::m_cfg
private

Definition at line 84 of file CsvPlanarClusterWriter.hpp.

View newest version in sPHENIX GitHub at line 84 of file CsvPlanarClusterWriter.hpp

Referenced by config(), and CsvPlanarClusterWriter().

ReadDataHandle<SimHitContainer> ActsExamples::CsvPlanarClusterWriter::m_inputSimHits {this, "InputSimHits"}
private

Definition at line 86 of file CsvPlanarClusterWriter.hpp.

View newest version in sPHENIX GitHub at line 86 of file CsvPlanarClusterWriter.hpp

Referenced by CsvPlanarClusterWriter().


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