CbmRoot
L1MCEvent.h
Go to the documentation of this file.
1
#ifndef L1MCEvent_H
2
#define L1MCEvent_H
3
4
#include <vector>
5
6
using
std::vector;
7
8
class
L1MCEvent
{
9
public
:
10
L1MCEvent
()
11
:
fMCEventId
(-1),
fRecoEvents
(),
fMCTrackId
(0),
fIsReconstructable
(0) {};
12
13
int
IsReconstructed
();
14
int
NClones
();
15
void
SetReconstructable
(
bool
IsReconstructable_) {
16
fIsReconstructable
= IsReconstructable_;
17
}
18
void
SetId
(
int
mcEvId) {
fMCEventId
= mcEvId; }
19
20
vector<int>&
GetMCTrackIds
() {
return
fMCTrackId
; }
21
int
NMCTracks
()
const
{
return
fMCTrackId
.size(); }
22
int
&
GetId
() {
return
fMCEventId
; }
23
bool
IsReconstructable
()
const
{
return
fIsReconstructable
; }
24
25
void
AddRecoEvent
(
int
iEvent) {
fRecoEvents
.push_back(iEvent); }
26
27
const
vector<int>&
GetRecoEvents
()
const
{
return
fRecoEvents
; }
28
29
private
:
30
int
fMCEventId
;
31
vector<int>
fRecoEvents
;
32
vector<int>
fMCTrackId
;
33
bool
fIsReconstructable
;
34
};
35
36
#endif
L1MCEvent::GetId
int & GetId()
Definition:
L1MCEvent.h:22
L1MCEvent::fMCEventId
int fMCEventId
Definition:
L1MCEvent.h:30
L1MCEvent::IsReconstructable
bool IsReconstructable() const
Definition:
L1MCEvent.h:23
L1MCEvent::fMCTrackId
vector< int > fMCTrackId
Definition:
L1MCEvent.h:32
L1MCEvent::L1MCEvent
L1MCEvent()
Definition:
L1MCEvent.h:10
L1MCEvent::AddRecoEvent
void AddRecoEvent(int iEvent)
Definition:
L1MCEvent.h:25
L1MCEvent::fRecoEvents
vector< int > fRecoEvents
Definition:
L1MCEvent.h:31
L1MCEvent::SetId
void SetId(int mcEvId)
Definition:
L1MCEvent.h:18
L1MCEvent::SetReconstructable
void SetReconstructable(bool IsReconstructable_)
Definition:
L1MCEvent.h:15
L1MCEvent::GetMCTrackIds
vector< int > & GetMCTrackIds()
Definition:
L1MCEvent.h:20
L1MCEvent::NMCTracks
int NMCTracks() const
Definition:
L1MCEvent.h:21
L1MCEvent
Definition:
L1MCEvent.h:8
L1MCEvent::IsReconstructed
int IsReconstructed()
Definition:
L1MCEvent.cxx:3
L1MCEvent::GetRecoEvents
const vector< int > & GetRecoEvents() const
Definition:
L1MCEvent.h:27
L1MCEvent::NClones
int NClones()
Definition:
L1MCEvent.cxx:10
L1MCEvent::fIsReconstructable
bool fIsReconstructable
Definition:
L1MCEvent.h:33
reco
L1
L1Algo
L1MCEvent.h
Generated on Wed Oct 28 2020 15:11:49 for CbmRoot by
1.8.18