10#include <tracking/trackFindingCDC/utilities/Algorithms.h>
20 namespace TrackFindingCDC {
22 inline std::string prefixed(
const std::string& prefix,
const std::string& name)
26 }
else if (name ==
"") {
29 std::string captialisedName = name;
30 captialisedName[0] = ::toupper(name.at(0));
31 return prefix + captialisedName;
36 inline std::string quoted(
const std::string& text)
38 return "\"" + text +
"\"";
42 inline std::string bracketed(
const std::string& text)
44 return "(" + text +
")";
49 std::string join(
const std::string& sep,
const Ts& texts)
51 auto it = std::begin(texts);
52 auto itEnd = std::end(texts);
53 if (it == itEnd)
return std::string{};
54 std::ostringstream result;
56 for (; it != itEnd; ++it) {
Abstract base class for different kinds of events.