The Gaudi Framework  v29r0 (ff2e7097)
GaudiParallelizer::AlgorithmEntry Class Reference

#include <src/GaudiParallelizer.h>

Collaboration diagram for GaudiParallelizer::AlgorithmEntry:

Public Member Functions

 AlgorithmEntry (Algorithm *alg)
 Standard constructor. More...
 
virtual ~AlgorithmEntry ()
 
void setReverse (bool flag)
 Destructor. More...
 
Algorithmalgorithm () 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

Algorithmm_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 36 of file GaudiParallelizer.h.

Constructor & Destructor Documentation

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

Standard constructor.

Definition at line 40 of file GaudiParallelizer.h.

41  {
42  m_algorithm = alg;
43  m_reverse = false;
44  m_timer = 0;
45  }
bool m_reverse
Indicates that the flag has to be inverted.
Algorithm * m_algorithm
Algorithm pointer.
int m_timer
Timer number for this algorithm.
virtual GaudiParallelizer::AlgorithmEntry::~AlgorithmEntry ( )
inlinevirtual

Definition at line 47 of file GaudiParallelizer.h.

47 {};

Member Function Documentation

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

Definition at line 50 of file GaudiParallelizer.h.

50 { return m_algorithm; }
Algorithm * m_algorithm
Algorithm pointer.
bool GaudiParallelizer::AlgorithmEntry::reverse ( ) const
inline

Definition at line 51 of file GaudiParallelizer.h.

51 { return m_reverse; }
bool m_reverse
Indicates that the flag has to be inverted.
void GaudiParallelizer::AlgorithmEntry::run ( GaudiParallelizer prlzr)
inline

Thread task executor method to wrap an algorithm execution in.

Definition at line 56 of file GaudiParallelizer.h.

57  {
58  if ( prlzr.m_measureTime ) prlzr.m_timerTool->start( timer() );
60  if ( prlzr.m_measureTime ) prlzr.m_timerTool->stop( timer() );
61  algorithm()->setExecuted( true );
62  }
Gaudi::Property< bool > m_measureTime
Algorithm * algorithm() const
GAUDI_API const EventContext & currentContext()
virtual void start(int index)=0
start the counter, i.e.
Algorithm * m_algorithm
Algorithm pointer.
int timer() const
void setExecuted(bool state) const override
Set the executed flag to the specified state.
Definition: Algorithm.cpp:747
StatusCode m_returncode
StatusCode of an algorithm execution received from a thread.
ISequencerTimerTool * m_timerTool
Pointer to the timer tool.
virtual double stop(int index)=0
stop the counter, return the elapsed time
StatusCode sysExecute(const EventContext &ctx) override
The actions to be performed by the algorithm on an event.
Definition: Algorithm.cpp:502
void GaudiParallelizer::AlgorithmEntry::setReverse ( bool  flag)
inline

Destructor.

Definition at line 48 of file GaudiParallelizer.h.

48 { m_reverse = flag; }
bool m_reverse
Indicates that the flag has to be inverted.
void GaudiParallelizer::AlgorithmEntry::setTimer ( int  nb)
inline

Definition at line 52 of file GaudiParallelizer.h.

52 { m_timer = nb; }
int m_timer
Timer number for this algorithm.
int GaudiParallelizer::AlgorithmEntry::timer ( ) const
inline

Definition at line 53 of file GaudiParallelizer.h.

53 { return m_timer; }
int m_timer
Timer number for this algorithm.

Member Data Documentation

Algorithm* GaudiParallelizer::AlgorithmEntry::m_algorithm
private

Algorithm pointer.

Definition at line 67 of file GaudiParallelizer.h.

StatusCode GaudiParallelizer::AlgorithmEntry::m_returncode

StatusCode of an algorithm execution received from a thread.

Definition at line 64 of file GaudiParallelizer.h.

bool GaudiParallelizer::AlgorithmEntry::m_reverse
private

Indicates that the flag has to be inverted.

Definition at line 68 of file GaudiParallelizer.h.

int GaudiParallelizer::AlgorithmEntry::m_timer
private

Timer number for this algorithm.

Definition at line 69 of file GaudiParallelizer.h.


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