CbmRoot
L1Event.h
Go to the documentation of this file.
1 #ifndef L1Event_H
2 #define L1Event_H
3 
4 #include "CbmL1Track.h"
5 #include "KFPTrackVector.h"
6 #include "KFParticleTopoReconstructor.h"
7 #include "KFTopoPerformance.h"
8 #include "L1StsHit.h"
9 #include <vector>
10 
11 using std::vector;
12 
13 class L1Event {
14 public:
16 
17  void Clear();
18  void TopoReconstructor();
19 
20  const KFPTrackVector& getTracks() const { return fKFPTrack; }
21  KFPTrackVector& getTracks() { return fKFPTrack; }
22  const vector<int>& getHits() const { return fStsHit; }
23  vector<int>& getHits() { return fStsHit; }
24  const KFParticleTopoReconstructor* getTopoReconstructor() const {
25  return &fTopoReconstructor;
26  }
27 
28  L1Event(const L1Event& event)
30  , fKFPTrack(event.fKFPTrack)
31  , fStsHit(event.fStsHit) {
32  fKFPTrack = event.fKFPTrack;
33  fStsHit = event.fStsHit;
34  }
35 
36  L1Event& operator=(const L1Event& event) {
37  fTopoReconstructor = event.fTopoReconstructor;
38  fKFPTrack = event.fKFPTrack;
39  fStsHit = event.fStsHit;
40 
41  return *this;
42  }
43 
44 private:
45  KFParticleTopoReconstructor fTopoReconstructor;
46 
47  KFPTrackVector fKFPTrack;
48  vector<int> fStsHit;
49 };
50 
51 #endif
L1Event::fStsHit
vector< int > fStsHit
Definition: L1Event.h:48
L1Event
Definition: L1Event.h:13
L1Event::fKFPTrack
KFPTrackVector fKFPTrack
Definition: L1Event.h:47
L1Event::getTracks
KFPTrackVector & getTracks()
Definition: L1Event.h:21
L1Event::Clear
void Clear()
Definition: L1Event.cxx:6
L1Event::TopoReconstructor
void TopoReconstructor()
Definition: L1Event.cxx:8
L1Event::getTopoReconstructor
const KFParticleTopoReconstructor * getTopoReconstructor() const
Definition: L1Event.h:24
CbmL1Track.h
L1Event::getHits
vector< int > & getHits()
Definition: L1Event.h:23
L1StsHit.h
L1Event::getHits
const vector< int > & getHits() const
Definition: L1Event.h:22
L1Event::L1Event
L1Event(const L1Event &event)
Definition: L1Event.h:28
L1Event::operator=
L1Event & operator=(const L1Event &event)
Definition: L1Event.h:36
L1Event::getTracks
const KFPTrackVector & getTracks() const
Definition: L1Event.h:20
L1Event::L1Event
L1Event()
Definition: L1Event.h:15
L1Event::fTopoReconstructor
KFParticleTopoReconstructor fTopoReconstructor
Definition: L1Event.h:45