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