LCFIVertex  0.7.2
event.cpp
1 #include "../inc/event.h"
2 #include "../util/inc/vector3.h"
3 #include "../inc/vertex.h"
4 #include "../util/inc/memorymanager.h"
5 
6 namespace vertex_lcfi
7 {
8  using namespace util;
9 
11  {
12  SymMatrix3x3 IPError;
13  IPError(0,0) = 10.0/1000.0;
14  IPError(1,1) = 10.0/1000.0;
15  IPError(2,2) = 10.0/1000.0;
16  _IPVertex = new Vertex((this), std::vector<Track*>(), Vector3(0,0,0), IPError, true, 0, 1);
17  MemoryManager<Vertex>::Event()->registerObject(_IPVertex);
18  }
19 
20  Event::Event(const Vector3 & Position, const SymMatrix3x3 & Error)
21  {
22  _IPVertex = new Vertex(const_cast<Event*>(this), std::vector<Track*>(), Position, Error, true, 0, 1);
23  MemoryManager<Vertex>::Event()->registerObject(_IPVertex);
24  }
25 
26  Event::Event(Vertex* ipVertex)
27  :_IPVertex(ipVertex)
28  {}
29 
30  void Event::addJet(Jet* AJet)
31  {
32  _Jets.push_back(AJet);
33  }
34 
35  const std::vector<Jet*> & Event::jets() const
36  {
37  return _Jets;
38  }
39 
40  const std::vector<Track*> & Event::tracks() const
41  {
42  return _Tracks;
43  }
44 
45  void Event::addTrack(Track* AddTrack)
46  {
47  _Tracks.push_back(AddTrack);
48  }
49 
51  {
52  return _IPVertex->position();
53  }
54 
56  {
57  return _IPVertex->positionError();
58  }
59 
61  {
62  return _IPVertex;
63  }
64 }
Vertex * ipVertex() const
Event Vertex.
Definition: event.cpp:60
void addTrack(Track *Track)
Add Track.
Definition: event.cpp:45
const std::vector< Jet * > & jets() const
Get Jets.
Definition: event.cpp:35
void addJet(Jet *Jet)
Add Jet.
Definition: event.cpp:30
const std::vector< Track * > & tracks() const
Get Tracks.
Definition: event.cpp:40
const Vector3 & position() const
Position.
static MemoryManager< T > * Event()
Returns the Event duration singleton instance of the MemoryManager for type T.
const SymMatrix3x3 & positionError() const
Position.
Unique Track representation.
Event()
Default Constructor.
Definition: event.cpp:10
const SymMatrix3x3 & interactionPointError() const
Interaction Point position error.
Definition: event.cpp:55
const Vector3 & interactionPoint() const
Interaction Point position.
Definition: event.cpp:50