EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Examples/Io/Csv/include/ActsExamples/Io/Csv/CsvPlanarClusterReader.hpp>
Classes | |
struct | Config |
Public Member Functions | |
CsvPlanarClusterReader (const Config &cfg, Acts::Logging::Level lvl) | |
std::string | name () const finaloverride |
The reader name. | |
std::pair< size_t, size_t > | availableEvents () const finaloverride |
Return the available events range. | |
ProcessCode | read (const ActsExamples::AlgorithmContext &ctx) finaloverride |
Read out data from the input stream. | |
Public Member Functions inherited from ActsExamples::IReader | |
virtual | ~IReader ()=default |
Private Member Functions | |
const Acts::Logger & | logger () const |
Private Attributes | |
Config | m_cfg |
std::unordered_map < Acts::GeometryIdentifier, const Acts::Surface * > | m_surfaces |
std::pair< size_t, size_t > | m_eventsRange |
std::unique_ptr< const Acts::Logger > | m_logger |
Read in a planar cluster collection in comma-separated-value format.
This reads three files per event file in the configured input directory. By default it reads file in the current working directory. Files are assumed to be 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 39 of file CsvPlanarClusterReader.hpp.
View newest version in sPHENIX GitHub at line 39 of file CsvPlanarClusterReader.hpp
ActsExamples::CsvPlanarClusterReader::CsvPlanarClusterReader | ( | const Config & | cfg, |
Acts::Logging::Level | lvl | ||
) |
Construct the cluster reader.
cfg is the configuration object lvl is the logging level
Definition at line 27 of file CsvPlanarClusterReader.cpp.
View newest version in sPHENIX GitHub at line 27 of file CsvPlanarClusterReader.cpp
References Acts::GeometryObject::geometryId(), m_cfg, m_surfaces, ActsExamples::CsvPlanarClusterReader::Config::outputClusters, ActsExamples::CsvPlanarClusterReader::Config::outputHitIds, ActsExamples::CsvPlanarClusterReader::Config::outputHitParticlesMap, ActsExamples::CsvPlanarClusterReader::Config::outputSimulatedHits, surface(), and ActsExamples::CsvPlanarClusterReader::Config::trackingGeometry.
|
finaloverridevirtual |
Return the available events range.
Implements ActsExamples::IReader.
Definition at line 62 of file CsvPlanarClusterReader.cpp.
View newest version in sPHENIX GitHub at line 62 of file CsvPlanarClusterReader.cpp
|
inlineprivate |
Definition at line 76 of file CsvPlanarClusterReader.hpp.
View newest version in sPHENIX GitHub at line 76 of file CsvPlanarClusterReader.hpp
References m_logger.
|
finaloverridevirtual |
The reader name.
Implements ActsExamples::IReader.
Referenced by eicpy.verify.PythiaHistograms::__init__(), and eicpy.verify.DjangohHistograms::__init__().
|
finaloverridevirtual |
Read out data from the input stream.
Implements ActsExamples::IReader.
Definition at line 160 of file CsvPlanarClusterReader.cpp.
View newest version in sPHENIX GitHub at line 160 of file CsvPlanarClusterReader.cpp
References ACTS_FATAL, ActsExamples::WhiteBoard::add(), c, Acts::Test::cov, ActsExamples::AlgorithmContext::eventNumber, ActsExamples::AlgorithmContext::eventStore, ActsExamples::AlgorithmContext::geoContext, Acts::Surface::getSharedPtr(), Acts::UnitConstants::GeV, Acts::Surface::globalToLocal(), it, ActsExamples::makeRange(), Acts::UnitConstants::mm, charm_jet_coverage::mom, Acts::UnitConstants::ns, pos(), SUCCESS, surface(), Acts::Test::time, and Acts::GeometryIdentifier::value().
|
private |
Definition at line 71 of file CsvPlanarClusterReader.hpp.
View newest version in sPHENIX GitHub at line 71 of file CsvPlanarClusterReader.hpp
Referenced by CsvPlanarClusterReader().
|
private |
Definition at line 73 of file CsvPlanarClusterReader.hpp.
View newest version in sPHENIX GitHub at line 73 of file CsvPlanarClusterReader.hpp
|
private |
Definition at line 74 of file CsvPlanarClusterReader.hpp.
View newest version in sPHENIX GitHub at line 74 of file CsvPlanarClusterReader.hpp
Referenced by logger().
|
private |
Definition at line 72 of file CsvPlanarClusterReader.hpp.
View newest version in sPHENIX GitHub at line 72 of file CsvPlanarClusterReader.hpp
Referenced by CsvPlanarClusterReader().