Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Io/Csv/include/ActsExamples/Io/Csv/CsvPlanarClusterWriter.hpp>
Classes | |
struct | Config |
Public Member Functions | |
CsvPlanarClusterWriter (const Config &config, Acts::Logging::Level level) | |
const Config & | config () 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::Logger & | logger () const |
Private Attributes | |
Config | m_cfg |
ReadDataHandle< SimHitContainer > | m_inputSimHits {this, "InputSimHits"} |
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
ActsExamples::CsvPlanarClusterWriter::CsvPlanarClusterWriter | ( | const Config & | config, |
Acts::Logging::Level | level | ||
) |
Construct the cluster writer.
config | is the configuration object |
level | is 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.
|
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.
|
overrideprotectedvirtual |
Type-specific write implementation.
[in] | ctx | is the algorithm context |
[in] | particles | are 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.
|
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().
|
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().