ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODEventInfo
Root
EventInfoAccessors_v1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// $Id: EventInfoAccessors_v1.cxx 579930 2014-01-24 10:36:54Z krasznaa $
6
7
// System include(s):
8
#include <iostream>
9
10
// Local include(s):
11
#include "
EventInfoAccessors_v1.h
"
12
14
#define DEFINE_ACCESSOR( ENUM_NAME, AUX_NAME ) \
15
case EventInfo_v1::ENUM_NAME: \
16
{ \
17
static const SG::AtomicDecorator< uint32_t > a( #AUX_NAME ); \
18
return &a; \
19
} \
20
break
21
23
#define DEFINE_CONST_ACCESSOR( ENUM_NAME, AUX_NAME ) \
24
case EventInfo_v1::ENUM_NAME: \
25
{ \
26
static const SG::AtomicConstAccessor< uint32_t > a( #AUX_NAME ); \
27
return &a; \
28
} \
29
break
30
31
namespace
xAOD
{
32
33
const
SG::AtomicDecorator< uint32_t >
*
34
eventFlagsAccessorsV1
(
EventInfo_v1::EventFlagSubDet
subDet ) {
35
36
switch
( subDet ) {
37
38
DEFINE_ACCESSOR
(
Pixel
, pixelFlags );
39
DEFINE_ACCESSOR
(
SCT
, sctFlags );
40
DEFINE_ACCESSOR
(
TRT
, trtFlags );
41
DEFINE_ACCESSOR
(
LAr
, larFlags );
42
DEFINE_ACCESSOR
(
Tile
, tileFlags );
43
DEFINE_ACCESSOR
(
Muon
, muonFlags );
44
DEFINE_ACCESSOR
( ForwardDet, forwardDetFlags );
45
DEFINE_ACCESSOR
( Core, coreFlags );
46
DEFINE_ACCESSOR
( Background, backgroundFlags );
47
DEFINE_ACCESSOR
( Lumi, lumiFlags );
48
49
default
:
50
std::println (std::cerr,
51
"xAOD::EventInfo_v1 ERROR Unknown sub-detector ({}) requested"
,
52
static_cast<
int
>
(subDet) );
53
return
nullptr
;
54
}
55
}
56
57
58
const
SG::AtomicConstAccessor< uint32_t >
*
59
eventFlagsConstAccessorsV1
(
EventInfo_v1::EventFlagSubDet
subDet ) {
60
61
switch
( subDet ) {
62
63
DEFINE_CONST_ACCESSOR
(
Pixel
, pixelFlags );
64
DEFINE_CONST_ACCESSOR
(
SCT
, sctFlags );
65
DEFINE_CONST_ACCESSOR
(
TRT
, trtFlags );
66
DEFINE_CONST_ACCESSOR
(
LAr
, larFlags );
67
DEFINE_CONST_ACCESSOR
(
Tile
, tileFlags );
68
DEFINE_CONST_ACCESSOR
(
Muon
, muonFlags );
69
DEFINE_CONST_ACCESSOR
( ForwardDet, forwardDetFlags );
70
DEFINE_CONST_ACCESSOR
( Core, coreFlags );
71
DEFINE_CONST_ACCESSOR
( Background, backgroundFlags );
72
DEFINE_CONST_ACCESSOR
( Lumi, lumiFlags );
73
74
default
:
75
std::println( std::cerr,
76
"xAOD::EventInfo_v1 ERROR Unknown sub-detector ({}) requested"
,
77
static_cast<
int
>
(subDet) );
78
return
nullptr
;
79
}
80
}
81
82
}
// namespace xAOD
DEFINE_ACCESSOR
#define DEFINE_ACCESSOR(TYPE, NAME)
Helper macro for Accessor objects.
Definition
BTaggingAccessors_v1.cxx:15
DEFINE_CONST_ACCESSOR
#define DEFINE_CONST_ACCESSOR(ENUM_NAME, AUX_NAME)
Helper macro for defining the different accessor objects.
Definition
EventInfoAccessors_v1.cxx:23
EventInfoAccessors_v1.h
SG::AtomicConstAccessor
Access an auxiliary variable atomically.
Definition
AtomicConstAccessor.h:45
SG::AtomicDecorator
Access an auxiliary variable atomically.
Definition
AtomicDecorator.h:44
xAOD::EventInfo_v1::EventFlagSubDet
EventFlagSubDet
Sub-detector types for which we store event-level flags.
Definition
EventInfo_v1.h:331
LAr
Definition
LArVolumeBuilder.h:37
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
Pixel
Definition
PixelFEUtils.h:17
SCT
Definition
SCT_ChipUtils.h:14
TRT
Definition
HitInfo.h:33
Tile
Definition
TileVolumeBuilder.h:42
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::eventFlagsAccessorsV1
const SG::AtomicDecorator< uint32_t > * eventFlagsAccessorsV1(EventInfo_v1::EventFlagSubDet subDet)
Helper function for accessing event flag variables.
Definition
EventInfoAccessors_v1.cxx:34
xAOD::eventFlagsConstAccessorsV1
const SG::AtomicConstAccessor< uint32_t > * eventFlagsConstAccessorsV1(EventInfo_v1::EventFlagSubDet subDet)
Helper function for accessing event flag variables, for const access.
Definition
EventInfoAccessors_v1.cxx:59
Generated on
for ATLAS Offline Software by
1.17.0