CbmRoot
Loading...
Searching...
No Matches
CbmEbMCEvent.h
Go to the documentation of this file.
1/* Copyright (C) 2017-2019 IKF-UFra, GSI
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Valentina Akishina , Maksym Zyzak, Valentina Akishina [committer] */
4
10#ifndef CbmEbMCEvent_H
11#define CbmEbMCEvent_H
12
13#include <vector>
14
15using std::vector;
16
18 public:
20
22 {
23 if (fRecoEvents.size() > 0) return 1;
24 if (fRecoEvents.size() == 0) return 0;
25 return 0;
26 }
27 int NClones()
28 {
29 if (fRecoEvents.size() > 1) {
30 return fRecoEvents.size() - 1;
31 }
32 else {
33 return 0;
34 }
35 }
36 void SetReconstructable(bool isReconstructable) { fIsReconstructable = isReconstructable; }
37 void SetId(int mcEvId) { fMCEventId = mcEvId; }
38
39 vector<int>& GetMCTrackIds() { return fMCTrackId; }
40 int NMCTracks() const { return fMCTrackId.size(); }
41 int& GetId() { return fMCEventId; }
42 bool IsReconstructable() const { return fIsReconstructable; }
43 vector<int>& GetRecoTrackIds() { return fRecoTrackId; }
44
45 void AddRecoEvent(int iEvent) { fRecoEvents.push_back(iEvent); }
46
47 const vector<int>& GetRecoEvents() const { return fRecoEvents; }
48
49 private:
51 vector<int> fRecoEvents;
52 vector<int> fMCTrackId;
54 vector<int> fRecoTrackId;
55};
56
57#endif
void SetReconstructable(bool isReconstructable)
void SetId(int mcEvId)
int NMCTracks() const
const vector< int > & GetRecoEvents() const
bool IsReconstructable() const
vector< int > fRecoTrackId
bool fIsReconstructable
vector< int > & GetMCTrackIds()
void AddRecoEvent(int iEvent)
vector< int > & GetRecoTrackIds()
int IsReconstructed()
vector< int > fMCTrackId
int & GetId()
vector< int > fRecoEvents