CbmRoot
Loading...
Searching...
No Matches
CbmEbEventMatch.h
Go to the documentation of this file.
1/* Copyright (C) 2017 IKF-UFra, GSI
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Valentina Akishina , Maksym Zyzak, Valentina Akishina [committer] */
4
10#ifndef CbmEbEventMatch_H
11#define CbmEbEventMatch_H
12
13#include <map>
14#include <vector>
15
16using std::map;
17using std::vector;
18
20 public:
22 bool IsGhost() { return fMCEvent.size() == 0; }
23 void Clear()
24 {
25 fMCEvent.clear();
26 fNTracks = 0;
27 }
28 void AddTrack(int mcEventId) { fMCEvent[mcEventId]++; }
29 void SetNEventTracks(int ntracks) { fNTracks = ntracks; }
30 void SetTracks(vector<int> tracks) { fTracks = tracks; }
31 vector<int>& GetTracksId() { return fTracks; }
32
33 int NRecoTracks() const { return fNTracks; }
34 int NMCEvents() const { return fMCEvent.size(); }
35
36 map<int, int>& GetMCEvents() { return fMCEvent; }
37
38 private:
39 map<int, int> fMCEvent;
41 vector<int> fTracks;
42};
43
44#endif
TClonesArray * tracks
void SetTracks(vector< int > tracks)
vector< int > & GetTracksId()
int NRecoTracks() const
void SetNEventTracks(int ntracks)
map< int, int > & GetMCEvents()
void AddTrack(int mcEventId)
map< int, int > fMCEvent
vector< int > fTracks
int NMCEvents() const