LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Event.h
Go to the documentation of this file.
1 //
3 // \brief Definition of event object for LArSoft
4 //
5 // \author brebel@fnal.gov
6 //
8 
9 #ifndef RB_EVENT_H
10 #define RB_EVENT_H
11 
12 #include <iosfwd>
13 #include <vector>
14 
15 namespace recob {
16 
17  class Vertex; // Forward declaration.
18 
19  class Event {
20 
21  public:
22  Event(); // Needed for ROOT persistency.
23 
24  private:
25  int fID;
26 
27  public:
28  explicit Event(int id);
29 
30  double Energy() const;
31  double SigmaEnergy() const;
32  const recob::Vertex* PrimaryVertex(std::vector<const recob::Vertex*>& vtxs) const;
33  int ID() const;
34 
35  friend std::ostream& operator<<(std::ostream& o, const Event& a);
36  friend bool operator<(const Event& a, const Event& b);
37  };
38 }
39 
40 inline int recob::Event::ID() const
41 {
42  return fID;
43 }
44 
45 #endif // RB_EVENT_H
int fID
id for this event
Definition: Event.h:25
Reconstruction base classes.
double Energy() const
Definition: Event.cxx:26
Definition of vertex object for LArSoft.
Definition: Vertex.h:35
int ID() const
Definition: Event.h:40
friend bool operator<(const Event &a, const Event &b)
Definition: Event.cxx:71
friend std::ostream & operator<<(std::ostream &o, const Event &a)
Definition: Event.cxx:58
double SigmaEnergy() const
Definition: Event.cxx:37
boost::graph_traits< ModuleGraph >::vertex_descriptor Vertex
Definition: ModuleGraph.h:25
const recob::Vertex * PrimaryVertex(std::vector< const recob::Vertex * > &vtxs) const
Definition: Event.cxx:48