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
16
using
std::map;
17
using
std::vector;
18
19
class
CbmEbEventMatch
{
20
public
:
21
CbmEbEventMatch
() :
fMCEvent
(),
fNTracks
(0),
fTracks
(){};
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
;
40
int
fNTracks
;
41
vector<int>
fTracks
;
42
};
43
44
#endif
tracks
TClonesArray * tracks
Definition
Analyze_matching.h:21
CbmEbEventMatch
Definition
CbmEbEventMatch.h:19
CbmEbEventMatch::SetTracks
void SetTracks(vector< int > tracks)
Definition
CbmEbEventMatch.h:30
CbmEbEventMatch::GetTracksId
vector< int > & GetTracksId()
Definition
CbmEbEventMatch.h:31
CbmEbEventMatch::NRecoTracks
int NRecoTracks() const
Definition
CbmEbEventMatch.h:33
CbmEbEventMatch::SetNEventTracks
void SetNEventTracks(int ntracks)
Definition
CbmEbEventMatch.h:29
CbmEbEventMatch::GetMCEvents
map< int, int > & GetMCEvents()
Definition
CbmEbEventMatch.h:36
CbmEbEventMatch::AddTrack
void AddTrack(int mcEventId)
Definition
CbmEbEventMatch.h:28
CbmEbEventMatch::fNTracks
int fNTracks
Definition
CbmEbEventMatch.h:40
CbmEbEventMatch::CbmEbEventMatch
CbmEbEventMatch()
Definition
CbmEbEventMatch.h:21
CbmEbEventMatch::fMCEvent
map< int, int > fMCEvent
Definition
CbmEbEventMatch.h:39
CbmEbEventMatch::IsGhost
bool IsGhost()
Definition
CbmEbEventMatch.h:22
CbmEbEventMatch::fTracks
vector< int > fTracks
Definition
CbmEbEventMatch.h:41
CbmEbEventMatch::NMCEvents
int NMCEvents() const
Definition
CbmEbEventMatch.h:34
CbmEbEventMatch::Clear
void Clear()
Definition
CbmEbEventMatch.h:23
reco
eventbuilder
tracks
CbmEbEventMatch.h
Generated on Sun Dec 22 2024 23:04:16 for CbmRoot by
1.12.0