12#include <catch_amalgamated.hpp>
15static constexpr std::string_view part1 =
"o2::aod::track::";
16static constexpr std::string_view part2 =
"pt";
20 std::string
s{
"test-string"};
21 char const*
const cs =
"test-string";
35 INFO(
"str -> " << constStr.str);
36 INFO(
"hash -> " << constStr.hash);
43 auto myConstStr =
CONST_STR(
"helloWorld");
45 static_assert(std::same_as<
decltype(myConstStr),
ConstStr<
'h',
'e',
'l',
'l',
'o',
'W',
'o',
'r',
'l',
'd'>>);
46 static_assert(myConstStr.hash == (
uint32_t)942280617);
50 INFO(
"myConstStr is a compile-time string");
55 static_assert(std::same_as<
decltype(myConstStr2),
ConstStr<
'h',
'e',
'l',
'l',
'o',
'U',
'n',
'i',
'v',
'e',
'r',
's',
'e'>>);
57 enum ParticleSpecies {
61 static constexpr std::string_view hist[] = {
"ptDist",
"etaDist"};
62 static constexpr std::string_view particleSuffix[] = {
"_pions",
"_kaons"};
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error s
consteval bool is_const_str_v(T)
constexpr uint32_t runtime_hash(char const *str)
consteval uint32_t compile_time_hash(Ts... Vs)
#define CONST_STR(literal)
TEST_CASE("StringHelpersHash")
void printString(const T &constStr)