ATLAS Offline Software
Static Public Member Functions | Static Private Member Functions | Friends | List of all members
xAOD::TActiveEvent Class Reference

Helper class for finding the active TVirtualEvent object. More...

#include <TActiveEvent.h>

Collaboration diagram for xAOD::TActiveEvent:

Static Public Member Functions

static TVirtualEventevent ()
 Access the currently active TVirtualEvent object. More...
 

Static Private Member Functions

static void setEvent (TVirtualEvent *ptr)
 Set the active event pointer. More...
 

Friends

class TEvent
 Allow the TEvent class to register itself at the right time. More...
 

Detailed Description

Helper class for finding the active TVirtualEvent object.

The idea here is very similar to the one in Athena. Some code needs to access the currently "active" event, without receiving a pointer/reference to the event directly. This code always makes sure that the currently active TVirtualEvent object is returned to the user. (In case multiple TEvent objects are being used to read multiple input files at the same time.)

Author
Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h

Definition at line 27 of file TActiveEvent.h.

Member Function Documentation

◆ event()

TVirtualEvent * xAOD::TActiveEvent::event ( )
static

Access the currently active TVirtualEvent object.

Definition at line 16 of file TActiveEvent.cxx.

16  {
17 
18  return s_event;
19  }

◆ setEvent()

void xAOD::TActiveEvent::setEvent ( TVirtualEvent ptr)
staticprivate

Set the active event pointer.

Definition at line 21 of file TActiveEvent.cxx.

21  {
22 
23  s_event = ptr;
24  return;
25  }

Friends And Related Function Documentation

◆ TEvent

friend class TEvent
friend

Allow the TEvent class to register itself at the right time.

Definition at line 30 of file TActiveEvent.h.


The documentation for this class was generated from the following files:
dbg::ptr
void * ptr(T *p)
Definition: SGImplSvc.cxx:74