ATLAS Offline Software
RAuxManager.h
Go to the documentation of this file.
1 #ifndef XAODROOTACCESS_TOOLS_RAUXMANAGER_H
2 #define XAODROOTACCESS_TOOLS_RAUXMANAGER_H
3 
4 // System include(s):
5 #include <memory>
6 
7 // Local include(s):
8 #include "TVirtualManager.h"
9 
10 // Forward declaration(s):
11 namespace SG {
12  class IConstAuxStore;
13 }
14 
15 namespace xAOD {
16 
17  // Forward declaration(s):
18  class RAuxStore;
19 
25  class RAuxManager : public TVirtualManager {
26 
27  public:
29  RAuxManager( RAuxStore* store, ::Bool_t sharedOwner = kTRUE );
31  RAuxManager( const RAuxManager& parent );
32 
34  RAuxManager& operator=( const RAuxManager& rhs );
35 
37  virtual ::Int_t getEntry( ::Int_t getall = 0 ) override;
38 
40  virtual const void* object() const override;
42  virtual void* object() override;
44  virtual void setObject( void* obj ) override;
45 
47  virtual ::Bool_t create() override;
49  virtual ::Bool_t isSet() const override;
51  virtual void reset() override;
52 
56  const SG::IConstAuxStore* getConstStore() const;
57 
58  private:
60  std::shared_ptr< RAuxStore > m_store;
63 
64  }; // class RAuxManager
65 
66 } // namespace xAOD
67 
68 #endif // XAODROOTACCESS_TOOLS_TAUXMANAGER_H
SGTest::store
TestStore store
Definition: TestStore.cxx:23
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
xAOD::RAuxManager::getStore
RAuxStore * getStore()
Get a type-specific pointer to the managed object.
Definition: RAuxManager.cxx:94
xAOD::RAuxManager::operator=
RAuxManager & operator=(const RAuxManager &rhs)
Assignment operator.
Definition: RAuxManager.cxx:24
xAOD::RAuxManager::m_storePtr
RAuxStore * m_storePtr
Pointer to the auxiliary store object.
Definition: RAuxManager.h:62
xAOD::RAuxStore
Definition: RAuxStore.h:36
xAOD::RAuxManager::getEntry
virtual ::Int_t getEntry(::Int_t getall=0) override
Function for updating the object in memory if needed.
Definition: RAuxManager.cxx:38
xAOD::RAuxManager::RAuxManager
RAuxManager(RAuxStore *store, ::Bool_t sharedOwner=kTRUE)
Constructor getting hold of an auxiliary store object.
Definition: RAuxManager.cxx:13
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::TVirtualManager
Interface class for the "manager classes".
Definition: TVirtualManager.h:24
xAOD::RAuxManager::reset
virtual void reset() override
Reset the object at the end of processing of an event.
Definition: RAuxManager.cxx:83
xAOD::RAuxManager::m_store
std::shared_ptr< RAuxStore > m_store
The auxiliary store object.
Definition: RAuxManager.h:60
test_pyathena.parent
parent
Definition: test_pyathena.py:15
xAOD::RAuxManager::getConstStore
const SG::IConstAuxStore * getConstStore() const
Get a convenience pointer to the managed object.
Definition: RAuxManager.cxx:99
xAOD::RAuxManager::isSet
virtual ::Bool_t isSet() const override
Check if the object was set for the current event.
Definition: RAuxManager.cxx:74
xAOD::RAuxManager::object
virtual const void * object() const override
Function getting a const pointer to the object being handled.
Definition: RAuxManager.cxx:43
TVirtualManager.h
xAOD::RAuxManager
Manager for RAuxStore objects.
Definition: RAuxManager.h:25
xAOD::RAuxManager::setObject
virtual void setObject(void *obj) override
Function replacing the object being handled.
Definition: RAuxManager.cxx:53
xAOD::RAuxManager::create
virtual ::Bool_t create() override
Create the object for the current event.
Definition: RAuxManager.cxx:65
SG::IConstAuxStore
Interface for const operations on an auxiliary store.
Definition: IConstAuxStore.h:64
python.PyAthena.obj
obj
Definition: PyAthena.py:132