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