Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
PandoraIO.h
Go to the documentation of this file.
1
8#ifndef PANDORA_IO_H
9#define PANDORA_IO_H 1
10
11#include <string>
12
13namespace pandora
14{
15
16const std::string PANDORA_FILE_HASH("pandora");
17
18//------------------------------------------------------------------------------------------------------------------------------------------
19
29
30//------------------------------------------------------------------------------------------------------------------------------------------
31
50
51//------------------------------------------------------------------------------------------------------------------------------------------
52
65
66//------------------------------------------------------------------------------------------------------------------------------------------
67
77
78//------------------------------------------------------------------------------------------------------------------------------------------
79
89
90//------------------------------------------------------------------------------------------------------------------------------------------
91//------------------------------------------------------------------------------------------------------------------------------------------
92
97{
98public:
104 StopProcessingException(const std::string &description);
105
112
117
123 const std::string &GetDescription() const;
124
125private:
126 const std::string m_description;
127};
128
129//------------------------------------------------------------------------------------------------------------------------------------------
130
131inline StopProcessingException::StopProcessingException(const std::string &description) :
132 m_description(description)
133{
134}
135
136//------------------------------------------------------------------------------------------------------------------------------------------
137
139 m_description(rhs.GetDescription())
140{
141}
142
143//------------------------------------------------------------------------------------------------------------------------------------------
144
148
149//------------------------------------------------------------------------------------------------------------------------------------------
150
151inline const std::string &StopProcessingException::GetDescription() const
152{
153 return m_description;
154}
155
156} // namespace pandora
157
158#endif // #ifndef PANDORA_IO_H
Stop processing exception class.
Definition PandoraIO.h:97
const std::string m_description
Description of the context under which exception was raised.
Definition PandoraIO.h:126
const std::string & GetDescription() const
Get the description of the context under which exception was raised.
Definition PandoraIO.h:151
StopProcessingException(const std::string &description)
Constructor.
Definition PandoraIO.h:131
ComponentId
The component identification enum.
Definition PandoraIO.h:36
@ GEOMETRY_END_COMPONENT
Definition PandoraIO.h:46
@ LINE_GAP_COMPONENT
Definition PandoraIO.h:43
@ TRACK_COMPONENT
Definition PandoraIO.h:38
@ UNKNOWN_COMPONENT
Definition PandoraIO.h:48
@ BOX_GAP_COMPONENT
Definition PandoraIO.h:44
@ CONCENTRIC_GAP_COMPONENT
Definition PandoraIO.h:45
@ SUB_DETECTOR_COMPONENT
Definition PandoraIO.h:42
@ MC_PARTICLE_COMPONENT
Definition PandoraIO.h:39
@ EVENT_END_COMPONENT
Definition PandoraIO.h:41
@ LAR_TPC_COMPONENT
Definition PandoraIO.h:47
@ RELATIONSHIP_COMPONENT
Definition PandoraIO.h:40
@ CALO_HIT_COMPONENT
Definition PandoraIO.h:37
FileMode
The file mode enum.
Definition PandoraIO.h:84
@ UNKNOWN_MODE
Definition PandoraIO.h:87
@ OVERWRITE
Definition PandoraIO.h:86
RelationshipId
The relationship identification enum.
Definition PandoraIO.h:57
@ TRACK_TO_MC_RELATIONSHIP
Definition PandoraIO.h:59
@ CALO_HIT_TO_MC_RELATIONSHIP
Definition PandoraIO.h:58
@ TRACK_SIBLING_RELATIONSHIP
Definition PandoraIO.h:62
@ TRACK_PARENT_DAUGHTER_RELATIONSHIP
Definition PandoraIO.h:61
@ UNKNOWN_RELATIONSHIP
Definition PandoraIO.h:63
@ MC_PARENT_DAUGHTER_RELATIONSHIP
Definition PandoraIO.h:60
ContainerId
The container identification enum.
Definition PandoraIO.h:24
@ EVENT_CONTAINER
Definition PandoraIO.h:25
@ UNKNOWN_CONTAINER
Definition PandoraIO.h:27
@ GEOMETRY_CONTAINER
Definition PandoraIO.h:26
FileType
The file type enum.
Definition PandoraIO.h:72
@ UNKNOWN_FILE_TYPE
Definition PandoraIO.h:75
const std::string PANDORA_FILE_HASH("pandora")
Look for hash each event to check integrity.