XmlFileReader class.
More...
#include "XmlFileReader.h"
|
| XmlFileReader (const pandora::Pandora &pandora, const std::string &fileName) |
| Constructor.
|
|
| ~XmlFileReader () |
| Destructor.
|
|
template<typename T > |
StatusCode | ReadVariable (const std::string &xmlKey, T &t) |
| Read a variable from the file.
|
|
template<> |
StatusCode | ReadVariable (const std::string &xmlKey, IntVector &t) |
|
template<> |
StatusCode | ReadVariable (const std::string &xmlKey, FloatVector &t) |
|
StatusCode | ReadGeometry () |
| Read the current geometry information from the file.
|
|
StatusCode | ReadEvent () |
| Read an entire pandora event from the file, recreating the stored objects.
|
|
StatusCode | GoToNextGeometry () |
| Skip to next geometry container in the file.
|
|
StatusCode | GoToNextEvent () |
| Skip to next event container in the file.
|
|
const std::string & | GetFileName () const |
| Get the file name.
|
|
FileType | GetFileType () const |
| Get the file type.
|
|
template<typename PARAMETERS , typename OBJECT > |
StatusCode | SetFactory (ObjectFactory< PARAMETERS, OBJECT > *const pFactory) |
| Set the factory to use for all instantiations and parameter persistence.
|
|
template<> |
void | ReplaceCurrentFactory (ObjectFactory< object_creation::CaloHit::Parameters, object_creation::CaloHit::Object > *const pFactory) |
|
template<> |
void | ReplaceCurrentFactory (ObjectFactory< object_creation::Track::Parameters, object_creation::Track::Object > *const pFactory) |
|
template<> |
void | ReplaceCurrentFactory (ObjectFactory< object_creation::MCParticle::Parameters, object_creation::MCParticle::Object > *const pFactory) |
|
template<> |
void | ReplaceCurrentFactory (ObjectFactory< object_creation::Geometry::SubDetector::Parameters, object_creation::Geometry::SubDetector::Object > *const pFactory) |
|
template<> |
void | ReplaceCurrentFactory (ObjectFactory< object_creation::Geometry::LArTPC::Parameters, object_creation::Geometry::LArTPC::Object > *const pFactory) |
|
template<> |
void | ReplaceCurrentFactory (ObjectFactory< object_creation::Geometry::LineGap::Parameters, object_creation::Geometry::LineGap::Object > *const pFactory) |
|
template<> |
void | ReplaceCurrentFactory (ObjectFactory< object_creation::Geometry::BoxGap::Parameters, object_creation::Geometry::BoxGap::Object > *const pFactory) |
|
template<> |
void | ReplaceCurrentFactory (ObjectFactory< object_creation::Geometry::ConcentricGap::Parameters, object_creation::Geometry::ConcentricGap::Object > *const pFactory) |
|
|
template<typename PARAMETERS , typename OBJECT > |
void | ReplaceCurrentFactory (ObjectFactory< PARAMETERS, OBJECT > *const pFactory) |
| Replace the current factory with the provided instance.
|
|
XmlFileReader class.
Definition at line 26 of file XmlFileReader.h.
◆ XmlFileReader()
pandora::XmlFileReader::XmlFileReader |
( |
const pandora::Pandora & |
pandora, |
|
|
const std::string & |
fileName |
|
) |
| |
Constructor.
- Parameters
-
pandora | the pandora instance to be used alongside the file reader |
fileName | the name of the file containing the pandora objects |
Definition at line 19 of file XmlFileReader.cc.
◆ ~XmlFileReader()
pandora::XmlFileReader::~XmlFileReader |
( |
| ) |
|
◆ GetFileName()
const std::string & pandora::Persistency::GetFileName |
( |
| ) |
const |
|
inlineinherited |
Get the file name.
- Returns
- the file name
Definition at line 90 of file Persistency.h.
◆ GetFileType()
FileType pandora::Persistency::GetFileType |
( |
| ) |
const |
|
inlineinherited |
Get the file type.
- Returns
- the file type
Definition at line 97 of file Persistency.h.
◆ GetNextContainerId()
ContainerId pandora::XmlFileReader::GetNextContainerId |
( |
| ) |
|
|
privatevirtual |
Get the id of the next container in the file without changing the current position in the file.
- Returns
- The id of the next container in the file
Implements pandora::FileReader.
Definition at line 82 of file XmlFileReader.cc.
◆ GoToEvent()
StatusCode pandora::XmlFileReader::GoToEvent |
( |
const unsigned int |
eventNumber | ) |
|
|
privatevirtual |
◆ GoToGeometry()
StatusCode pandora::XmlFileReader::GoToGeometry |
( |
const unsigned int |
geometryNumber | ) |
|
|
privatevirtual |
◆ GoToNextContainer()
StatusCode pandora::XmlFileReader::GoToNextContainer |
( |
| ) |
|
|
privatevirtual |
◆ GoToNextEvent()
Skip to next event container in the file.
Definition at line 97 of file FileReader.cc.
◆ GoToNextGeometry()
StatusCode pandora::FileReader::GoToNextGeometry |
( |
| ) |
|
|
inherited |
Skip to next geometry container in the file.
Definition at line 84 of file FileReader.cc.
◆ ReadBoxGap()
Read a box gap from the current position in the file.
Definition at line 434 of file XmlFileReader.cc.
◆ ReadCaloHit()
StatusCode pandora::XmlFileReader::ReadCaloHit |
( |
| ) |
|
|
private |
Read a calo hit from the current position in the file, recreating the stored object.
Definition at line 522 of file XmlFileReader.cc.
◆ ReadConcentricGap()
StatusCode pandora::XmlFileReader::ReadConcentricGap |
( |
| ) |
|
|
private |
Read a concentric gap from the current position in the file.
Definition at line 472 of file XmlFileReader.cc.
◆ ReadEvent()
Read an entire pandora event from the file, recreating the stored objects.
Definition at line 58 of file FileReader.cc.
◆ ReadGeometry()
Read the current geometry information from the file.
Definition at line 29 of file FileReader.cc.
◆ ReadHeader()
Read the container header from the current position in the file, checking for properly written container.
Implements pandora::FileReader.
Definition at line 45 of file XmlFileReader.cc.
◆ ReadLArTPC()
Read a lar tpc from the current position in the file.
Definition at line 320 of file XmlFileReader.cc.
◆ ReadLineGap()
StatusCode pandora::XmlFileReader::ReadLineGap |
( |
| ) |
|
|
private |
Read a line gap from the current position in the file.
Definition at line 392 of file XmlFileReader.cc.
◆ ReadMCParticle()
StatusCode pandora::XmlFileReader::ReadMCParticle |
( |
| ) |
|
|
private |
Read a mc particle from the current position in the file, recreating the stored object.
Definition at line 682 of file XmlFileReader.cc.
◆ ReadNextEventComponent()
StatusCode pandora::XmlFileReader::ReadNextEventComponent |
( |
| ) |
|
|
privatevirtual |
Read the next pandora event component from the current position in the file, recreating the stored component.
Implements pandora::FileReader.
Definition at line 192 of file XmlFileReader.cc.
◆ ReadNextGeometryComponent()
StatusCode pandora::XmlFileReader::ReadNextGeometryComponent |
( |
| ) |
|
|
privatevirtual |
Read the next pandora geometry component from the current position in the file, recreating the stored component.
Implements pandora::FileReader.
Definition at line 144 of file XmlFileReader.cc.
◆ ReadRelationship()
StatusCode pandora::XmlFileReader::ReadRelationship |
( |
| ) |
|
|
private |
Read a relationship from the current position in the file, recreating the stored relationship.
Definition at line 730 of file XmlFileReader.cc.
◆ ReadSubDetector()
StatusCode pandora::XmlFileReader::ReadSubDetector |
( |
| ) |
|
|
private |
Read a sub detector from the current position in the file.
Definition at line 236 of file XmlFileReader.cc.
◆ ReadTrack()
Read a track from the current position in the file, recreating the stored object.
Definition at line 611 of file XmlFileReader.cc.
◆ ReadVariable() [1/3]
◆ ReadVariable() [2/3]
◆ ReadVariable() [3/3]
template<typename T >
StatusCode pandora::XmlFileReader::ReadVariable |
( |
const std::string & |
xmlKey, |
|
|
T & |
t |
|
) |
| |
|
inline |
◆ ReplaceCurrentFactory() [1/9]
◆ ReplaceCurrentFactory() [2/9]
◆ ReplaceCurrentFactory() [3/9]
◆ ReplaceCurrentFactory() [4/9]
◆ ReplaceCurrentFactory() [5/9]
◆ ReplaceCurrentFactory() [6/9]
◆ ReplaceCurrentFactory() [7/9]
◆ ReplaceCurrentFactory() [8/9]
◆ ReplaceCurrentFactory() [9/9]
template<typename PARAMETERS , typename OBJECT >
void pandora::Persistency::ReplaceCurrentFactory |
( |
ObjectFactory< PARAMETERS, OBJECT > *const |
pFactory | ) |
|
|
protectedinherited |
Replace the current factory with the provided instance.
- Parameters
-
pFactory | address of the factory |
◆ SetFactory()
template<typename PARAMETERS , typename OBJECT >
Set the factory to use for all instantiations and parameter persistence.
- Parameters
-
pFactory | address of the factory |
Definition at line 49 of file Persistency.cc.
◆ m_containerId
The type of container currently being written to file.
Definition at line 76 of file Persistency.h.
◆ m_fileName
std::string pandora::Persistency::m_fileName |
|
protectedinherited |
◆ m_fileType
FileType pandora::Persistency::m_fileType |
|
protectedinherited |
◆ m_isAtFileStart
bool pandora::XmlFileReader::m_isAtFileStart |
|
private |
◆ m_pBoxGapFactory
Address of the box gap factory.
Definition at line 84 of file Persistency.h.
◆ m_pCaloHitFactory
Address of the calo hit factory.
Definition at line 78 of file Persistency.h.
◆ m_pConcentricGapFactory
Address of the concentric gap factory.
Definition at line 85 of file Persistency.h.
◆ m_pContainerXmlNode
TiXmlNode* pandora::XmlFileReader::m_pContainerXmlNode |
|
private |
◆ m_pCurrentXmlElement
◆ m_pLArTPCFactory
Address of the lar tpc factory.
Definition at line 82 of file Persistency.h.
◆ m_pLineGapFactory
Address of the line gap factory.
Definition at line 83 of file Persistency.h.
◆ m_pMCParticleFactory
Address of the mc particle factory.
Definition at line 80 of file Persistency.h.
◆ m_pPandora
const Pandora* const pandora::Persistency::m_pPandora |
|
protectedinherited |
Address of pandora instance to be used alongside the file writer.
Definition at line 73 of file Persistency.h.
◆ m_pSubDetectorFactory
Address of the sub detector factory.
Definition at line 81 of file Persistency.h.
◆ m_pTrackFactory
◆ m_pXmlDocument
The documentation for this class was generated from the following files: