ATLAS Offline Software
|
Manager for RAuxStore objects. More...
#include <RAuxManager.h>
Public Member Functions | |
RAuxManager (RAuxStore *store, ::Bool_t sharedOwner=kTRUE) | |
Constructor getting hold of an auxiliary store object. More... | |
RAuxManager (const RAuxManager &parent) | |
Copy constructor. More... | |
RAuxManager & | operator= (const RAuxManager &rhs) |
Assignment operator. More... | |
virtual ::Int_t | getEntry (::Int_t getall=0) override |
Function for updating the object in memory if needed. More... | |
virtual const void * | object () const override |
Function getting a const pointer to the object being handled. More... | |
virtual void * | object () override |
Function getting a pointer to the object being handled. More... | |
virtual void | setObject (void *obj) override |
Function replacing the object being handled. More... | |
virtual ::Bool_t | create () override |
Create the object for the current event. More... | |
virtual ::Bool_t | isSet () const override |
Check if the object was set for the current event. More... | |
virtual void | reset () override |
Reset the object at the end of processing of an event. More... | |
RAuxStore * | getStore () |
Get a type-specific pointer to the managed object. More... | |
const SG::IConstAuxStore * | getConstStore () const |
Get a convenience pointer to the managed object. More... | |
Private Attributes | |
std::shared_ptr< RAuxStore > | m_store |
The auxiliary store object. More... | |
RAuxStore * | m_storePtr |
Pointer to the auxiliary store object. More... | |
Manager for RAuxStore objects.
This class is used when connecting RAuxStore objects to the input ntuple as the auxiliary store of a DV container.
Definition at line 25 of file RAuxManager.h.
xAOD::RAuxManager::RAuxManager | ( | RAuxStore * | store, |
::Bool_t | sharedOwner = kTRUE |
||
) |
Constructor getting hold of an auxiliary store object.
Definition at line 13 of file RAuxManager.cxx.
xAOD::RAuxManager::RAuxManager | ( | const RAuxManager & | parent | ) |
|
overridevirtual |
Create the object for the current event.
There is no need for a default object.
Implements xAOD::TVirtualManager.
Definition at line 65 of file RAuxManager.cxx.
const SG::IConstAuxStore * xAOD::RAuxManager::getConstStore | ( | ) | const |
Get a convenience pointer to the managed object.
Definition at line 99 of file RAuxManager.cxx.
|
overridevirtual |
Function for updating the object in memory if needed.
Implements xAOD::TVirtualManager.
Definition at line 38 of file RAuxManager.cxx.
RAuxStore * xAOD::RAuxManager::getStore | ( | ) |
Get a type-specific pointer to the managed object.
Definition at line 94 of file RAuxManager.cxx.
|
overridevirtual |
Check if the object was set for the current event.
The state of a RAuxStore object is always "set".
So this interface unfortunately doesn't make much sense for this manager class...
Implements xAOD::TVirtualManager.
Definition at line 74 of file RAuxManager.cxx.
|
overridevirtual |
Function getting a const pointer to the object being handled.
Implements xAOD::TVirtualManager.
Definition at line 43 of file RAuxManager.cxx.
|
overridevirtual |
Function getting a pointer to the object being handled.
Implements xAOD::TVirtualManager.
Definition at line 48 of file RAuxManager.cxx.
RAuxManager & xAOD::RAuxManager::operator= | ( | const RAuxManager & | rhs | ) |
|
overridevirtual |
Reset the object at the end of processing of an event.
Resetting an auxiliary store needs to be done in a smart way.
Container stores need to be emptied, while object stores don't need to be touched.
Implements xAOD::TVirtualManager.
Definition at line 83 of file RAuxManager.cxx.
|
overridevirtual |
Function replacing the object being handled.
Implements xAOD::TVirtualManager.
Definition at line 53 of file RAuxManager.cxx.
|
private |
The auxiliary store object.
Definition at line 60 of file RAuxManager.h.
|
private |
Pointer to the auxiliary store object.
Definition at line 62 of file RAuxManager.h.