ATLAS Offline Software
Loading...
Searching...
No Matches
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
14
15namespace columnar
16{
17 namespace ContainerId
18 {
19 struct eventInfo : regularCIBase<xAOD::EventInfo,xAOD::EventInfo>
20 {
21 // The `idName` is used to identify the container internally, but
22 // it is also the fallback if the tool doesn't explicitly define a
23 // name for the object. So I defined it as "EventInfo" which is
24 // almost always the name used in the input file.
25 static constexpr std::string_view idName = "EventInfo";
26
27 // redefine this to be per-event ObjectId instead of per-event
28 // ObjectRange
29 static constexpr bool perEventRange = false;
30 static constexpr bool perEventId = true;
31 };
32 }
33
37 template<typename CT,typename CM=ColumnarModeDefault> using EventInfoAccessor = AccessorTemplate<ContainerId::eventInfo,CT,ColumnAccessMode::input,CM>;
38 template<typename CT,typename CM=ColumnarModeDefault> using EventInfoDecorator = AccessorTemplate<ContainerId::eventInfo,CT,ColumnAccessMode::output,CM>;
39}
40
41#endif
the raw column accessor template class
a class representing a single object (electron, muons, etc.)
a class representing a continuous sequence of objects (a.k.a. a container)
a class representing a single optional object (electron, muons, etc.)
a namespace for holding the ids for the different "virtual" containers
Definition ClusterDef.h:18
AccessorTemplate< ContainerId::eventInfo, CT, ColumnAccessMode::input, CM > EventInfoAccessor
AccessorTemplate< ContainerId::eventInfo, CT, ColumnAccessMode::output, CM > EventInfoDecorator
OptObjectId< ContainerId::eventInfo > OptEventInfoId
ObjectRange< ContainerId::eventInfo > EventInfoRange
ObjectId< ContainerId::eventInfo > EventInfoId
static constexpr bool perEventRange
static constexpr bool perEventId
static constexpr std::string_view idName
a template that provides a base definition of container id for a regular container