ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Columnar
ColumnarEventInfo
ColumnarEventInfo
EventInfoHelpers.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
#ifndef COLUMNAR_EVENT_INFO_EVENT_INFO_HELPERS_H
9
#define COLUMNAR_EVENT_INFO_EVENT_INFO_HELPERS_H
10
11
#include <
ColumnarCore/ColumnAccessor.h
>
12
#include <
ColumnarEventInfo/EventInfoDef.h
>
13
14
namespace
columnar
15
{
16
namespace
EventInfoHelpers
17
{
24
25
26
template
<ContainerIdConcept CI = EventInfoDef,
typename
CM=ColumnarModeDefault>
27
class
EventTypeAccessor
final
28
{
29
ColumnAccessor<CI,uint32_t,CM>
m_eventTypeBitmaskAcc
;
30
31
public
:
32
33
EventTypeAccessor
(
ColumnarTool<CM>
& columnarTool)
34
:
m_eventTypeBitmaskAcc
(columnarTool,
"eventTypeBitmask"
) {}
35
36
bool
operator ()
(
ObjectId<CI,CM>
object
,
xAOD::EventInfo::EventType
type
)
const
37
{
38
return
m_eventTypeBitmaskAcc
(
object
) &
static_cast<
uint32_t
>
(
type
);
39
}
40
};
41
}
42
}
43
44
#endif
ColumnAccessor.h
EventInfoDef.h
columnar::ColumnarTool
the base class for all columnar components
Definition
ColumnAccessorDataArray.h:17
columnar::EventInfoHelpers::EventTypeAccessor::m_eventTypeBitmaskAcc
ColumnAccessor< CI, uint32_t, CM > m_eventTypeBitmaskAcc
Definition
EventInfoHelpers.h:29
columnar::EventInfoHelpers::EventTypeAccessor::operator()
bool operator()(ObjectId< CI, CM > object, xAOD::EventInfo::EventType type) const
Definition
EventInfoHelpers.h:36
columnar::EventInfoHelpers::EventTypeAccessor::EventTypeAccessor
EventTypeAccessor(ColumnarTool< CM > &columnarTool)
Definition
EventInfoHelpers.h:33
columnar::ObjectId
a class representing a single object (electron, muons, etc.)
Definition
ContainerId.h:205
xAOD::EventInfo_v1::EventType
EventType
Event type codes that can be set/checked in the bitmask.
Definition
EventInfo_v1.h:149
columnar::EventInfoHelpers
Definition
EventInfoHelpers.h:17
columnar
Definition
ClusterDef.h:16
columnar::ColumnAccessor
AccessorTemplate< CI, CT, ColumnAccessMode::input, CM > ColumnAccessor
Definition
ColumnAccessor.h:274
type
Generated on
for ATLAS Offline Software by
1.17.0