ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODCore
xAODCore
ShallowAuxInfo.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
// $Id: ShallowAuxInfo.h 671678 2015-06-02 12:28:46Z krasznaa $
8
#ifndef XAODCORE_SHALLOWAUXINFO_H
9
#define XAODCORE_SHALLOWAUXINFO_H
10
11
// Local include(s):
12
#include "
xAODCore/ShallowAuxContainer.h
"
13
#include "
AthContainersInterfaces/ToTransient.h
"
14
#ifndef XAOD_STANDALONE
15
#include "GaudiKernel/ThreadLocalContext.h"
16
#endif
17
18
namespace
xAOD
{
19
33
class
ShallowAuxInfo
:
public
ShallowAuxContainer
{
34
35
public
:
38
// cppcheck-suppress duplInheritedMember
39
static
constexpr
bool
supportsThinning
=
false
;
40
42
ShallowAuxInfo
();
44
ShallowAuxInfo
(
const
DataLink< SG::IConstAuxStore >
&
parent
);
45
47
virtual
AuxStoreType
getStoreType
()
const
{
return
AST_ObjectStore
; }
48
49
};
// class ShallowAuxInfo
50
51
}
// namespace xAOD
52
53
54
55
// This class declares supportsThinning=false, meaning that it will be
56
// handled by the generic POOL converter rather than the one specialized
57
// for xAOD auxiliary stores. Hence, we need to specialize ToTransient
58
// in order to get toTransient called for this type.
59
namespace
SG
{
60
61
62
template
<>
63
class
ToTransient
<
xAOD
::ShallowAuxInfo>
64
{
65
public
:
66
static
bool
toTransient
(
xAOD::ShallowAuxInfo
& s,
const
EventContext& ctx)
67
{
68
s.toTransient( ctx );
69
return
true
;
70
}
71
#ifndef XAOD_STANDALONE
72
static
bool
toTransient
(
xAOD::ShallowAuxInfo
& s)
73
{
74
return
toTransient
( s, Gaudi::Hive::currentContext() );
75
}
76
#endif
77
};
78
79
80
}
81
82
// Declare a class ID for the class:
83
#include "
xAODCore/CLASS_DEF.h
"
84
CLASS_DEF
(
xAOD::ShallowAuxInfo
, 196927374, 1 )
85
86
// Describe the inheritance of the class:
87
#include "xAODCore/BaseInfo.h"
88
SG_BASE
(
xAOD::ShallowAuxInfo
,
xAOD::ShallowAuxContainer
);
89
90
#endif
// XAODCORE_SHALLOWAUXINFO_H
SG_BASE
#define SG_BASE(D, B)
Declare that class D derives from class B.
Definition
Control/AthenaKernel/AthenaKernel/BaseInfo.h:243
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
CLASS_DEF.h
File providing the different SG_BASE macros.
ShallowAuxContainer.h
ToTransient.h
Define a hook for running code after an object has been read.
DataLink< SG::IConstAuxStore >
SG::IAuxStoreHolder::AuxStoreType
AuxStoreType
Type of the auxiliary store.
Definition
IAuxStoreHolder.h:68
SG::IAuxStoreHolder::AST_ObjectStore
@ AST_ObjectStore
The store describes a single object.
Definition
IAuxStoreHolder.h:69
SG::ToTransient< xAOD::ShallowAuxInfo >::toTransient
static bool toTransient(xAOD::ShallowAuxInfo &s)
Definition
ShallowAuxInfo.h:72
SG::ToTransient< xAOD::ShallowAuxInfo >::toTransient
static bool toTransient(xAOD::ShallowAuxInfo &s, const EventContext &ctx)
Definition
ShallowAuxInfo.h:66
SG::ToTransient
Define a hook for running code after an object has been read.
Definition
ToTransient.h:40
SG::ToTransient::toTransient
static void toTransient(T &)
Definition
ToTransient.h:53
xAOD::ShallowAuxContainer
Class creating a shallow copy of an existing auxiliary container.
Definition
ShallowAuxContainer.h:50
xAOD::ShallowAuxContainer::ShallowAuxContainer
ShallowAuxContainer(bool standalone=false)
Default constructor.
Definition
ShallowAuxContainer.cxx:32
xAOD::ShallowAuxContainer::parent
const DataLink< SG::IConstAuxStore > & parent() const
Get the parent store.
Definition
ShallowAuxContainer.cxx:122
xAOD::ShallowAuxInfo
Shallow copy for the auxiliary store of standalone objects.
Definition
ShallowAuxInfo.h:33
xAOD::ShallowAuxInfo::ShallowAuxInfo
ShallowAuxInfo()
Default constructor.
Definition
ShallowAuxInfo.cxx:12
xAOD::ShallowAuxInfo::supportsThinning
static constexpr bool supportsThinning
Flag that we should not use the xAOD aux store pool converter for this type.
Definition
ShallowAuxInfo.h:39
xAOD::ShallowAuxInfo::getStoreType
virtual AuxStoreType getStoreType() const
Return the type of the store object.
Definition
ShallowAuxInfo.h:47
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
Generated on
for ATLAS Offline Software by
1.17.0