HepMC3 event record library: MyRunClass Class Reference

HepMC3 event record library

Public Member Functions | Private Attributes
MyRunClass Class Reference

## Detailed Description

Sample class for root I/O test.

Examples
  class_example_read.cc, and class_example_write.cc.

Definition at line 9 of file MyRunClass.h.

`#include <MyRunClass.h>`

Collaboration diagram for MyRunClass:
[legend]

## Public Member Functions
| MyRunClass ()
| Default constructor.
void | SetRunInfo (GenRunInfo *)
| Set HepMC event.
GenRunInfo * | GetRunInfo ()
| Get HepMC event.
void | SetInt (int)
| Set someint.
int | GetInt () const
| Get someint.

## Private Attributes
int | someint
| Test int.
GenRunInfo * | run
| Test run info.

## Constructor & Destructor Documentation

## ◆ MyRunClass()

MyRunClass | ( |  | ) |

Default constructor.

Definition at line 3 of file MyRunClass.cc.

References run, and someint.

## Member Function Documentation

## ◆ GetInt()

int GetInt | ( |  | ) | const

Get someint.

Definition at line 20 of file MyRunClass.cc.

References someint.

## ◆ GetRunInfo()

GenRunInfo * GetRunInfo | ( |  | ) |

Get HepMC event.

Definition at line 10 of file MyRunClass.cc.

References run.

## ◆ SetInt()

void SetInt | ( | int | theint | ) |

Set someint.

Definition at line 15 of file MyRunClass.cc.

References someint.

## ◆ SetRunInfo()

void SetRunInfo | ( | GenRunInfo * | myrun | ) |

Set HepMC event.

Definition at line 5 of file MyRunClass.cc.

References run.

## Field Documentation

## ◆ run

GenRunInfo* run
| private

Test run info.

Definition at line 29 of file MyRunClass.h.

## ◆ someint

int someint
| private

Test int.

Definition at line 28 of file MyRunClass.h.

The documentation for this class was generated from the following files:

- MyRunClass.h
- MyRunClass.cc