HepMC3 event record library: MyClass.cc Source File

HepMC3 event record library

MyClass.cc
1#include "MyClass.h"
2
3MyClass::MyClass():someint(0), event(nullptr) {}
4
5 void MyClass::SetEvent(GenEvent* myevt)
6{
7 event = myevt;
8}
9
10 GenEvent* MyClass::GetEvent()
11{
12 return event;
13}
14
15 void MyClass::SetInt(int theint)
16{
17 someint = theint;
18}
19
20 int MyClass::GetInt() const
21{
22 return someint;
23}
HepMC3::GenEvent
Stores event-related information.
Definition GenEvent.h:47
MyClass::GetInt
int GetInt() const
Get someint.
Definition MyClass.cc:20
MyClass::event
GenEvent * event
Test event.
Definition MyClass.h:30
MyClass::SetEvent
void SetEvent(GenEvent *)
Set HepMC event.
Definition MyClass.cc:5
MyClass::someint
int someint
Test int.
Definition MyClass.h:29
MyClass::SetInt
void SetInt(int)
Set someint.
Definition MyClass.cc:15
MyClass::MyClass
MyClass()
Default constructor.
Definition MyClass.cc:3
MyClass::GetEvent
GenEvent * GetEvent()
Get HepMC event.
Definition MyClass.cc:10