HepMC3 event record library: MyRunClass.cc Source File

HepMC3 event record library

MyRunClass.cc
1#include "MyRunClass.h"
2
3MyRunClass::MyRunClass():someint(0), run(nullptr) {}
4
5 void MyRunClass::SetRunInfo(GenRunInfo* myrun)
6{
7 run = myrun;
8}
9
10 GenRunInfo* MyRunClass::GetRunInfo()
11{
12 return run;
13}
14
15 void MyRunClass::SetInt(int theint)
16{
17 someint = theint;
18}
19
20 int MyRunClass::GetInt() const
21{
22 return someint;
23}
24
HepMC3::GenRunInfo
Stores run-related information.
Definition GenRunInfo.h:33
MyRunClass::GetRunInfo
GenRunInfo * GetRunInfo()
Get HepMC event.
Definition MyRunClass.cc:10
MyRunClass::GetInt
int GetInt() const
Get someint.
Definition MyRunClass.cc:20
MyRunClass::run
GenRunInfo * run
Test run info.
Definition MyRunClass.h:29
MyRunClass::MyRunClass
MyRunClass()
Default constructor.
Definition MyRunClass.cc:3
MyRunClass::someint
int someint
Test int.
Definition MyRunClass.h:28
MyRunClass::SetInt
void SetInt(int)
Set someint.
Definition MyRunClass.cc:15
MyRunClass::SetRunInfo
void SetRunInfo(GenRunInfo *)
Set HepMC event.
Definition MyRunClass.cc:5