The Gaudi Framework  master (37c0b60a)
Gaudi::Hive Namespace Reference

Classes

class  ContextSpecificData
 Implementation of a context specific storage accessible as a sort of smart reference class. More...
 
class  ContextSpecificPtr
 Simple implementation of a smart pointer with different values for different event contexts (slots). More...
 
class  FetchDataFromFile
 
class  FetchLeavesFromFile
 

Typedefs

typedef std::size_t ContextIdType
 Internal type used for the ContextId. More...
 

Functions

GAUDI_API ContextIdType currentContextId ()
 Return the current context id. More...
 
GAUDI_API ContextIdType currentContextEvt ()
 
GAUDI_API const EventContextcurrentContext ()
 
GAUDI_API void setCurrentContextId (ContextIdType newId)
 Used by the framework to change the value of the current context id. More...
 
GAUDI_API void setCurrentContextEvt (long int evtN)
 
GAUDI_API void setCurrentContextId (ContextIdType newId, long int evtN)
 
GAUDI_API void setCurrentContextId (const EventContext *ctx)
 
GAUDI_API void setCurrentContext (const EventContext *ctx)
 
GAUDI_API void setCurrentContext (const EventContext &ctx)
 

Typedef Documentation

◆ ContextIdType

Internal type used for the ContextId.

Definition at line 23 of file ThreadLocalContext.h.

Function Documentation

◆ currentContext()

const EventContext & Gaudi::Hive::currentContext ( )

Definition at line 30 of file ThreadLocalContext.cpp.

30 { return s_curCtx(); }

◆ currentContextEvt()

ContextIdType Gaudi::Hive::currentContextEvt ( )

Definition at line 29 of file ThreadLocalContext.cpp.

29 { return s_curCtx().evt(); }

◆ currentContextId()

ContextIdType Gaudi::Hive::currentContextId ( )

Return the current context id.

The returned id is valid only within the (sys)Execute method of algorithms.

Definition at line 28 of file ThreadLocalContext.cpp.

28 { return s_curCtx().slot(); }

◆ setCurrentContext() [1/2]

void Gaudi::Hive::setCurrentContext ( const EventContext ctx)

Definition at line 43 of file ThreadLocalContext.cpp.

43 { s_curCtx() = ctx; }

◆ setCurrentContext() [2/2]

void Gaudi::Hive::setCurrentContext ( const EventContext ctx)

Definition at line 41 of file ThreadLocalContext.cpp.

41 { s_curCtx() = *ctx; }

◆ setCurrentContextEvt()

void Gaudi::Hive::setCurrentContextEvt ( long int  evtN)

Definition at line 32 of file ThreadLocalContext.cpp.

32 { s_curCtx().setEvt( evtN ); }

◆ setCurrentContextId() [1/3]

void Gaudi::Hive::setCurrentContextId ( const EventContext ctx)

Definition at line 39 of file ThreadLocalContext.cpp.

39 { s_curCtx() = *ctx; }

◆ setCurrentContextId() [2/3]

void Gaudi::Hive::setCurrentContextId ( ContextIdType  newId)

Used by the framework to change the value of the current context id.

Definition at line 33 of file ThreadLocalContext.cpp.

33 { s_curCtx().setSlot( newId ); }

◆ setCurrentContextId() [3/3]

void Gaudi::Hive::setCurrentContextId ( ContextIdType  newId,
long int  evtN 
)

Definition at line 36 of file ThreadLocalContext.cpp.

36 { s_curCtx().set( evtN, newId ); }
GaudiPython.Pythonizations.ctx
ctx
Definition: Pythonizations.py:578