18 namespace TrackFindingCDC {
21 enum class EFitVariance {
42 inline EFitVariance getFitVariance(
const std::string& fitVarianceString)
44 if (fitVarianceString == std::string(
"unit")) {
45 return EFitVariance::c_Unit;
46 }
else if (fitVarianceString == std::string(
"nominal")) {
47 return EFitVariance::c_Nominal;
48 }
else if (fitVarianceString == std::string(
"driftLength")) {
49 return EFitVariance::c_DriftLength;
50 }
else if (fitVarianceString == std::string(
"pseudo")) {
51 return EFitVariance::c_Pseudo;
52 }
else if (fitVarianceString == std::string(
"proper")) {
53 return EFitVariance::c_Proper;
55 throw std::invalid_argument(
"Unexpected fit variance string : '" + fitVarianceString +
"'");
Abstract base class for different kinds of events.