ATLAS Offline Software
TAuxManager.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef XAODROOTACCESS_TOOLS_TAUXMANAGER_H
8 #define XAODROOTACCESS_TOOLS_TAUXMANAGER_H
9 
10 // System include(s):
11 #include <memory>
12 
13 // Local include(s):
14 #include "TVirtualManager.h"
15 
16 // Forward declaration(s):
17 namespace SG {
18  class IConstAuxStore;
19 }
20 
21 namespace xAOD {
22 
23  // Forward declaration(s):
24  class TAuxStore;
25 
33  class TAuxManager : public TVirtualManager {
34 
35  public:
37  TAuxManager( TAuxStore* store, ::Bool_t sharedOwner = kTRUE );
39  TAuxManager( const TAuxManager& parent );
40 
42  TAuxManager& operator= ( const TAuxManager& rhs );
43 
45  virtual ::Int_t getEntry( ::Int_t getall = 0 ) override;
46 
48  virtual const void* object() const override;
50  virtual void* object() override;
52  virtual void setObject( void* obj ) override;
53 
55  virtual ::Bool_t create() override;
57  virtual ::Bool_t isSet() const override;
59  virtual void reset() override;
60 
64  const SG::IConstAuxStore* getConstStore() const;
65 
66  private:
68  std::shared_ptr< TAuxStore > m_store;
71 
72  }; // class TAuxManager
73 
74 } // namespace xAOD
75 
76 #endif // XAODROOTACCESS_TOOLS_TAUXMANAGER_H
store
StoreGateSvc * store
Definition: fbtTestBasics.cxx:69
xAOD::TAuxManager::setObject
virtual void setObject(void *obj) override
Function replacing the object being handled.
Definition: TAuxManager.cxx:58
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
xAOD::TAuxManager::getStore
TAuxStore * getStore()
Get a type-specific pointer to the managed object.
Definition: TAuxManager.cxx:99
xAOD::TAuxManager::getConstStore
const SG::IConstAuxStore * getConstStore() const
Get a convenience pointer to the managed object.
Definition: TAuxManager.cxx:104
xAOD::TAuxStore
"ROOT implementation" of IAuxStore
Definition: TAuxStore.h:46
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::TAuxManager::reset
virtual void reset() override
Reset the object at the end of processing of an event.
Definition: TAuxManager.cxx:88
xAOD::TAuxManager::object
virtual const void * object() const override
Function getting a const pointer to the object being handled.
Definition: TAuxManager.cxx:48
xAOD::TVirtualManager
Interface class for the "manager classes".
Definition: TVirtualManager.h:24
xAOD::TAuxManager::operator=
TAuxManager & operator=(const TAuxManager &rhs)
Assignment operator.
Definition: TAuxManager.cxx:29
xAOD::TAuxManager::isSet
virtual ::Bool_t isSet() const override
Check if the object was set for the current event.
Definition: TAuxManager.cxx:79
test_pyathena.parent
parent
Definition: test_pyathena.py:15
xAOD::TAuxManager::create
virtual ::Bool_t create() override
Create the object for the current event.
Definition: TAuxManager.cxx:70
xAOD::TAuxManager::getEntry
virtual ::Int_t getEntry(::Int_t getall=0) override
Function for updating the object in memory if needed.
Definition: TAuxManager.cxx:43
xAOD::TAuxManager
Manager for TAuxStore objects.
Definition: TAuxManager.h:33
TVirtualManager.h
xAOD::TAuxManager::TAuxManager
TAuxManager(TAuxStore *store, ::Bool_t sharedOwner=kTRUE)
Constructor getting hold of an auxiliary store object.
Definition: TAuxManager.cxx:16
xAOD::TAuxManager::m_storePtr
TAuxStore * m_storePtr
Pointer to the auxiliary store object.
Definition: TAuxManager.h:70
xAOD::TAuxManager::m_store
std::shared_ptr< TAuxStore > m_store
The auxiliary store object.
Definition: TAuxManager.h:68
SG::IConstAuxStore
Interface for const operations on an auxiliary store.
Definition: IConstAuxStore.h:64
python.PyAthena.obj
obj
Definition: PyAthena.py:135