ATLAS Offline Software
Loading...
Searching...
No Matches
RAuxFieldManager.cxx
Go to the documentation of this file.
1// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3// ROOT include(s):
4#include <TBranch.h>
5#include <TTree.h>
6#include <TError.h>
7
8// EDM include(s):
10
11// Local include(s):
15
17
18RAuxFieldManager::RAuxFieldManager( std::unique_ptr<THolder> holder, bool isPrimitive )
19 :
21 m_isSet( kTRUE ),
23
24
26
28
29 return m_isPrimitive;
30}
31
32
33::Int_t RAuxFieldManager::getEntry( ::Int_t /*getall*/ ) {
34
35 return 0;
36}
37
38const void* RAuxFieldManager::object() const {
39
40 return holder()->get();
41}
42
44
45 return holder()->get();
46}
47
48void RAuxFieldManager::setObject( void* obj ) {
49
50 holder()->set(obj);
51 m_isSet = kTRUE;
52 return;
53}
54
55
57
58 return m_isSet;
59}
60
61::Bool_t RAuxFieldManager::isSet() const {
62
63 return m_isSet;
64}
65
67
68 m_isSet = kFALSE;
69 return;
70}
71
72} // namespace xAOD::Experimental
73
Handle mappings between names and auxid_t.
IObjectManager(std::unique_ptr< THolder > holder)
Constructor.
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.
virtual void set(void *obj)
Replace the managed object.
Definition THolder.cxx:231
const void * get() const
Return a typeless const pointer to the held object.
Definition THolder.cxx:216
STL namespace.