LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
EventReadingAlgorithm.h
Go to the documentation of this file.
1 
8 #ifndef LAR_EVENT_READING_ALGORITHM_H
9 #define LAR_EVENT_READING_ALGORITHM_H 1
10 
11 #include "Pandora/ExternallyConfiguredAlgorithm.h"
12 
13 #include "Pandora/PandoraInputTypes.h"
14 
15 #include "Persistency/PandoraIO.h"
16 
17 namespace pandora {class FileReader;}
18 
19 //------------------------------------------------------------------------------------------------------------------------------------------
20 
21 namespace lar_content
22 {
23 
27 class EventReadingAlgorithm : public pandora::ExternallyConfiguredAlgorithm
28 {
29 public:
34 
39 
43  class ExternalEventReadingParameters : public pandora::ExternalParameters
44  {
45  public:
46  std::string m_geometryFileName;
47  std::string m_eventFileNameList;
48  pandora::InputUInt m_skipToEvent;
49  };
50 
51 private:
52  pandora::StatusCode Initialize();
53  pandora::StatusCode Run();
54 
58  void MoveToNextEventFile();
59 
65  pandora::StatusCode ReplaceEventFileReader(const std::string &fileName);
66 
74  pandora::FileType GetFileType(const std::string &fileName) const;
75 
76  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
77 
78  std::string m_geometryFileName;
79  std::string m_eventFileName;
80  pandora::StringVector m_eventFileNameVector;
81 
82  unsigned int m_skipToEvent;
83 
86 
87  pandora::FileReader *m_pEventFileReader;
88 };
89 
90 } // namespace lar_content
91 
92 #endif // #ifndef LAR_EVENT_READING_ALGORITHM_H
std::string m_geometryFileName
Name of the file containing geometry information.
bool m_useLArMCParticles
Whether to read lar mc particles, or standard pandora mc particles.
void Initialize()
Definition: errprop.cc:101
EventReadingAlgorithm class.
pandora::StringVector m_eventFileNameVector
Vector of file names to be processed.
unsigned int m_skipToEvent
Index of first event to consider in first input file.
pandora::InputUInt m_skipToEvent
Index of first event to consider in input file.
std::string m_geometryFileName
Name of the file containing geometry information.
bool m_useLArCaloHits
Whether to read lar calo hits, or standard pandora calo hits.
std::string m_eventFileNameList
Colon-separated list of file names to be processed.
pandora::FileReader * m_pEventFileReader
Address of the event file reader.
std::string m_eventFileName
Name of the current file containing event information.