![]() |
ATLAS Offline Software
|
a struct holding user configuration for the PHYSLITE tests More...
#include <Configuration.h>
Public Member Functions | |
| void | loadFromFile (const std::string &filename) |
| load configuration overrides from a JSON file | |
Static Public Member Functions | |
| static UserConfiguration | fromEnvironment () |
| create a UserConfiguration, loading from the file pointed to by the COLUMNAR_TEST_CONFIG environment variable | |
Public Attributes | |
| std::chrono::seconds | targetTime = std::chrono::seconds(5) |
| unsigned int | batchSize = 1000 |
| bool | runToolTwice = false |
| bool | skipShallowCopies = false |
| bool | measureNonAccessForEmpty = false |
| whether to measure non-retrieval for empty containers | |
a struct holding user configuration for the PHYSLITE tests
Eventually I can hopefully make this configurable at runtime, but for now this should at least allow me to share the settings between different files, so that they don't need to be all in the same file.
Definition at line 32 of file PhysicsAnalysis/Columnar/ColumnarTestFixtures/ColumnarTestFixtures/Configuration.h.
|
static |
create a UserConfiguration, loading from the file pointed to by the COLUMNAR_TEST_CONFIG environment variable
If the environment variable is not set, returns defaults. If it is set but the file does not exist, throws an error.
Definition at line 40 of file Configuration.cxx.
| void columnar::TestUtils::UserConfiguration::loadFromFile | ( | const std::string & | filename | ) |
load configuration overrides from a JSON file
Only fields present in the JSON are overridden; others keep their defaults.
Definition at line 19 of file Configuration.cxx.
| unsigned int columnar::TestUtils::UserConfiguration::batchSize = 1000 |
Definition at line 38 of file PhysicsAnalysis/Columnar/ColumnarTestFixtures/ColumnarTestFixtures/Configuration.h.
| bool columnar::TestUtils::UserConfiguration::measureNonAccessForEmpty = false |
whether to measure non-retrieval for empty containers
Definition at line 47 of file PhysicsAnalysis/Columnar/ColumnarTestFixtures/ColumnarTestFixtures/Configuration.h.
| bool columnar::TestUtils::UserConfiguration::runToolTwice = false |
Definition at line 41 of file PhysicsAnalysis/Columnar/ColumnarTestFixtures/ColumnarTestFixtures/Configuration.h.
| bool columnar::TestUtils::UserConfiguration::skipShallowCopies = false |
Definition at line 44 of file PhysicsAnalysis/Columnar/ColumnarTestFixtures/ColumnarTestFixtures/Configuration.h.
| std::chrono::seconds columnar::TestUtils::UserConfiguration::targetTime = std::chrono::seconds(5) |
Definition at line 35 of file PhysicsAnalysis/Columnar/ColumnarTestFixtures/ColumnarTestFixtures/Configuration.h.