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:

Public Member Functions

 MyClass ()
 Default constructor.
 
void SetEvent (GenEvent *)
 Set HepMC event.
 
GenEventGetEvent ()
 Get HepMC event.
 
void SetInt (int)
 Set someint.
 
int GetInt ()
 Get someint.
 

Private Attributes

int someint
 Test int.
 
GenEventevent
 Test event.
 

Constructor & Destructor Documentation

◆ MyClass()

MyClass ( )

Default constructor.

Definition at line 3 of file MyClass.cc.

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 ( )

Get someint.

Definition at line 20 of file MyClass.cc.

References someint.

◆ SetEvent()

void SetEvent ( GenEvent myevt)

Set HepMC event.

Examples
class_example_write.cc.

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: