Pandora
Pandora source code navigator
|
XmlFileWriter class. More...
#include "XmlFileWriter.h"
Protected Member Functions | |
template<typename PARAMETERS , typename OBJECT > | |
void | ReplaceCurrentFactory (ObjectFactory< PARAMETERS, OBJECT > *const pFactory) |
Replace the current factory with the provided instance. | |
Private Member Functions | |
StatusCode | WriteHeader (const ContainerId containerId) |
Write the container header to the file. | |
StatusCode | WriteFooter () |
Write the container footer to the file. | |
StatusCode | WriteSubDetector (const SubDetector *const pSubDetector) |
Write a sub detector to the file. | |
StatusCode | WriteLArTPC (const LArTPC *const pLArTPC) |
Write a lar tpc to the file. | |
StatusCode | WriteDetectorGap (const DetectorGap *const pDetectorGap) |
Write the detector gap parameters to the file. | |
StatusCode | WriteCaloHit (const CaloHit *const pCaloHit) |
Write a calo hit to the current position in the file. | |
StatusCode | WriteTrack (const Track *const pTrack) |
Write a track to the current position in the file. | |
StatusCode | WriteMCParticle (const MCParticle *const pMCParticle) |
Write a mc particle to the current position in the file. | |
StatusCode | WriteRelationship (const RelationshipId relationshipId, const void *address1, const void *address2, const float weight) |
Write a relationship between two objects with specified addresses. | |
StatusCode | WriteSubDetectorList () |
Write the sub detector parameters to the file. | |
StatusCode | WriteLArTPCList () |
Write the lar tpc parameters to the file. | |
StatusCode | WriteDetectorGapList () |
Write the detector gap parameters to the file. | |
StatusCode | WriteTrackList (const TrackList &trackList) |
Write a track list to the current position in the file. | |
StatusCode | WriteCaloHitList (const CaloHitList &caloHitList) |
Write a calo hit list to the current position in the file. | |
StatusCode | WriteMCParticleList (const MCParticleList &mcParticleList) |
Write a mc particle list to the current position in the file. | |
StatusCode | WriteCaloHitToMCParticleRelationships (const CaloHitList &caloHitList) |
Write calo hit to mc particle relationships for a specified calo hit list. | |
StatusCode | WriteTrackToMCParticleRelationships (const TrackList &trackList) |
Write track to mc particle relationships for a specified track list. | |
StatusCode | WriteMCParticleRelationships (const MCParticleList &mcParticleList) |
Write mc particle relationships for a specified mc particle list. | |
StatusCode | WriteMCParticleRelationships (const MCParticle *const pMCParticle) |
Write a mc particle parent/daughter relationship to the current position in the file. | |
StatusCode | WriteTrackRelationships (const TrackList &trackList) |
Write track relationships for a specified list of tracks. | |
StatusCode | WriteTrackRelationships (const Track *const pTrack) |
Write a track sibling or parent/daughter relationship to the current position in the file. | |
StatusCode | WriteCaloHitToMCParticleRelationship (const CaloHit *const pCaloHit) |
Write a calo hit to mc particle relationship to the current position in the file. | |
StatusCode | WriteTrackToMCParticleRelationship (const Track *const pTrack) |
Write a track to mc particle relationship to the current position in the file. | |
Private Attributes | |
TiXmlDocument * | m_pXmlDocument |
The xml document. | |
TiXmlElement * | m_pContainerXmlElement |
The container xml element. | |
TiXmlElement * | m_pCurrentXmlElement |
The current xml element. | |
XmlFileWriter class.
Definition at line 26 of file XmlFileWriter.h.
pandora::XmlFileWriter::XmlFileWriter | ( | const pandora::Pandora & | pandora, |
const std::string & | fileName, | ||
const FileMode | fileMode = APPEND |
||
) |
Constructor.
algorithm | the pandora instance to be used alongside the file writer |
fileName | the name of the output file |
fileMode | the mode for file writing |
Definition at line 25 of file XmlFileWriter.cc.
pandora::XmlFileWriter::~XmlFileWriter | ( | ) |
Destructor.
Definition at line 55 of file XmlFileWriter.cc.
|
inlineinherited |
|
inlineinherited |
Get the file type.
Definition at line 97 of file Persistency.h.
|
inherited |
Definition at line 61 of file Persistency.cc.
|
inherited |
Definition at line 103 of file Persistency.cc.
|
inherited |
Definition at line 110 of file Persistency.cc.
|
inherited |
Definition at line 89 of file Persistency.cc.
|
inherited |
Definition at line 96 of file Persistency.cc.
|
inherited |
Definition at line 82 of file Persistency.cc.
|
inherited |
Definition at line 75 of file Persistency.cc.
|
inherited |
Definition at line 68 of file Persistency.cc.
|
protectedinherited |
Replace the current factory with the provided instance.
pFactory | address of the factory |
|
inherited |
Set the factory to use for all instantiations and parameter persistence.
pFactory | address of the factory |
Definition at line 49 of file Persistency.cc.
|
privatevirtual |
Write a calo hit to the current position in the file.
pCaloHit | address of the calo hit |
Implements pandora::FileWriter.
Definition at line 240 of file XmlFileWriter.cc.
|
privateinherited |
Write a calo hit list to the current position in the file.
caloHitList | the calo hit list |
Definition at line 138 of file FileWriter.cc.
|
privateinherited |
Write a calo hit to mc particle relationship to the current position in the file.
pCaloHit | address of the calo hit |
Definition at line 210 of file FileWriter.cc.
|
privateinherited |
Write calo hit to mc particle relationships for a specified calo hit list.
caloHitList | the calo hit list |
Definition at line 162 of file FileWriter.cc.
|
privatevirtual |
Write the detector gap parameters to the file.
pDetectorGap | address of the detector gap |
Implements pandora::FileWriter.
Definition at line 172 of file XmlFileWriter.cc.
|
privateinherited |
Write the detector gap parameters to the file.
Definition at line 114 of file FileWriter.cc.
|
inherited |
Write the specified event components to the file.
caloHitList | the list of calo hits to write to the file |
trackList | the list of tracks to write to the file |
mcParticleList | the list of mc particles to write to the file |
writeMCRelationships | whether to write mc relationship information to the file |
writeTrackRelationships | whether to write track relationship information to the file |
Definition at line 63 of file FileWriter.cc.
|
privatevirtual |
Write the container footer to the file.
Implements pandora::FileWriter.
Definition at line 76 of file XmlFileWriter.cc.
|
inherited |
Write the current geometry information to the file.
Definition at line 45 of file FileWriter.cc.
|
privatevirtual |
Write the container header to the file.
containerId | the container id |
Implements pandora::FileWriter.
Definition at line 63 of file XmlFileWriter.cc.
|
privatevirtual |
Write a lar tpc to the file.
pLArTPC | address of the lar tpc |
Implements pandora::FileWriter.
Definition at line 140 of file XmlFileWriter.cc.
|
privateinherited |
Write the lar tpc parameters to the file.
Definition at line 102 of file FileWriter.cc.
|
privatevirtual |
Write a mc particle to the current position in the file.
pMCParticle | address of the mc particle |
Implements pandora::FileWriter.
Definition at line 310 of file XmlFileWriter.cc.
|
privateinherited |
Write a mc particle list to the current position in the file.
mcParticleList | the mc particle list |
Definition at line 150 of file FileWriter.cc.
|
privateinherited |
Write a mc particle parent/daughter relationship to the current position in the file.
pMCParticle | address of the mc particle |
Definition at line 254 of file FileWriter.cc.
|
privateinherited |
Write mc particle relationships for a specified mc particle list.
mcParticleList | the mc particle list |
Definition at line 186 of file FileWriter.cc.
|
privatevirtual |
Write a relationship between two objects with specified addresses.
relationshipId | the relationship id |
address1 | first address to write |
address2 | second address to write |
Implements pandora::FileWriter.
Definition at line 334 of file XmlFileWriter.cc.
|
privatevirtual |
Write a sub detector to the file.
pSubDetector | address of the sub detector |
Implements pandora::FileWriter.
Definition at line 88 of file XmlFileWriter.cc.
|
privateinherited |
Write the sub detector parameters to the file.
Definition at line 90 of file FileWriter.cc.
|
privatevirtual |
Write a track to the current position in the file.
pTrack | address of the track |
Implements pandora::FileWriter.
Definition at line 278 of file XmlFileWriter.cc.
|
privateinherited |
Write a track list to the current position in the file.
trackList | the track list |
Definition at line 126 of file FileWriter.cc.
|
privateinherited |
Write a track sibling or parent/daughter relationship to the current position in the file.
pTrack | address of the track |
Definition at line 278 of file FileWriter.cc.
|
privateinherited |
Write track relationships for a specified list of tracks.
trackList | the track list |
Definition at line 198 of file FileWriter.cc.
|
privateinherited |
Write a track to mc particle relationship to the current position in the file.
pTrack | address of the track |
Definition at line 232 of file FileWriter.cc.
|
privateinherited |
Write track to mc particle relationships for a specified track list.
trackList | the track list |
Definition at line 174 of file FileWriter.cc.
|
inline |
|
inline |
Write a variable to the file.
xmlKey | the xml key |
Definition at line 70 of file XmlFileWriter.h.
|
inline |
|
protectedinherited |
The type of container currently being written to file.
Definition at line 76 of file Persistency.h.
|
protectedinherited |
The file name.
Definition at line 74 of file Persistency.h.
|
protectedinherited |
The file type.
Definition at line 75 of file Persistency.h.
|
protectedinherited |
Address of the box gap factory.
Definition at line 84 of file Persistency.h.
|
protectedinherited |
Address of the calo hit factory.
Definition at line 78 of file Persistency.h.
|
protectedinherited |
Address of the concentric gap factory.
Definition at line 85 of file Persistency.h.
|
private |
The container xml element.
Definition at line 63 of file XmlFileWriter.h.
|
private |
The current xml element.
Definition at line 64 of file XmlFileWriter.h.
|
protectedinherited |
Address of the lar tpc factory.
Definition at line 82 of file Persistency.h.
|
protectedinherited |
Address of the line gap factory.
Definition at line 83 of file Persistency.h.
|
protectedinherited |
Address of the mc particle factory.
Definition at line 80 of file Persistency.h.
|
protectedinherited |
Address of pandora instance to be used alongside the file writer.
Definition at line 73 of file Persistency.h.
|
protectedinherited |
Address of the sub detector factory.
Definition at line 81 of file Persistency.h.
|
protectedinherited |
Address of the track factory.
Definition at line 79 of file Persistency.h.
|
private |
The xml document.
Definition at line 62 of file XmlFileWriter.h.