Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
FileReader.h
Go to the documentation of this file.
1
8#ifndef PANDORA_FILE_READER_H
9#define PANDORA_FILE_READER_H 1
10
11#include "Pandora/StatusCodes.h"
12
15
16#include <string>
17
18namespace pandora
19{
20
21class Pandora;
22
23//------------------------------------------------------------------------------------------------------------------------------------------
24
28class FileReader : public Persistency
29{
30public:
37 FileReader(const pandora::Pandora &pandora, const std::string &fileName);
38
42 virtual ~FileReader();
43
48
53
58
63
69 virtual StatusCode GoToGeometry(const unsigned int geometryNumber) = 0;
70
76 virtual StatusCode GoToEvent(const unsigned int eventNumber) = 0;
77
78protected:
82 virtual StatusCode ReadHeader() = 0;
83
88
95
100
105};
106
107} // namespace pandora
108
109#endif // #ifndef PANDORA_FILE_READER_H
Header file for persistency class.
Header file defining status codes and relevant preprocessor macros.
FileReader class.
Definition FileReader.h:29
virtual StatusCode GoToNextContainer()=0
Skip to next container in the file.
virtual StatusCode ReadNextEventComponent()=0
Read the next pandora event component from the current position in the file, recreating the stored co...
virtual StatusCode GoToEvent(const unsigned int eventNumber)=0
Skip to a specified event number in the file.
StatusCode GoToNextGeometry()
Skip to next geometry container in the file.
Definition FileReader.cc:84
StatusCode ReadEvent()
Read an entire pandora event from the file, recreating the stored objects.
Definition FileReader.cc:58
StatusCode ReadGeometry()
Read the current geometry information from the file.
Definition FileReader.cc:29
virtual StatusCode ReadHeader()=0
Read the container header from the current position in the file, checking for properly written contai...
virtual ContainerId GetNextContainerId()=0
Get the id of the next container in the file without changing the current position in the file.
virtual ~FileReader()
Destructor.
Definition FileReader.cc:23
virtual StatusCode ReadNextGeometryComponent()=0
Read the next pandora geometry component from the current position in the file, recreating the stored...
virtual StatusCode GoToGeometry(const unsigned int geometryNumber)=0
Skip to a specified geometry number in the file.
StatusCode GoToNextEvent()
Skip to next event container in the file.
Definition FileReader.cc:97
Pandora class.
Definition Pandora.h:40
Persistency class.
Definition Persistency.h:26
ContainerId
The container identification enum.
Definition PandoraIO.h:24
StatusCode
The StatusCode enum.