Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
columnar::PhysliteTestHelpers::ColumnDataEventCount Struct Referencefinal
Inheritance diagram for columnar::PhysliteTestHelpers::ColumnDataEventCount:
Collaboration diagram for columnar::PhysliteTestHelpers::ColumnDataEventCount:

Public Member Functions

virtual bool connect (TTree *, std::unordered_map< std::string, const PhysliteTestHelpers::IColumnData * > &, std::unordered_map< std::string, ColumnInfo > &requestedColumns) override
 
virtual std::size_t getSize () const override
 
virtual void setData (ColumnarToolWrapperData &tool, Long64_t) override
 

Public Attributes

std::array< ColumnarOffsetType, 2 > data = {0, 1}
 

Detailed Description

Definition at line 107 of file ColumnarPhysliteTest.cxx.

Member Function Documentation

◆ connect()

virtual bool columnar::PhysliteTestHelpers::ColumnDataEventCount::connect ( TTree *  ,
std::unordered_map< std::string, const PhysliteTestHelpers::IColumnData * > &  ,
std::unordered_map< std::string, ColumnInfo > &  requestedColumns 
)
inlineoverridevirtual

Implements columnar::PhysliteTestHelpers::IColumnData.

Definition at line 111 of file ColumnarPhysliteTest.cxx.

112  {
113  if (requestedColumns.contains (numberOfEventsName))
114  {
115  requestedColumns.erase (numberOfEventsName);
116  return true;
117  }
118  return false;
119  }

◆ getSize()

virtual std::size_t columnar::PhysliteTestHelpers::ColumnDataEventCount::getSize ( ) const
inlineoverridevirtual

Implements columnar::PhysliteTestHelpers::IColumnData.

Definition at line 121 of file ColumnarPhysliteTest.cxx.

122  {
123  return 1;
124  }

◆ setData()

virtual void columnar::PhysliteTestHelpers::ColumnDataEventCount::setData ( ColumnarToolWrapperData tool,
Long64_t   
)
inlineoverridevirtual

Implements columnar::PhysliteTestHelpers::IColumnData.

Definition at line 126 of file ColumnarPhysliteTest.cxx.

127  {
128  tool.setColumn (numberOfEventsName, data.size(), data.data());
129  }

Member Data Documentation

◆ data

std::array<ColumnarOffsetType, 2> columnar::PhysliteTestHelpers::ColumnDataEventCount::data = {0, 1}

Definition at line 109 of file ColumnarPhysliteTest.cxx.


The documentation for this struct was generated from the following file:
columnar::numberOfEventsName
const std::string numberOfEventsName
the name used for the column containing the number of events
Definition: IColumnarTool.h:38
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:453
columnar::PhysliteTestHelpers::ColumnDataEventCount::data
std::array< ColumnarOffsetType, 2 > data
Definition: ColumnarPhysliteTest.cxx:109