8#ifndef PANDORA_XML_FILE_WRITER_H
9#define PANDORA_XML_FILE_WRITER_H 1
73 return STATUS_CODE_FAILURE;
79 return STATUS_CODE_SUCCESS;
Header file for the cartesian vector class.
Header file for the file writer class.
Header file for the pandora class.
Header file for the track state class.
float GetX() const
Get the cartesian x coordinate.
float GetZ() const
Get the cartesian z coordinate.
float GetY() const
Get the cartesian y coordinate.
TiXmlNode * LinkEndChild(TiXmlNode *addThis)
const CartesianVector & GetMomentum() const
Get the track momentum vector.
const CartesianVector & GetPosition() const
Get the track position vector.
StatusCode WriteVariable(const std::string &xmlKey, const T &t)
Write a variable to the file.
TiXmlDocument * m_pXmlDocument
The xml document.
TiXmlElement * m_pContainerXmlElement
The container xml element.
StatusCode WriteLArTPC(const LArTPC *const pLArTPC)
Write a lar tpc to the file.
StatusCode WriteHeader(const ContainerId containerId)
Write the container header to the file.
StatusCode WriteSubDetector(const SubDetector *const pSubDetector)
Write a sub detector 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 WriteFooter()
Write the container footer to the file.
~XmlFileWriter()
Destructor.
StatusCode WriteDetectorGap(const DetectorGap *const pDetectorGap)
Write the detector gap parameters to the file.
TiXmlElement * m_pCurrentXmlElement
The current xml element.
StatusCode WriteRelationship(const RelationshipId relationshipId, const void *address1, const void *address2, const float weight)
Write a relationship between two objects with specified addresses.
FileMode
The file mode enum.
RelationshipId
The relationship identification enum.
std::string TypeToStringPrecision(const T &t, const unsigned int precision=12)
ContainerId
The container identification enum.
StatusCode
The StatusCode enum.