ATLAS Offline Software
Loading...
Searching...
No Matches
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):
14#ifndef XAOD_STANDALONE
15#include "GaudiKernel/ThreadLocalContext.h"
16#endif
17
18namespace xAOD {
19
34
35 public:
38 // cppcheck-suppress duplInheritedMember
39 static constexpr bool supportsThinning = false;
40
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.
59namespace SG {
60
61
62template<>
63class ToTransient<xAOD::ShallowAuxInfo>
64{
65public:
66 static bool toTransient (xAOD::ShallowAuxInfo& s, const EventContext& ctx)
67 {
68 s.toTransient( ctx );
69 return true;
70 }
71#ifndef XAOD_STANDALONE
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"
84CLASS_DEF( xAOD::ShallowAuxInfo, 196927374, 1 )
85
86// Describe the inheritance of the class:
87#include "xAODCore/BaseInfo.h"
89
90#endif // XAODCORE_SHALLOWAUXINFO_H
#define SG_BASE(D, B)
Declare that class D derives from class B.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
File providing the different SG_BASE macros.
Define a hook for running code after an object has been read.
AuxStoreType
Type of the auxiliary store.
@ AST_ObjectStore
The store describes a single object.
static bool toTransient(xAOD::ShallowAuxInfo &s)
static bool toTransient(xAOD::ShallowAuxInfo &s, const EventContext &ctx)
Define a hook for running code after an object has been read.
Definition ToTransient.h:40
static void toTransient(T &)
Definition ToTransient.h:53
Class creating a shallow copy of an existing auxiliary container.
ShallowAuxContainer(bool standalone=false)
Default constructor.
const DataLink< SG::IConstAuxStore > & parent() const
Get the parent store.
Shallow copy for the auxiliary store of standalone objects.
ShallowAuxInfo()
Default constructor.
static constexpr bool supportsThinning
Flag that we should not use the xAOD aux store pool converter for this type.
virtual AuxStoreType getStoreType() const
Return the type of the store object.
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.