ATLAS Offline Software
Loading...
Searching...
No Matches
ColumnarPhysliteTest.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_TEST_FIXTURES__COLUMNAR_PHYS_LITE_TEST_H
9#define COLUMNAR_TEST_FIXTURES__COLUMNAR_PHYS_LITE_TEST_H
10
11#include <AsgTools/AsgTool.h>
16
17#include <gtest/gtest.h>
18
19#include <functional>
20#include <string>
21#include <vector>
22
23class TFile;
24class TTree;
25
26namespace columnar
27{
29
30 namespace TestUtils
31 {
32 class IColumnData;
33 }
34
35
36 struct ColumnarPhysLiteTest : testing::Test
37 {
38 std::unique_ptr<TFile> file;
39 TTree *tree = nullptr;
40
41 std::vector<std::shared_ptr<TestUtils::IColumnData>> knownColumns;
42 std::vector<std::shared_ptr<TestUtils::IColumnData>> usedColumns;
43 std::unordered_map<std::string,const std::vector<ColumnarOffsetType>*> offsetColumns;
44
47
49 std::string makeUniqueName ();
50
52 static bool checkMode ();
53
54 void setupKnownColumns (const TestUtils::TestDefinition& testDefinition);
55
56 void setupColumns (ToolColumnVectorMap& toolWrapper);
57
58 void doCall (const TestUtils::TestDefinition& testDefinition);
59 };
60}
61
62#endif
a class that interfaces an IColumnarTool to a ColumnVectorHeader
std::vector< std::shared_ptr< TestUtils::IColumnData > > knownColumns
std::vector< std::shared_ptr< TestUtils::IColumnData > > usedColumns
void setupColumns(ToolColumnVectorMap &toolWrapper)
std::string makeUniqueName()
make a unique tool name to be used in unit tests
std::unordered_map< std::string, const std::vector< ColumnarOffsetType > * > offsetColumns
void doCall(const TestUtils::TestDefinition &testDefinition)
void setupKnownColumns(const TestUtils::TestDefinition &testDefinition)
static bool checkMode()
check whether we have the right mode