ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
ExampleClass Class Reference

This class provides an example data object for AthenaPool. More...

#include <ExampleClass.h>

Collaboration diagram for ExampleClass:

Public Member Functions

 ExampleClass ()
 Default Constructor. More...
 
virtual ~ExampleClass ()
 Destructor. More...
 
int getRun () const
 
int getEvent () const
 
const std::string & getText () const
 
void setRun (int run)
 Set the run number. More...
 
void setEvent (int event)
 Set the event number. More...
 
void setText (const std::string &text)
 Set the text string. More...
 

Private Attributes

int m_run
 
int m_event
 
std::string m_text
 

Detailed Description

This class provides an example data object for AthenaPool.

Definition at line 19 of file ExampleClass.h.

Constructor & Destructor Documentation

◆ ExampleClass()

ExampleClass::ExampleClass ( )
inline

Default Constructor.

Definition at line 23 of file ExampleClass.h.

23 : m_run(0), m_event(0), m_text("") {}

◆ ~ExampleClass()

virtual ExampleClass::~ExampleClass ( )
inlinevirtual

Destructor.

Definition at line 25 of file ExampleClass.h.

25 {}

Member Function Documentation

◆ getEvent()

int ExampleClass::getEvent ( ) const
inline
Returns
the event number.

Definition at line 32 of file ExampleClass.h.

32 { return(m_event); }

◆ getRun()

int ExampleClass::getRun ( ) const
inline
Returns
the run number.

Definition at line 29 of file ExampleClass.h.

29 { return(m_run); }

◆ getText()

const std::string& ExampleClass::getText ( ) const
inline
Returns
the text string.

Definition at line 35 of file ExampleClass.h.

35 { return(m_text); }

◆ setEvent()

void ExampleClass::setEvent ( int  event)
inline

Set the event number.

Parameters
event[IN] event number.

Definition at line 43 of file ExampleClass.h.

43 { m_event = event; }

◆ setRun()

void ExampleClass::setRun ( int  run)
inline

Set the run number.

Parameters
run[IN] run number.

Definition at line 39 of file ExampleClass.h.

39 { m_run = run; }

◆ setText()

void ExampleClass::setText ( const std::string &  text)
inline

Set the text string.

Parameters
text[IN] text string.

Definition at line 47 of file ExampleClass.h.

47 { m_text = text; }

Member Data Documentation

◆ m_event

int ExampleClass::m_event
private

Definition at line 51 of file ExampleClass.h.

◆ m_run

int ExampleClass::m_run
private

Definition at line 50 of file ExampleClass.h.

◆ m_text

std::string ExampleClass::m_text
private

Definition at line 52 of file ExampleClass.h.


The documentation for this class was generated from the following file:
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
ExampleClass::m_text
std::string m_text
Definition: ExampleClass.h:52
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
ExampleClass::m_run
int m_run
Definition: ExampleClass.h:50
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11
ExampleClass::m_event
int m_event
Definition: ExampleClass.h:51