CMS 3D CMS Logo

RigidBodyAlignmentParameters4D.cc
Go to the documentation of this file.
1 
9 
16 
17 // This class's header
19 
20 //__________________________________________________________________________________________________
22  const AlignableDetOrUnitPtr &alidet) const {
23  const Alignable *ali = this->alignable(); // Alignable of these parameters
24 
25  if (ali == alidet) { // same alignable => same frame
26  return SegmentAlignmentDerivatives4D()(tsos);
27  } else { // different alignable => transform into correct frame
28  const AlgebraicMatrix deriv = SegmentAlignmentDerivatives4D()(tsos);
30  return ftfd.frameToFrameDerivative(alidet, ali).T() * deriv;
31  }
32 }
33 
34 //__________________________________________________________________________________________________
36  const AlgebraicSymMatrix &covMatrix) const {
39 
40  if (userVariables())
42  rbap->setValid(isValid());
43 
44  return rbap;
45 }
46 
47 //__________________________________________________________________________________________________
49  const AlgebraicVector &parameters, const AlgebraicSymMatrix &covMatrix) const {
52 
53  if (userVariables())
55  rbap->setValid(isValid());
56 
57  return rbap;
58 }
59 
60 //__________________________________________________________________________________________________
AlignmentParameters::expandVector
AlgebraicVector expandVector(const AlgebraicVector &m, const std::vector< bool > &sel) const
Definition: AlignmentParameters.cc:215
AlignmentParametersFactory.h
SegmentAlignmentDerivatives4D
Definition: SegmentAlignmentDerivatives4D.h:16
FrameToFrameDerivative.h
Alignable
Definition: Alignable.h:27
AlignmentParameters::userVariables
AlignmentUserVariables * userVariables(void) const
Get pointer to user variables.
Definition: AlignmentParameters.cc:101
RigidBodyAlignmentParameters4D::type
int type() const override
tell type (AlignmentParametersFactory::ParametersType - but no circular dependency)
Definition: RigidBodyAlignmentParameters4D.cc:61
AlignableDetOrUnitPtr
Definition: AlignableDetOrUnitPtr.h:30
AlignmentParameters::isValid
bool isValid(void) const
Get validity flag.
Definition: AlignmentParameters.cc:134
parameters
parameters
Definition: BeamSpot_PayloadInspector.cc:14
FrameToFrameDerivative::frameToFrameDerivative
AlgebraicMatrix frameToFrameDerivative(const Alignable *object, const Alignable *composedObject) const
Definition: FrameToFrameDerivative.cc:16
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
RigidBodyAlignmentParameters4D::cloneFromSelected
RigidBodyAlignmentParameters4D * cloneFromSelected(const AlgebraicVector &parameters, const AlgebraicSymMatrix &covMatrix) const override
Clone selected parameters (for update of parameters)
Definition: RigidBodyAlignmentParameters4D.cc:48
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition: AlgebraicObjects.h:13
RigidBodyAlignmentParameters4D.h
SegmentAlignmentDerivatives4D.h
RigidBodyAlignmentParameters4D
Definition: RigidBodyAlignmentParameters4D.h:22
AlignableDetOrUnitPtr.h
Definitions.h
RigidBodyAlignmentParameters4D::RigidBodyAlignmentParameters4D
RigidBodyAlignmentParameters4D(Alignable *alignable, bool calcMis)
Definition: RigidBodyAlignmentParameters4D.h:27
AlignmentParametersFactory::kRigidBody4D
Definition: AlignmentParametersFactory.h:25
FrameToFrameDerivative
Definition: FrameToFrameDerivative.h:20
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition: AlgebraicObjects.h:15
AlignmentParameters::expandSymMatrix
AlgebraicSymMatrix expandSymMatrix(const AlgebraicSymMatrix &m, const std::vector< bool > &sel) const
Definition: AlignmentParameters.cc:190
AlgebraicMatrix
CLHEP::HepMatrix AlgebraicMatrix
Definition: AlgebraicObjects.h:14
AlignmentParameters::setValid
void setValid(bool v)
Set validity flag.
Definition: AlignmentParameters.cc:137
Alignable.h
RigidBodyAlignmentParameters4D::derivatives
AlgebraicMatrix derivatives(const TrajectoryStateOnSurface &tsos, const AlignableDetOrUnitPtr &) const override
Get all derivatives.
Definition: RigidBodyAlignmentParameters4D.cc:21
Exception.h
AlignmentParameters::alignable
Alignable * alignable(void) const
Get pointer to corresponding alignable.
Definition: AlignmentParameters.cc:104
AlignmentParameters::selector
const std::vector< bool > & selector(void) const
Get alignment parameter selector vector.
Definition: AlignmentParameters.cc:48
RigidBodyAlignmentParameters4D::clone
RigidBodyAlignmentParameters4D * clone(const AlgebraicVector &parameters, const AlgebraicSymMatrix &covMatrix) const override
Clone all parameters (for update of parameters)
Definition: RigidBodyAlignmentParameters4D.cc:35
AlignmentParameters::setUserVariables
void setUserVariables(AlignmentUserVariables *auv)
Set pointer to user variables.
Definition: AlignmentParameters.cc:94