| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes | Private Attributes | List of all members
GaudiParallelizer::AlgorithmEntry Class Reference

`#include <src/GaudiParallelizer.h>`

Collaboration diagram for GaudiParallelizer::AlgorithmEntry:
[legend]

## Public Member Functions
| AlgorithmEntry (Algorithm *alg)
| Standard constructor. More...
virtual | ~AlgorithmEntry ()
void | setReverse (bool flag)
| Destructor. More...
Algorithm * | algorithm () const
bool | reverse () const
void | setTimer (int nb)
int | timer () const
void | run (GaudiParallelizer &prlzr)
| Thread task executor method to wrap an algorithm execution in. More...

## Public Attributes
StatusCode | m_returncode
| StatusCode of an algorithm execution received from a thread. More...

## Private Attributes
Algorithm * | m_algorithm
| Algorithm pointer. More...
bool | m_reverse
| Indicates that the flag has to be inverted. More...
int | m_timer
| Timer number for this algorithm. More...

## Detailed Description

Definition at line 34 of file GaudiParallelizer.h.

## Constructor & Destructor Documentation

GaudiParallelizer::AlgorithmEntry::AlgorithmEntry | ( | Algorithm * | alg | ) |
| inline

Standard constructor.

Definition at line 37 of file GaudiParallelizer.h.

37 {
38 m_algorithm = alg;
39 m_reverse = false;
40 m_timer = 0;
41 }
GaudiParallelizer::AlgorithmEntry::m_reverse
bool m_reverse
Indicates that the flag has to be inverted.
Definition: GaudiParallelizer.h:63
GaudiParallelizer::AlgorithmEntry::m_algorithm
Algorithm * m_algorithm
Algorithm pointer.
Definition: GaudiParallelizer.h:62
GaudiParallelizer::AlgorithmEntry::m_timer
int m_timer
Timer number for this algorithm.
Definition: GaudiParallelizer.h:64

virtual GaudiParallelizer::AlgorithmEntry::~AlgorithmEntry | ( |  | ) |
| inline virtual

Definition at line 43 of file GaudiParallelizer.h.

43 {};

## Member Function Documentation

Algorithm* GaudiParallelizer::AlgorithmEntry::algorithm | ( |  | ) | const
| inline

Definition at line 46 of file GaudiParallelizer.h.

46 { return m_algorithm; }
GaudiParallelizer::AlgorithmEntry::m_algorithm
Algorithm * m_algorithm
Algorithm pointer.
Definition: GaudiParallelizer.h:62

bool GaudiParallelizer::AlgorithmEntry::reverse | ( |  | ) | const
| inline

Definition at line 47 of file GaudiParallelizer.h.

47 { return m_reverse; }
GaudiParallelizer::AlgorithmEntry::m_reverse
bool m_reverse
Indicates that the flag has to be inverted.
Definition: GaudiParallelizer.h:63

void GaudiParallelizer::AlgorithmEntry::run | ( | GaudiParallelizer & | prlzr | ) |
| inline

Thread task executor method to wrap an algorithm execution in.

Definition at line 52 of file GaudiParallelizer.h.

52 {
53 if ( prlzr.m_measureTime ) prlzr.m_timerTool->start( timer() );
54 m_returncode = m_algorithm->sysExecute();
55 if ( prlzr.m_measureTime ) prlzr.m_timerTool->stop( timer() );
56 algorithm()->setExecuted( true );
57 }
GaudiParallelizer::AlgorithmEntry::algorithm
Algorithm * algorithm() const
Definition: GaudiParallelizer.h:46
Algorithm::setExecuted
void setExecuted(bool state) override
Set the executed flag to the specified state.
Definition: Algorithm.cpp:844
Algorithm::sysExecute
StatusCode sysExecute() override
The actions to be performed by the algorithm on an event.
Definition: Algorithm.cpp:567
ISequencerTimerTool::start
virtual void start(int index)=0
start the counter, i.e.
GaudiParallelizer::AlgorithmEntry::m_algorithm
Algorithm * m_algorithm
Algorithm pointer.
Definition: GaudiParallelizer.h:62
GaudiParallelizer::AlgorithmEntry::timer
int timer() const
Definition: GaudiParallelizer.h:49
GaudiParallelizer::AlgorithmEntry::m_returncode
StatusCode m_returncode
StatusCode of an algorithm execution received from a thread.
Definition: GaudiParallelizer.h:59
GaudiParallelizer::m_timerTool
ISequencerTimerTool * m_timerTool
Pointer to the timer tool.
Definition: GaudiParallelizer.h:77
GaudiParallelizer::m_measureTime
bool m_measureTime
Flag to measure time.
Definition: GaudiParallelizer.h:75
ISequencerTimerTool::stop
virtual double stop(int index)=0
stop the counter, return the elapsed time

void GaudiParallelizer::AlgorithmEntry::setReverse | ( | bool | flag | ) |
| inline

Destructor.

Definition at line 44 of file GaudiParallelizer.h.

44 { m_reverse = flag; }
GaudiParallelizer::AlgorithmEntry::m_reverse
bool m_reverse
Indicates that the flag has to be inverted.
Definition: GaudiParallelizer.h:63

void GaudiParallelizer::AlgorithmEntry::setTimer | ( | int | nb | ) |
| inline

Definition at line 48 of file GaudiParallelizer.h.

48 { m_timer = nb; }
GaudiParallelizer::AlgorithmEntry::m_timer
int m_timer
Timer number for this algorithm.
Definition: GaudiParallelizer.h:64

int GaudiParallelizer::AlgorithmEntry::timer | ( |  | ) | const
| inline

Definition at line 49 of file GaudiParallelizer.h.

49 { return m_timer; }
GaudiParallelizer::AlgorithmEntry::m_timer
int m_timer
Timer number for this algorithm.
Definition: GaudiParallelizer.h:64

## Member Data Documentation

Algorithm* GaudiParallelizer::AlgorithmEntry::m_algorithm
| private

Algorithm pointer.

Definition at line 62 of file GaudiParallelizer.h.

StatusCode GaudiParallelizer::AlgorithmEntry::m_returncode

StatusCode of an algorithm execution received from a thread.

Definition at line 59 of file GaudiParallelizer.h.

bool GaudiParallelizer::AlgorithmEntry::m_reverse
| private

Indicates that the flag has to be inverted.

Definition at line 63 of file GaudiParallelizer.h.

int GaudiParallelizer::AlgorithmEntry::m_timer
| private

Timer number for this algorithm.

Definition at line 64 of file GaudiParallelizer.h.

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

- GaudiMTTools/src/GaudiParallelizer.h