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