Pandora
Pandora source code navigator
|
BinaryFileReader class. More...
#include "BinaryFileReader.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 | ReadHeader () |
Read the container header from the current position in the file, checking for properly written container. | |
StatusCode | GoToNextContainer () |
Skip to next container in the file. | |
ContainerId | GetNextContainerId () |
Get the id of the next container in the file without changing the current position in the file. | |
StatusCode | GoToGeometry (const unsigned int geometryNumber) |
Skip to a specified geometry number in the file. | |
StatusCode | GoToEvent (const unsigned int eventNumber) |
Skip to a specified event number in the file. | |
StatusCode | ReadNextGeometryComponent () |
Read the next pandora geometry component from the current position in the file, recreating the stored component. | |
StatusCode | ReadNextEventComponent () |
Read the next pandora event component from the current position in the file, recreating the stored component. | |
StatusCode | ReadSubDetector (bool checkComponentId=true) |
Read a sub detector from the current position in the file. | |
StatusCode | ReadLArTPC (bool checkComponentId=true) |
Read a lar tpc from the current position in the file. | |
StatusCode | ReadLineGap (bool checkComponentId=true) |
Read a line gap from the current position in the file. | |
StatusCode | ReadBoxGap (bool checkComponentId=true) |
Read a box gap from the current position in the file. | |
StatusCode | ReadConcentricGap (bool checkComponentId=true) |
Read a concentric gap from the current position in the file. | |
StatusCode | ReadCaloHit (bool checkComponentId=true) |
Read a calo hit from the current position in the file, recreating the stored object. | |
StatusCode | ReadTrack (bool checkComponentId=true) |
Read a track from the current position in the file, recreating the stored object. | |
StatusCode | ReadMCParticle (bool checkComponentId=true) |
Read a mc particle from the current position in the file, recreating the stored object. | |
StatusCode | ReadRelationship (bool checkComponentId=true) |
Read a relationship from the current position in the file, recreating the stored relationship. | |
Private Attributes | |
std::ifstream::pos_type | m_containerPosition |
Position of start of the current event/geometry container object in file. | |
std::ifstream::pos_type | m_containerSize |
Size of the current event/geometry container object in the file. | |
std::ifstream | m_fileStream |
The stream class to read from the file. | |
BinaryFileReader class.
Definition at line 26 of file BinaryFileReader.h.
pandora::BinaryFileReader::BinaryFileReader | ( | const pandora::Pandora & | pandora, |
const std::string & | fileName | ||
) |
Constructor.
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 BinaryFileReader.cc.
pandora::BinaryFileReader::~BinaryFileReader | ( | ) |
Destructor.
Definition at line 33 of file BinaryFileReader.cc.
|
inlineinherited |
|
inlineinherited |
Get the file type.
Definition at line 97 of file Persistency.h.
|
privatevirtual |
Get the id of the next container in the file without changing the current position in the file.
Implements pandora::FileReader.
Definition at line 77 of file BinaryFileReader.cc.
|
privatevirtual |
Skip to a specified event number in the file.
eventNumber | the event number |
Implements pandora::FileReader.
Definition at line 125 of file BinaryFileReader.cc.
|
privatevirtual |
Skip to a specified geometry number in the file.
geometryNumber | the geometry number |
Implements pandora::FileReader.
Definition at line 103 of file BinaryFileReader.cc.
|
privatevirtual |
Skip to next container in the file.
Implements pandora::FileReader.
Definition at line 64 of file BinaryFileReader.cc.
|
inherited |
Skip to next event container in the file.
Definition at line 97 of file FileReader.cc.
|
inherited |
Skip to next geometry container in the file.
Definition at line 84 of file FileReader.cc.
|
private |
Read a box gap from the current position in the file.
checkComponentId | whether to check the component id before deserializing |
Definition at line 434 of file BinaryFileReader.cc.
|
private |
Read a calo hit from the current position in the file, recreating the stored object.
checkComponentId | whether to check the component id before deserializing |
Definition at line 540 of file BinaryFileReader.cc.
|
private |
Read a concentric gap from the current position in the file.
checkComponentId | whether to check the component id before deserializing |
Definition at line 481 of file BinaryFileReader.cc.
|
inherited |
Read an entire pandora event from the file, recreating the stored objects.
Definition at line 58 of file FileReader.cc.
|
inherited |
Read the current geometry information from the file.
Definition at line 29 of file FileReader.cc.
|
privatevirtual |
Read the container header from the current position in the file, checking for properly written container.
Implements pandora::FileReader.
Definition at line 40 of file BinaryFileReader.cc.
|
private |
Read a lar tpc from the current position in the file.
checkComponentId | whether to check the component id before deserializing |
Definition at line 303 of file BinaryFileReader.cc.
|
private |
Read a line gap from the current position in the file.
checkComponentId | whether to check the component id before deserializing |
Definition at line 384 of file BinaryFileReader.cc.
|
private |
Read a mc particle from the current position in the file, recreating the stored object.
checkComponentId | whether to check the component id before deserializing |
Definition at line 715 of file BinaryFileReader.cc.
|
privatevirtual |
Read the next pandora event component from the current position in the file, recreating the stored component.
Implements pandora::FileReader.
Definition at line 182 of file BinaryFileReader.cc.
|
privatevirtual |
Read the next pandora geometry component from the current position in the file, recreating the stored component.
Implements pandora::FileReader.
Definition at line 147 of file BinaryFileReader.cc.
|
private |
Read a relationship from the current position in the file, recreating the stored relationship.
checkComponentId | whether to check the component id before deserializing |
Definition at line 771 of file BinaryFileReader.cc.
|
private |
Read a sub detector from the current position in the file.
checkComponentId | whether to check the component id before deserializing |
Definition at line 215 of file BinaryFileReader.cc.
|
private |
Read a track from the current position in the file, recreating the stored object.
checkComponentId | whether to check the component id before deserializing |
Definition at line 635 of file BinaryFileReader.cc.
|
inline |
|
inline |
|
inline |
Read a variable from the file.
Definition at line 128 of file BinaryFileReader.h.
|
inline |
|
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.
|
protectedinherited |
The type of container currently being written to file.
Definition at line 76 of file Persistency.h.
|
private |
Position of start of the current event/geometry container object in file.
Definition at line 120 of file BinaryFileReader.h.
|
private |
Size of the current event/geometry container object in the file.
Definition at line 121 of file BinaryFileReader.h.
|
protectedinherited |
The file name.
Definition at line 74 of file Persistency.h.
|
private |
The stream class to read from the file.
Definition at line 122 of file BinaryFileReader.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.
|
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.