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

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

#include <TActiveStore.h>

Collaboration diagram for xAOD::TActiveStore:

Static Public Member Functions

static TStorestore ()
 Access the currently active TStore object. More...
 

Static Private Member Functions

static void setStore (TStore *ptr)
 Set the active store pointer. More...
 

Friends

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

Detailed Description

Helper class for finding the active TStore object.

The idea here is very similar to the one in Athena. Some code needs to access the currently "active" store, without receiving a pointer/reference to the store directly. This code always makes sure that the currently active TStore object is returned to the user. (In case multiple TStore 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 24 of file TActiveStore.h.

Member Function Documentation

◆ setStore()

void xAOD::TActiveStore::setStore ( TStore ptr)
staticprivate

Set the active store pointer.

Definition at line 21 of file TActiveStore.cxx.

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

◆ store()

TStore * xAOD::TActiveStore::store ( )
static

Access the currently active TStore object.

Definition at line 16 of file TActiveStore.cxx.

16  {
17 
18  return s_store;
19  }

Friends And Related Function Documentation

◆ TStore

friend class TStore
friend

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

Definition at line 27 of file TActiveStore.h.


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