CbmRoot
CbmEbEventMatch.h
Go to the documentation of this file.
1
6
#ifndef CbmEbEventMatch_H
7
#define CbmEbEventMatch_H
8
9
#include <vector>
10
11
#include <map>
12
13
using
std::map;
14
using
std::vector;
15
16
class
CbmEbEventMatch
{
17
public
:
18
CbmEbEventMatch
() :
fMCEvent
(),
fNTracks
(0),
fTracks
() {};
19
bool
IsGhost
() {
return
fMCEvent
.size() == 0; }
20
void
Clear
() {
21
fMCEvent
.clear();
22
fNTracks
= 0;
23
}
24
void
AddTrack
(
int
mcEventId) {
fMCEvent
[mcEventId]++; }
25
void
SetNEventTracks
(
int
ntracks) {
fNTracks
= ntracks; }
26
void
SetTracks
(vector<int>
tracks
) {
fTracks
=
tracks
; }
27
vector<int>&
GetTracksId
() {
return
fTracks
; }
28
29
int
NRecoTracks
()
const
{
return
fNTracks
; }
30
int
NMCEvents
()
const
{
return
fMCEvent
.size(); }
31
32
map<int, int>&
GetMCEvents
() {
return
fMCEvent
; }
33
34
private
:
35
map<int, int>
fMCEvent
;
36
int
fNTracks
;
37
vector<int>
fTracks
;
38
};
39
40
#endif
CbmEbEventMatch::Clear
void Clear()
Definition:
CbmEbEventMatch.h:20
CbmEbEventMatch::fTracks
vector< int > fTracks
Definition:
CbmEbEventMatch.h:37
CbmEbEventMatch::NRecoTracks
int NRecoTracks() const
Definition:
CbmEbEventMatch.h:29
CbmEbEventMatch::CbmEbEventMatch
CbmEbEventMatch()
Definition:
CbmEbEventMatch.h:18
CbmEbEventMatch::NMCEvents
int NMCEvents() const
Definition:
CbmEbEventMatch.h:30
CbmEbEventMatch::SetTracks
void SetTracks(vector< int > tracks)
Definition:
CbmEbEventMatch.h:26
tracks
TClonesArray * tracks
Definition:
Analyze_matching.h:17
CbmEbEventMatch::SetNEventTracks
void SetNEventTracks(int ntracks)
Definition:
CbmEbEventMatch.h:25
CbmEbEventMatch::fNTracks
int fNTracks
Definition:
CbmEbEventMatch.h:36
CbmEbEventMatch::AddTrack
void AddTrack(int mcEventId)
Definition:
CbmEbEventMatch.h:24
CbmEbEventMatch::IsGhost
bool IsGhost()
Definition:
CbmEbEventMatch.h:19
CbmEbEventMatch::GetMCEvents
map< int, int > & GetMCEvents()
Definition:
CbmEbEventMatch.h:32
CbmEbEventMatch
Definition:
CbmEbEventMatch.h:16
CbmEbEventMatch::fMCEvent
map< int, int > fMCEvent
Definition:
CbmEbEventMatch.h:35
CbmEbEventMatch::GetTracksId
vector< int > & GetTracksId()
Definition:
CbmEbEventMatch.h:27
reco
eventbuilder
tracks
CbmEbEventMatch.h
Generated on Wed Oct 28 2020 15:11:35 for CbmRoot by
1.8.18