ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Columnar
ColumnarEventInfo
ColumnarEventInfo
EventInfoDef.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_DEF_H
9
#define COLUMNAR_EVENT_INFO_EVENT_INFO_DEF_H
10
11
#include <
ColumnarCore/ContainerId.h
>
12
#include <
ColumnarInterfaces/ColumnarDef.h
>
13
#include <
xAODEventInfo/EventInfo.h
>
14
15
namespace
columnar
16
{
17
struct
EventInfoDef
:
RegularContainerId
<xAOD::EventInfo,xAOD::EventInfo>
18
{
19
// The `idName` is used to identify the container internally, but
20
// it is also the fallback if the tool doesn't explicitly define a
21
// name for the object. So I defined it as "EventInfo" which is
22
// almost always the name used in the input file.
23
static
constexpr
std::string_view
idName
=
"EventInfo"
;
24
25
// redefine this to be per-event ObjectId instead of per-event
26
// ObjectRange
27
static
constexpr
bool
perEventRange
=
false
;
28
static
constexpr
bool
perEventId
=
true
;
29
};
30
31
using
EventInfoRange
=
ObjectRange<EventInfoDef>
;
32
using
EventInfoId
=
ObjectId<EventInfoDef>
;
33
using
OptEventInfoId
=
OptObjectId<EventInfoDef>
;
34
template
<
typename
CT,
typename
CM=ColumnarModeDefault>
using
EventInfoAccessor
=
AccessorTemplate<EventInfoDef,CT,ColumnAccessMode::input,CM>
;
35
template
<
typename
CT,
typename
CM=ColumnarModeDefault>
using
EventInfoDecorator
=
AccessorTemplate<EventInfoDef,CT,ColumnAccessMode::output,CM>
;
36
}
37
38
#endif
ColumnarDef.h
ContainerId.h
columnar::AccessorTemplate
the raw column accessor template class
Definition
ColumnAccessor.h:197
columnar::ObjectId
a class representing a single object (electron, muons, etc.)
Definition
ContainerId.h:205
columnar::ObjectRange
a class representing a continuous sequence of objects (a.k.a. a container)
Definition
ContainerId.h:204
columnar::OptObjectId
a class representing a single optional object (electron, muons, etc.)
Definition
ContainerId.h:206
columnar
Definition
ClusterDef.h:16
columnar::OptEventInfoId
OptObjectId< EventInfoDef > OptEventInfoId
Definition
EventInfoDef.h:33
columnar::EventInfoRange
ObjectRange< EventInfoDef > EventInfoRange
Definition
EventInfoDef.h:31
columnar::EventInfoId
ObjectId< EventInfoDef > EventInfoId
Definition
EventInfoDef.h:32
columnar::EventInfoAccessor
AccessorTemplate< EventInfoDef, CT, ColumnAccessMode::input, CM > EventInfoAccessor
Definition
EventInfoDef.h:34
columnar::EventInfoDecorator
AccessorTemplate< EventInfoDef, CT, ColumnAccessMode::output, CM > EventInfoDecorator
Definition
EventInfoDef.h:35
columnar::EventInfoDef
Definition
EventInfoDef.h:18
columnar::EventInfoDef::idName
static constexpr std::string_view idName
Definition
EventInfoDef.h:23
columnar::EventInfoDef::perEventRange
static constexpr bool perEventRange
Definition
EventInfoDef.h:27
columnar::EventInfoDef::perEventId
static constexpr bool perEventId
Definition
EventInfoDef.h:28
columnar::RegularContainerId
a template that provides a base definition of container id for a regular container
Definition
ContainerId.h:122
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0