ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/master/Examples/Io/Csv/include/ACTFW/Io/Csv/CsvParticleReader.hpp>
Classes | |
struct | Config |
Public Member Functions | |
CsvParticleReader (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 FW::AlgorithmContext &ctx) finaloverride |
Read out data from the input stream. | |
Public Member Functions inherited from FW::IReader | |
virtual | ~IReader ()=default |
Private Member Functions | |
const Acts::Logger & | logger () const |
Private Attributes | |
Config | m_cfg |
std::pair< size_t, size_t > | m_eventsRange |
std::unique_ptr< const Acts::Logger > | m_logger |
Read particles in the TrackML comma-separated-value format.
This reads one file per event in the configured input directory and filename. Files are assumed to be named using the following schema
event000000001-<stem>.csv event000000002-<stem>.csv
and each line in the file corresponds to one particle. The input filename can be configured and defaults to particles.csv
.
Definition at line 29 of file CsvParticleReader.hpp.
View newest version in sPHENIX GitHub at line 29 of file CsvParticleReader.hpp
FW::CsvParticleReader::CsvParticleReader | ( | const Config & | cfg, |
Acts::Logging::Level | lvl | ||
) |
Construct the particle reader.
cfg is the configuration object lvl is the logging level
Definition at line 24 of file CsvParticleReader.cpp.
View newest version in sPHENIX GitHub at line 24 of file CsvParticleReader.cpp
References FW::CsvParticleReader::Config::inputStem, m_cfg, and FW::CsvParticleReader::Config::outputParticles.
|
finaloverridevirtual |
Return the available events range.
Implements FW::IReader.
Definition at line 42 of file CsvParticleReader.cpp.
View newest version in sPHENIX GitHub at line 42 of file CsvParticleReader.cpp
|
inlineprivate |
Definition at line 59 of file CsvParticleReader.hpp.
View newest version in sPHENIX GitHub at line 59 of file CsvParticleReader.hpp
References m_logger.
|
finaloverridevirtual |
The reader name.
Implements FW::IReader.
|
finaloverridevirtual |
Read out data from the input stream.
Implements FW::IReader.
Definition at line 46 of file CsvParticleReader.cpp.
View newest version in sPHENIX GitHub at line 46 of file CsvParticleReader.cpp
References FW::WhiteBoard::add(), Acts::UnitConstants::e, FW::AlgorithmContext::eventNumber, FW::AlgorithmContext::eventStore, Acts::UnitConstants::GeV, Acts::UnitConstants::mm, Acts::UnitConstants::ns, particle, FW::perEventFilepath(), ActsFatras::Particle::setAbsMomentum(), ActsFatras::Particle::setDirection(), ActsFatras::Particle::setPosition4(), ActsFatras::Particle::setProcess(), and SUCCESS.
|
private |
Definition at line 55 of file CsvParticleReader.hpp.
View newest version in sPHENIX GitHub at line 55 of file CsvParticleReader.hpp
Referenced by CsvParticleReader().
|
private |
Definition at line 56 of file CsvParticleReader.hpp.
View newest version in sPHENIX GitHub at line 56 of file CsvParticleReader.hpp
|
private |
Definition at line 57 of file CsvParticleReader.hpp.
View newest version in sPHENIX GitHub at line 57 of file CsvParticleReader.hpp
Referenced by logger().