Go to the documentation of this file.
10 : theSensors(sensors), theLevels(
levels) {}
15 for (
unsigned int i = 0;
i < nSensor; ++
i) {
43 for (
unsigned int i = 1;
i <= nIteration; ++
i) {
44 std::cout <<
"***** Iteration " <<
i <<
" *****\n";
55 for (
unsigned int j = 0;
j < nSensor; ++
j) {
63 parChi2 += cov.inverse(
dummy).similarity(par);
66 parChi2 /= static_cast<double>(nSensor);
67 std::cout <<
"chi2 = " << parChi2 << std::endl;
void iterate(unsigned int nIteration, const std::string &fileName, bool bias=false)
Run the iteration: find residuals, write to output, shift sensors.
virtual void rotateInGlobalFrame(const RotationType &rotation)=0
SurveyAlignment(const align::Alignables &sensors, const std::vector< align::StructureType > &levels)
Constructor to set the sensors and residual levels.
CLHEP::HepVector AlgebraicVector
void rectify(RotationType &)
Correct a rotation matrix for rounding errors.
align::GlobalPoints toGlobal(const align::LocalPoints &) const
Return in global coord given a set of local points.
const AlignableSurface & surface() const
Return the Surface (global position and orientation) of the object.
CLHEP::HepSymMatrix AlgebraicSymMatrix
AlgebraicVector EulerAngles
virtual void move(const GlobalVector &displacement)=0
Movement with respect to the global reference frame.
virtual void findAlignPars(bool bias=false)=0
Find the alignment parameters for all sensors.
std::vector< Alignable * > Alignables
const AlgebraicSymMatrix & covariance(void) const
Get parameter covariance matrix.
const align::Alignables & theSensors
RotationType toMatrix(const EulerAngles &)
Convert rotation angles about x-, y-, z-axes to matrix.
const AlgebraicVector & parameters(void) const
Get alignment parameters.
AlignmentParameters * alignmentParameters() const
Get the AlignmentParameters.
virtual void shiftSensors()
Apply the alignment parameters to all sensors.