ATLAS Offline Software
Loading...
Searching...
No Matches
PhysliteTest.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_PHYSLITE_TEST_H
9#define COLUMNAR_TEST_FIXTURES_PHYSLITE_TEST_H
10
11#include <SGCore/sgkey_t.h>
12
13#include <span>
14#include <string>
15#include <unordered_map>
16
17class TFile;
18
19namespace columnar
20{
21 namespace TestUtils
22 {
23 struct TestDefinition;
24 struct UserConfiguration;
25
26 // The keys are calculated as crc64(name) extended with the
27 // container CLID and masked to 30 bits (see
28 // columnar::computeSgKey, which reproduces
29 // SG::StringPool::stringToKey). For sole-target link columns the
30 // keys are now computed from ColumnInfo::soleLinkTargetClid; this
31 // table remains as a fallback for variant-link targets, which do
32 // not carry a CLID in ColumnInfo.
33 extern const std::unordered_map<std::string,SG::sgkey_t> knownKeys;
34
35 void runXaodTest (const UserConfiguration& userConfiguration, std::span<const TestDefinition> testDefinitions, TFile *file);
36 void runXaodArrayTest (const UserConfiguration& userConfiguration, const TestDefinition& testDefinition, TFile *file);
37 }
38}
39
40#endif
void runXaodArrayTest(const UserConfiguration &userConfiguration, const TestDefinition &testDefinition, TFile *file)
void runXaodTest(const UserConfiguration &userConfiguration, std::span< const TestDefinition > testDefinitions, TFile *file)
const std::unordered_map< std::string, SG::sgkey_t > knownKeys
TFile * file