ATLAS Offline Software
Loading...
Searching...
No Matches
PhysicsAnalysis/Columnar/ColumnarTestFixtures/ColumnarTestFixtures/Configuration.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_CONFIGURATION_H
9#define COLUMNAR_TEST_FIXTURES_CONFIGURATION_H
10
11#include <chrono>
12#include <string>
13#include <vector>
14#include <utility>
15
16namespace asg
17{
18 class AsgTool;
19}
20
21namespace columnar
22{
23 namespace TestUtils
24 {
31
32 struct UserConfiguration final
33 {
34 // the target time to run a given tool
35 std::chrono::seconds targetTime = std::chrono::seconds(5);
36
37 // the number of events per batch in columnar mode
38 unsigned int batchSize = 1000;
39
40 // whether to run the tool a second time to get a "warm" cache measurement
41 bool runToolTwice = false;
42
43 // whether to skip all shallow copies in xAOD array mode
44 bool skipShallowCopies = false;
45
48
49
54 void loadFromFile (const std::string& filename);
55
62 };
63
64
65
66 class IXAODToolCaller;
67
69 struct TestDefinition final
70 {
72 asg::AsgTool *tool = nullptr;
73
75 std::string name = {};
76
79
81 std::vector<std::pair<std::string,std::string>> containerRenames = {};
82
84 std::string sysName = {};
85
87 std::vector<std::string> metTermNames = {};
88 };
89 }
90}
91
92#endif
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
a wrapper around a CP tool in xAOD mdoe to call it in the PHYSLITE test
std::vector< std::string > metTermNames
the MET output term names (if empty, MET output columns are omitted)
std::vector< std::pair< std::string, std::string > > containerRenames
the container name remappings to apply
void loadFromFile(const std::string &filename)
load configuration overrides from a JSON file
static UserConfiguration fromEnvironment()
create a UserConfiguration, loading from the file pointed to by the COLUMNAR_TEST_CONFIG environment ...