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";
175 std::cout <<
"Contents of BowedSurfaceAlignmentParameters:" 176 <<
"\nParameters: " <<
theData->parameters()
177 <<
"\nCovariance: " <<
theData->covariance() << std::endl;
align::Scalar width() const
virtual AlgebraicMatrix derivatives(const TrajectoryStateOnSurface &tsos, const AlignableDetOrUnitPtr &aliDet) const
Get all derivatives.
virtual BowedSurfaceAlignmentParameters * cloneFromSelected(const AlgebraicVector ¶meters, const AlgebraicSymMatrix &covMatrix) const
Clone selected parameters (for update of parameters)
virtual void apply()
apply parameters to alignable
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.
virtual int type() const
tell type (AlignmentParametersFactory::ParametersType - but no circular dependency) ...
align::LocalVector translation() const
Get translation parameters in double precision.
const AlgebraicVector & parameters(void) const
Get alignment parameters.
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
static double gammaScale(double width, double splitLength)
Alignable * alignable(void) const
Get pointer to corresponding alignable.
Vector3DBase< Scalar, LocalTag > LocalVector
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
virtual BowedSurfaceAlignmentParameters * clone(const AlgebraicVector ¶meters, const AlgebraicSymMatrix &covMatrix) const
Clone all parameters (for update of parameters)
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