ATLAS Offline Software
Loading...
Searching...
No Matches
RAuxFieldManager.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef XAODROOTACCESS_TOOLS_RAUXFIELDMANAGER_H
8#define XAODROOTACCESS_TOOLS_RAUXFIELDMANAGER_H
9
10// EDM include(s):
12
13// Local include(s):
15
16// Forward declaration(s):
17namespace SG {
18 class IAuxTypeVector;
19}
20
21namespace xAOD::Experimental {
22
33
34public:
36 RAuxFieldManager( std::unique_ptr<THolder> holder, bool isPrimitive = false );
37
40
42 ::Bool_t isPrimitive() const;
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
61private:
62
64 ::Bool_t m_isSet;
66 ::Bool_t m_isPrimitive;
67
68}; // class RAuxFieldManager
69} // namespace xAOD::Experimental
70
71#endif // XAODROOTACCESS_TOOLS_RAUXFIELDMANAGER_H
Basic definitions for auxiliary types.
Abstract interface for manipulating vectors of arbitrary types.
Manager for EDM objects created by ROOT.
const THolder * holder() const
Accessor to the Holder object.
virtual void setObject(void *obj) override
Function replacing the object being handled.
virtual::Bool_t isSet() const override
Check if the object was set for the current event.
::Bool_t m_isPrimitive
Is field of primitive type, e.g. int, float, bool.
virtual::Int_t getEntry(::Int_t getall=0) override
Function for updating the object in memory if needed.
virtual const void * object() const override
Function getting a const pointer to the object being handled.
RAuxFieldManager(std::unique_ptr< THolder > holder, bool isPrimitive=false)
Constructor getting hold of a possible branch.
::Bool_t m_isSet
Was the object set for the current event?
virtual void reset() override
Reset the object at the end of processing of an event.
::Bool_t isPrimitive() const
Accessor to whether the field is a primitive type, e.g. int, float, bool.
virtual::Bool_t create() override
Create the object for the current event.
Forward declaration.