ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsEvent
ActsEvent
ContextUtility.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef ACTSEVENT_CONTEXTUTILITY_H
5
#define ACTSEVENT_CONTEXTUTILITY_H
6
7
8
#include "
StoreGate/ReadCondHandleKey.h
"
9
#include "
StoreGate/ReadHandleKey.h
"
10
11
#include "
AthenaBaseComps/AthMessaging.h
"
12
13
#include "
ActsGeometryInterfaces/GeometryContext.h
"
14
#include "
MagFieldConditions/AtlasFieldCacheCondObj.h
"
15
16
#include "Acts/Utilities/CalibrationContext.hpp"
17
#include "Acts/MagneticField/MagneticFieldContext.hpp"
18
19
namespace
ActsTrk
{
27
class
ContextUtility
{
28
public
:
33
template
<
class
PropOwner>
34
explicit
ContextUtility
(PropOwner* owner);
37
StatusCode
initialize
(
const
bool
enable =
true
);
40
Acts::GeometryContext
getGeometryContext
(
const
EventContext& ctx)
const
;
43
Acts::CalibrationContext
getCalibrationContext
(
const
EventContext& ctx)
const
;
46
Acts::MagneticFieldContext
getMagneticFieldContext
(
const
EventContext& ctx)
const
;
47
private
:
49
GeoContextReadKey_t
m_geoCtxKey
;
51
SG::ReadCondHandleKey<AtlasFieldCacheCondObj>
m_magCtxKey
;
53
std::function<MsgStream&(
const
MSG::Level)>
m_msgPrinter
;
55
std::function<bool(
const
MSG::Level)>
m_msgLevel
;
58
MsgStream&
msg
(
const
MSG::Level lvl)
const
;
60
bool
msgLvl
(
const
MSG::Level lvl)
const
;
61
};
62
63
}
64
#include "
ActsEvent/ContextUtility.icc
"
65
#endif
AthMessaging.h
AtlasFieldCacheCondObj.h
ContextUtility.icc
GeometryContext.h
ReadCondHandleKey.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ActsTrk::ContextUtility::m_magCtxKey
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_magCtxKey
Data dependency on the magnetic field map.
Definition
ContextUtility.h:51
ActsTrk::ContextUtility::getMagneticFieldContext
Acts::MagneticFieldContext getMagneticFieldContext(const EventContext &ctx) const
Retrieves the current magnetic field context from StoreGate.
Definition
ContextUtility.cxx:47
ActsTrk::ContextUtility::ContextUtility
ContextUtility(PropOwner *owner)
Constructor taking the pointer to the class holding the object used to declare the data dependency fr...
ActsTrk::ContextUtility::msgLvl
bool msgLvl(const MSG::Level lvl) const
Returns whether the stream satisfies the logging level.
Definition
ContextUtility.cxx:26
ActsTrk::ContextUtility::getGeometryContext
Acts::GeometryContext getGeometryContext(const EventContext &ctx) const
Retrieves the current geometry context from StoreGate.
Definition
ContextUtility.cxx:30
ActsTrk::ContextUtility::getCalibrationContext
Acts::CalibrationContext getCalibrationContext(const EventContext &ctx) const
Retrieves the current calibration context from StoreGate.
Definition
ContextUtility.cxx:43
ActsTrk::ContextUtility::m_msgLevel
std::function< bool(const MSG::Level)> m_msgLevel
Lambda to return the msg level from the parent's msg stream.
Definition
ContextUtility.h:55
ActsTrk::ContextUtility::m_geoCtxKey
GeoContextReadKey_t m_geoCtxKey
Data dependency on the aligned geometry transforms.
Definition
ContextUtility.h:49
ActsTrk::ContextUtility::m_msgPrinter
std::function< MsgStream &(const MSG::Level)> m_msgPrinter
Lambda to access the parent's msg stream.
Definition
ContextUtility.h:53
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
ActsTrk::GeoContextReadKey_t
SG::ReadHandleKey< GeometryContext > GeoContextReadKey_t
Abrivate the ReadHandleKey to declare the data dependency on the Geometry context.
Definition
GeometryContext.h:64
initialize
void initialize()
Definition
run_EoverP.cxx:894
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0