ATLAS Offline Software
Loading...
Searching...
No Matches
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):
17namespace SG {
18 class IConstAuxStore;
19}
20
21namespace xAOD {
22
23 // Forward declaration(s):
24 class TAuxStore;
25
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
Interface for const operations on an auxiliary store.
TAuxManager(TAuxStore *store, ::Bool_t sharedOwner=kTRUE)
Constructor getting hold of an auxiliary store object.
virtual void reset() override
Reset the object at the end of processing of an event.
virtual::Bool_t create() override
Create the object for the current event.
TAuxStore * m_storePtr
Pointer to the auxiliary store object.
Definition TAuxManager.h:70
TAuxStore * getStore()
Get a type-specific pointer to the managed object.
virtual::Int_t getEntry(::Int_t getall=0) override
Function for updating the object in memory if needed.
virtual::Bool_t isSet() const override
Check if the object was set for the current event.
virtual void setObject(void *obj) override
Function replacing the object being handled.
TAuxManager & operator=(const TAuxManager &rhs)
Assignment operator.
std::shared_ptr< TAuxStore > m_store
The auxiliary store object.
Definition TAuxManager.h:68
const SG::IConstAuxStore * getConstStore() const
Get a convenience pointer to the managed object.
virtual const void * object() const override
Function getting a const pointer to the object being handled.
"ROOT @c TTree implementation" of IAuxStore
Definition TAuxStore.h:30
Interface class for the "manager classes".
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.