HepMC event record
MyClass.h
1 #ifndef MYCLASS_H
2 #define MYCLASS_H
3 
4 #include "HepMC/GenEvent.h"
5 
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
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 
28 private:
29  int someint; ///< Test int
30  HepMC::GenEvent* event; ///< Test event
31 };
32 
33 #endif
Sample class for root I/O test.
Definition: MyClass.h:9
Stores event-related information.
void SetEvent(HepMC::GenEvent *)
Set HepMC event.
Definition: MyClass.cc:5
HepMC::GenEvent * GetEvent()
Get HepMC event.
Definition: MyClass.cc:10
void SetInt(int)
Set someint.
Definition: MyClass.cc:15
int GetInt()
Get someint.
Definition: MyClass.cc:20
int someint
Test int.
Definition: MyClass.h:29
MyClass()
Default constructor.
Definition: MyClass.cc:3
HepMC::GenEvent * event
Test event.
Definition: MyClass.h:30