HepMC3 event record library: MyClass Class Reference

HepMC3 event record library

Public Member Functions | Private Attributes
MyClass 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 MyClass.h.

`#include <MyClass.h>`

Collaboration diagram for MyClass:
[legend]

## Public Member Functions
| MyClass ()
| Default constructor.
void | SetEvent (GenEvent *)
| Set HepMC event.
GenEvent * | GetEvent ()
| Get HepMC event.
void | SetInt (int)
| Set someint.
int | GetInt () const
| Get someint.

## Private Attributes
int | someint
| Test int.
GenEvent * | event
| Test event.

## Constructor & Destructor Documentation

## ◆ MyClass()

MyClass | ( |  | ) |

Default constructor.

Definition at line 3 of file MyClass.cc.

References event, and someint.

## Member Function Documentation

## ◆ GetEvent()

GenEvent * GetEvent | ( |  | ) |

Get HepMC event.

Examples
  class_example_read.cc.

Definition at line 10 of file MyClass.cc.

References event.

## ◆ GetInt()

int GetInt | ( |  | ) | const

Get someint.

Definition at line 20 of file MyClass.cc.

References someint.

## ◆ SetEvent()

void SetEvent | ( | GenEvent * | myevt | ) |

Set HepMC event.

Definition at line 5 of file MyClass.cc.

## ◆ SetInt()

void SetInt | ( | int | theint | ) |

Set someint.

Definition at line 15 of file MyClass.cc.

References someint.

## Field Documentation

## ◆ event

GenEvent* event
| private

Test event.

Definition at line 30 of file MyClass.h.

## ◆ someint

int someint
| private

Test int.

Definition at line 29 of file MyClass.h.

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

- MyClass.h
- MyClass.cc