EventContext Class Reference

This class represents an entry point to all the event specific data. More...

#include <GaudiKernel/EventContext.h>

Public Types

typedef size_t ID_type
 
typedef size_t ID_type
 

Public Member Functions

 EventContext ()
 
 EventContext (const long int &e, const ID_type &s=0)
 
long int evt () const
 
ID_type slot () const
 
bool valid () const
 
bool evtFail () const
 
void set (const long int &e=0, const ID_type &s=0, const bool f=false)
 
void setEvt (const long int &e)
 
void setFail (const bool &b=true)
 
void setValid (const bool &b=true)
 
EventContextoperator= (const EventContext &c)
 
 EventContext ()
 
 EventContext (const long int &e, const ID_type &s=0)
 
long int evt () const
 
ID_type slot () const
 
bool valid () const
 
bool evtFail () const
 
void set (const long int &e=0, const ID_type &s=0, const bool f=false)
 
void setEvt (const long int &e)
 
void setFail (const bool &b=true)
 
void setValid (const bool &b=true)
 
EventContextoperator= (const EventContext &c)
 

Private Attributes

long int m_evt_num
 
ID_type m_evt_slot
 
bool m_valid
 
bool m_evt_failed
 

Detailed Description

This class represents an entry point to all the event specific data.

It is needed to make the algorithm "aware" of the event it is operating on. This was not needed in the serial version of Gaudi where the assumption of 1-event-at-the-time processing was implicit.

This class has nothing to do with the AlgContextSvc or the Context of the EvtSelector!

Author
Danilo Piparo, Charles Leggett
Date
2012

Definition at line 22 of file EventContext.h.

Member Typedef Documentation

typedef size_t EventContext::ID_type

Definition at line 24 of file EventContext.h.

typedef size_t EventContext::ID_type

Definition at line 24 of file EventContext.h.

Constructor & Destructor Documentation

EventContext::EventContext ( )
inline

Definition at line 26 of file EventContext.h.

26  :
27  m_evt_num(-1),
28  m_evt_slot(0),
29  m_valid(false),
30  m_evt_failed(false){};
ID_type m_evt_slot
Definition: EventContext.h:72
bool m_evt_failed
Definition: EventContext.h:74
long int m_evt_num
Definition: EventContext.h:71
EventContext::EventContext ( const long int &  e,
const ID_type s = 0 
)
inline

Definition at line 31 of file EventContext.h.

31  :m_evt_num(e),
32  m_evt_slot(s),
33  m_evt_failed(false){
34  m_valid = (e<0) ? false: true;
35  }
ID_type m_evt_slot
Definition: EventContext.h:72
bool m_evt_failed
Definition: EventContext.h:74
long int m_evt_num
Definition: EventContext.h:71
string s
Definition: gaudirun.py:245
EventContext::EventContext ( )
inline

Definition at line 26 of file EventContext.h.

26  :
27  m_evt_num(-1),
28  m_evt_slot(0),
29  m_valid(false),
30  m_evt_failed(false){};
ID_type m_evt_slot
Definition: EventContext.h:72
bool m_evt_failed
Definition: EventContext.h:74
long int m_evt_num
Definition: EventContext.h:71
EventContext::EventContext ( const long int &  e,
const ID_type s = 0 
)
inline

Definition at line 31 of file EventContext.h.

31  :m_evt_num(e),
32  m_evt_slot(s),
33  m_evt_failed(false){
34  m_valid = (e<0) ? false: true;
35  }
ID_type m_evt_slot
Definition: EventContext.h:72
bool m_evt_failed
Definition: EventContext.h:74
long int m_evt_num
Definition: EventContext.h:71
string s
Definition: gaudirun.py:245

Member Function Documentation

long int EventContext::evt ( ) const
inline

Definition at line 37 of file EventContext.h.

37 { return m_evt_num; }
long int m_evt_num
Definition: EventContext.h:71
long int EventContext::evt ( ) const
inline

Definition at line 37 of file EventContext.h.

37 { return m_evt_num; }
long int m_evt_num
Definition: EventContext.h:71
bool EventContext::evtFail ( ) const
inline

Definition at line 40 of file EventContext.h.

40 { return m_evt_failed; }
bool m_evt_failed
Definition: EventContext.h:74
bool EventContext::evtFail ( ) const
inline

Definition at line 40 of file EventContext.h.

40 { return m_evt_failed; }
bool m_evt_failed
Definition: EventContext.h:74
EventContext& EventContext::operator= ( const EventContext c)
inline

Definition at line 62 of file EventContext.h.

62  {
63  m_evt_num = c.m_evt_num;
65  m_valid = c.m_valid;
67  return *this;
68  }
ID_type m_evt_slot
Definition: EventContext.h:72
bool m_evt_failed
Definition: EventContext.h:74
long int m_evt_num
Definition: EventContext.h:71
EventContext& EventContext::operator= ( const EventContext c)
inline

Definition at line 62 of file EventContext.h.

62  {
63  m_evt_num = c.m_evt_num;
65  m_valid = c.m_valid;
67  return *this;
68  }
ID_type m_evt_slot
Definition: EventContext.h:72
bool m_evt_failed
Definition: EventContext.h:74
long int m_evt_num
Definition: EventContext.h:71
void EventContext::set ( const long int &  e = 0,
const ID_type s = 0,
const bool  f = false 
)
inline

Definition at line 42 of file EventContext.h.

42  {
43  m_valid = (e<0) ? false : true;
44  m_evt_num = e;
45  m_evt_slot = s;
46  m_evt_failed = f;
47  }
ID_type m_evt_slot
Definition: EventContext.h:72
bool m_evt_failed
Definition: EventContext.h:74
long int m_evt_num
Definition: EventContext.h:71
string s
Definition: gaudirun.py:245
void EventContext::set ( const long int &  e = 0,
const ID_type s = 0,
const bool  f = false 
)
inline

Definition at line 42 of file EventContext.h.

42  {
43  m_valid = (e<0) ? false : true;
44  m_evt_num = e;
45  m_evt_slot = s;
46  m_evt_failed = f;
47  }
ID_type m_evt_slot
Definition: EventContext.h:72
bool m_evt_failed
Definition: EventContext.h:74
long int m_evt_num
Definition: EventContext.h:71
string s
Definition: gaudirun.py:245
void EventContext::setEvt ( const long int &  e)
inline

Definition at line 49 of file EventContext.h.

49  {
50  m_valid = (e<0) ? false : true;
51  m_evt_num = e;
52  }
long int m_evt_num
Definition: EventContext.h:71
void EventContext::setEvt ( const long int &  e)
inline

Definition at line 49 of file EventContext.h.

49  {
50  m_valid = (e<0) ? false : true;
51  m_evt_num = e;
52  }
long int m_evt_num
Definition: EventContext.h:71
void EventContext::setFail ( const bool &  b = true)
inline

Definition at line 54 of file EventContext.h.

54  {
55  m_evt_failed = b;
56  }
bool m_evt_failed
Definition: EventContext.h:74
void EventContext::setFail ( const bool &  b = true)
inline

Definition at line 54 of file EventContext.h.

54  {
55  m_evt_failed = b;
56  }
bool m_evt_failed
Definition: EventContext.h:74
void EventContext::setValid ( const bool &  b = true)
inline

Definition at line 58 of file EventContext.h.

58  {
59  m_valid = b;
60  }
void EventContext::setValid ( const bool &  b = true)
inline

Definition at line 58 of file EventContext.h.

58  {
59  m_valid = b;
60  }
ID_type EventContext::slot ( ) const
inline

Definition at line 38 of file EventContext.h.

38 { return m_evt_slot; }
ID_type m_evt_slot
Definition: EventContext.h:72
ID_type EventContext::slot ( ) const
inline

Definition at line 38 of file EventContext.h.

38 { return m_evt_slot; }
ID_type m_evt_slot
Definition: EventContext.h:72
bool EventContext::valid ( ) const
inline

Definition at line 39 of file EventContext.h.

39 {return m_valid;}
bool EventContext::valid ( ) const
inline

Definition at line 39 of file EventContext.h.

39 {return m_valid;}

Member Data Documentation

bool EventContext::m_evt_failed
private

Definition at line 74 of file EventContext.h.

long int EventContext::m_evt_num
private

Definition at line 71 of file EventContext.h.

ID_type EventContext::m_evt_slot
private

Definition at line 72 of file EventContext.h.

bool EventContext::m_valid
private

Definition at line 73 of file EventContext.h.


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