38 if (parameters.num_row() !=
N_PARAM) {
39 throw cms::Exception(
"BadParameters") <<
"in BowedSurfaceAlignmentParameters(): " 40 << parameters.num_row() <<
" instead of " <<
N_PARAM 53 if (parameters.num_row() !=
N_PARAM) {
54 throw cms::Exception(
"BadParameters") <<
"in BowedSurfaceAlignmentParameters(): " 55 << parameters.num_row() <<
" instead of " <<
N_PARAM 102 <<
"BowedSurfaceAlignmentParameters::derivatives: The hit alignable must match the " 103 <<
"aligned one (i.e. bowed surface parameters cannot be used for composed alignables)\n";
129 eulerAngles[1] = -params[
dslopeX] * 2. / surface.
width();
131 eulerAngles[2] = params[
drotZ] / aScale;
142 <<
"BowedSurfaceAlignmentParameters::apply: parameters without alignable";
159 const auto& params =
theData->parameters();
178 std::cout <<
"Contents of BowedSurfaceAlignmentParameters:" 179 <<
"\nParameters: " <<
theData->parameters()
180 <<
"\nCovariance: " <<
theData->covariance() << std::endl;
align::Scalar width() const
BowedSurfaceAlignmentParameters * cloneFromSelected(const AlgebraicVector ¶meters, const AlgebraicSymMatrix &covMatrix) const override
Clone selected parameters (for update of parameters)
AlgebraicSymMatrix expandSymMatrix(const AlgebraicSymMatrix &m, const std::vector< bool > &sel) const
virtual void move(const GlobalVector &displacement)=0
Movement with respect to the global reference frame.
const std::vector< bool > & selector(void) const
Get alignment parameter selector vector.
BowedSurfaceAlignmentParameters(Alignable *alignable)
Constructor with empty parameters/covariance.
align::LocalVector translation() const
Get translation parameters in double precision.
AlignmentUserVariables * userVariables(void) const
Get pointer to user variables.
void print() const
print parameters to screen
align::EulerAngles rotation() const
Get rotation parameters.
CLHEP::HepMatrix AlgebraicMatrix
void rectify(RotationType &)
Correct a rotation matrix for rounding errors.
void setValid(bool v)
Set validity flag.
virtual void addSurfaceDeformation(const SurfaceDeformation *deformation, bool propagateDown)=0
void apply() override
apply parameters to alignable
int type() const override
tell type (AlignmentParametersFactory::ParametersType - but no circular dependency) ...
AlgebraicMatrix derivatives(const TrajectoryStateOnSurface &tsos, const AlignableDetOrUnitPtr &aliDet) const override
Get all derivatives.
static double gammaScale(double width, double splitLength)
Alignable * alignable(void) const
Get pointer to corresponding alignable.
Vector3DBase< Scalar, LocalTag > LocalVector
BowedSurfaceAlignmentParameters * clone(const AlgebraicVector ¶meters, const AlgebraicSymMatrix &covMatrix) const override
Clone all parameters (for update of parameters)
const AlignableSurface & surface() const
Return the Surface (global position and orientation) of the object.
CLHEP::HepVector AlgebraicVector
AlgebraicVector EulerAngles
align::Scalar length() const
AlgebraicVector expandVector(const AlgebraicVector &m, const std::vector< bool > &sel) const
void setUserVariables(AlignmentUserVariables *auv)
Set pointer to user variables.
virtual void rotateInGlobalFrame(const RotationType &rotation)=0
BowedSurfaceAlignmentDerivatives BowedDerivs
Give parameters a name.
bool isValid(void) const
Get validity flag.
align::GlobalPoints toGlobal(const align::LocalPoints &) const
Return in global coord given a set of local points.
RotationType toMatrix(const EulerAngles &)
Convert rotation angles about x-, y-, z-axes to matrix.
CLHEP::HepSymMatrix AlgebraicSymMatrix