8 #include <framework/utilities/TestHelpers.h>
9 #include <framework/utilities/MakeROOTCompatible.h>
11 #include <gtest/gtest.h>
33 EXPECT_EQ(
"test__boe__pl__clgamma__cm__spM__sp__st__sp3__bc",
makeROOTCompatible(
"test(e+:gamma, M < 3)"));
36 EXPECT_EQ(
"c__cl__bo__cm__pl8951aBZWVZUEOH_Rhtnsq__bcb__sp__bo__bc__cma",
makeROOTCompatible(
"c:(,+8951aBZWVZUEOH_Rhtnsq)b (),a"));
37 EXPECT_EQ(
"foo__bobar__cm__mi0__pt123__cm__sp94__bc",
makeROOTCompatible(
"foo(bar,-0.123, 94)"));
66 "c:(,+8951aBZWVZUEOH_Rhtnsq)b (),a");
TEST(TestgetDetectorRegion, TestgetDetectorRegion)
Test Constructors.
std::map< std::string, std::string > getSubstitutionMap()
Substituation map for makeROOTCompatible.
std::string makeROOTCompatible(std::string str)
Remove special characters that ROOT dislikes in branch names, e.g.
std::string invertMakeROOTCompatible(std::string str)
Invert makeROOTCompatible operation.
Abstract base class for different kinds of events.