HepMC3 event record library: MyRunClass.h Source File

HepMC3 event record library

MyRunClass.h
1#ifndef MYRUNCLASS_H
2#define MYRUNCLASS_H
3
4#include "HepMC3/GenRunInfo.h"
5using namespace HepMC3;
6/** @class MyRunClass
7 * @brief Sample class for root I/O test
8 */
9 class MyRunClass {
10public:
11
12 /// @brief Default constructor
13 MyRunClass();
14
15 /// @brief Set HepMC event
16 void SetRunInfo(GenRunInfo*);
17
18 /// @brief Get HepMC event
19 GenRunInfo* GetRunInfo();
20
21 /// @brief Set someint
22 void SetInt(int);
23
24 /// @brief Get someint
25 int GetInt() const;
26
27private:
28 int someint; ///< Test int
29 GenRunInfo* run; ///< Test run info
30};
31
32#endif
GenRunInfo.h
Definition of class GenRunInfo.
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
HepMC3
HepMC3 main namespace.
Definition AnalysisExample.h:24