Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include "GenEvent.h"
#include "plcio/MCParticleCollection.h"//plico
using namespace std;
namespace MyHepMC{
//GenEvent::GenEvent(){
GenEvent::GenEvent(plcio::MCParticleCollection& mcCol)
: m_mc_vec(mcCol){
m_event_id=-1;
m_run_id=-1;
m_time=-1;
m_det_name="";
}
GenEvent::~GenEvent(){}
void GenEvent::SetEventHeader(long event_id_, long run_id_, float time_, string det_name_){
m_event_id = event_id_;
m_run_id = run_id_;
m_time = time_;
m_det_name = det_name_;
}
/*
void GenEvent::SetMCCollection(plcio::MCParticleCollection vec_){
m_mc_vec = vec_;
}
*/
plcio::MCParticleCollection GenEvent::getMCVec(){
return m_mc_vec;
}
long GenEvent::getID(){
return m_event_id;
}
long GenEvent::getRun() {return m_run_id;}
long GenEvent::getTime() {return m_time;}
std::string GenEvent::getName() {return m_det_name;}
void GenEvent::ReSet(){
m_event_id=-1;
m_run_id=-1;
m_time=-1;
m_det_name="";
m_mc_vec.clear();
}
}