20 namespace AlignmentParametersFactory {
25 if (typeString ==
"RigidBody")
return kRigidBody;
26 else if (typeString ==
"Survey")
return kSurvey;
27 else if (typeString ==
"RigidBody4D")
return kRigidBody4D;
28 else if (typeString ==
"BeamSpot")
return kBeamSpot;
32 <<
"AlignmentParametersFactory" <<
" No AlignmentParameters with name '" << typeString <<
"'.";
48 <<
"AlignmentParametersFactory" <<
" No AlignmentParameters with number " << typeInt <<
".";
66 return "BowedSurface";
68 return "TwoBowedSurfaces";
71 return "unknown_should_never_reach";
76 const std::vector<bool> &
sel)
89 <<
"AlignmentParametersFactory cannot create SurveyParameters.";
std::string parametersTypeName(ParametersType parType)
convert ParametersType to string understood by parametersType(string &typeString) ...
ParametersType
enums for all available AlignmentParameters
AlignmentParameters * createParameters(Alignable *ali, ParametersType parType, const std::vector< bool > &sel)
CLHEP::HepVector AlgebraicVector
CLHEP::HepSymMatrix AlgebraicSymMatrix
ParametersType parametersType(const std::string &typeString)
convert string to ParametersType - exception if not known