HepMC3 event record library
examples
RootIOExample2
include
MyClass.h
1
#ifndef MYCLASS_H
2
#define MYCLASS_H
3
4
#include "
HepMC3/GenEvent.h
"
5
using namespace
HepMC3
;
6
/** @class MyClass
7
* @brief Sample class for root I/O test
8
*/
9
class
MyClass
{
10
public
:
11
12
/// @brief Default constructor
13
MyClass
();
14
15
/// @brief Set HepMC event
16
void
SetEvent
(
GenEvent
*);
17
18
/// @brief Get HepMC event
19
GenEvent
*
GetEvent
();
20
21
/// @brief Set someint
22
void
SetInt
(
int
);
23
24
/// @brief Get someint
25
int
GetInt
()
const
;
26
27
28
private
:
29
int
someint
;
///< Test int
30
GenEvent
*
event
;
///< Test event
31
};
32
33
#endif
GenEvent.h
Definition of class GenEvent.
HepMC3::GenEvent
Stores event-related information.
Definition
GenEvent.h:41
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
HepMC3
HepMC3 main namespace.
Definition
AnalysisExample.h:24
Generated on Sat Mar 22 2025 17:03:02 for HepMC3 event record library by
1.13.2