LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
EventReadingAlgorithm class. More...
#include "EventReadingAlgorithm.h"
Classes | |
class | ExternalEventReadingParameters |
External event reading parameters class. More... | |
Public Member Functions | |
EventReadingAlgorithm () | |
Default constructor. More... | |
~EventReadingAlgorithm () | |
Destructor. More... | |
Private Member Functions | |
pandora::StatusCode | Initialize () |
pandora::StatusCode | Run () |
void | MoveToNextEventFile () |
Proceed to process next event file named in the input list. More... | |
pandora::StatusCode | ReplaceEventFileReader (const std::string &fileName) |
Replace the current event file reader with a new reader for the specified file. More... | |
pandora::FileType | GetFileType (const std::string &fileName) const |
Analyze a provided file name to extract the file type/extension. More... | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
Private Attributes | |
std::string | m_geometryFileName |
Name of the file containing geometry information. More... | |
std::string | m_eventFileName |
Name of the current file containing event information. More... | |
pandora::StringVector | m_eventFileNameVector |
Vector of file names to be processed. More... | |
unsigned int | m_skipToEvent |
Index of first event to consider in first input file. More... | |
bool | m_useLArCaloHits |
Whether to read lar calo hits, or standard pandora calo hits. More... | |
unsigned int | m_larCaloHitVersion |
LArCaloHit version for LArCaloHitFactory. More... | |
bool | m_useLArMCParticles |
Whether to read lar mc particles, or standard pandora mc particles. More... | |
unsigned int | m_larMCParticleVersion |
LArMCParticle version for LArMCParticleFactory. More... | |
pandora::FileReader * | m_pEventFileReader |
Address of the event file reader. More... | |
EventReadingAlgorithm class.
Definition at line 30 of file EventReadingAlgorithm.h.
lar_content::EventReadingAlgorithm::EventReadingAlgorithm | ( | ) |
Default constructor.
Definition at line 26 of file EventReadingAlgorithm.cc.
lar_content::EventReadingAlgorithm::~EventReadingAlgorithm | ( | ) |
Destructor.
Definition at line 38 of file EventReadingAlgorithm.cc.
References m_pEventFileReader.
|
private |
Analyze a provided file name to extract the file type/extension.
fileName | the file name |
Definition at line 152 of file EventReadingAlgorithm.cc.
Referenced by Initialize(), and ReplaceEventFileReader().
|
private |
Definition at line 45 of file EventReadingAlgorithm.cc.
References GetFileType(), m_eventFileName, m_geometryFileName, m_pEventFileReader, m_skipToEvent, and ReplaceEventFileReader().
|
private |
Proceed to process next event file named in the input list.
Definition at line 99 of file EventReadingAlgorithm.cc.
References m_eventFileName, m_eventFileNameVector, m_pEventFileReader, and ReplaceEventFileReader().
Referenced by Run().
|
private |
Definition at line 174 of file EventReadingAlgorithm.cc.
References m_eventFileName, lar_content::EventReadingAlgorithm::ExternalEventReadingParameters::m_eventFileNameList, m_eventFileNameVector, lar_content::EventReadingAlgorithm::ExternalEventReadingParameters::m_geometryFileName, m_geometryFileName, m_larCaloHitVersion, m_larMCParticleVersion, lar_content::EventReadingAlgorithm::ExternalEventReadingParameters::m_skipToEvent, m_skipToEvent, m_useLArCaloHits, and m_useLArMCParticles.
|
private |
Replace the current event file reader with a new reader for the specified file.
fileName | the file name |
Definition at line 120 of file EventReadingAlgorithm.cc.
References GetFileType(), m_larCaloHitVersion, m_larMCParticleVersion, m_pEventFileReader, m_useLArCaloHits, and m_useLArMCParticles.
Referenced by Initialize(), and MoveToNextEventFile().
|
private |
Definition at line 78 of file EventReadingAlgorithm.cc.
References m_eventFileName, m_pEventFileReader, and MoveToNextEventFile().
|
private |
Name of the current file containing event information.
Definition at line 82 of file EventReadingAlgorithm.h.
Referenced by Initialize(), MoveToNextEventFile(), ReadSettings(), and Run().
|
private |
Vector of file names to be processed.
Definition at line 83 of file EventReadingAlgorithm.h.
Referenced by MoveToNextEventFile(), and ReadSettings().
|
private |
Name of the file containing geometry information.
Definition at line 81 of file EventReadingAlgorithm.h.
Referenced by Initialize(), and ReadSettings().
|
private |
LArCaloHit version for LArCaloHitFactory.
Definition at line 87 of file EventReadingAlgorithm.h.
Referenced by ReadSettings(), and ReplaceEventFileReader().
|
private |
LArMCParticle version for LArMCParticleFactory.
Definition at line 89 of file EventReadingAlgorithm.h.
Referenced by ReadSettings(), and ReplaceEventFileReader().
|
private |
Address of the event file reader.
Definition at line 91 of file EventReadingAlgorithm.h.
Referenced by Initialize(), MoveToNextEventFile(), ReplaceEventFileReader(), Run(), and ~EventReadingAlgorithm().
|
private |
Index of first event to consider in first input file.
Definition at line 85 of file EventReadingAlgorithm.h.
Referenced by Initialize(), and ReadSettings().
|
private |
Whether to read lar calo hits, or standard pandora calo hits.
Definition at line 86 of file EventReadingAlgorithm.h.
Referenced by ReadSettings(), and ReplaceEventFileReader().
|
private |
Whether to read lar mc particles, or standard pandora mc particles.
Definition at line 88 of file EventReadingAlgorithm.h.
Referenced by ReadSettings(), and ReplaceEventFileReader().