ATLAS Offline Software
Loading...
Searching...
No Matches
AlignmentTranslationDeviation.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#include <iostream>
8
9using namespace MuonAlign;
10
12 const std::vector<const Trk::RIO_OnTrack*>& hits) :
13 AlignmentDeviation (hits, 0, false),
14 m_u(u.unit()), m_sigma(sigma)
15{
16}
17
18int AlignmentTranslationDeviation::nPar() const { return 1; }
19
21
22Amg::Transform3D AlignmentTranslationDeviation::getTransform(const std::vector<double>& parameters) const {
23 Amg::Transform3D t(Amg::Translation3D(parameters[0] * m_u));
24 return t;
25}
26
27void AlignmentTranslationDeviation::print(std::ostream& out) const {
28 out << "A translation along (" << m_u.x() << ", " << m_u.y() << ", " << m_u.z() << ") with sigma=" << m_sigma << " mm applied to "
29 << m_hits.size() << " hits" << std::endl;
30}
const PlainObject unit() const
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
virtual int nPar() const
The number of free parameters.
virtual double getCovariance(int ipar, int jpar) const
The error matrix on the free parameters.
virtual void print(std::ostream &out) const
Verbose.
AlignmentTranslationDeviation(const Amg::Vector3D &u, double sigma, const std::vector< const Trk::RIO_OnTrack * > &hits)
virtual Amg::Transform3D getTransform(const std::vector< double > &parameters) const
Return a Transform in the global coordinate system, given a list of parameters.
AlignmentDeviation(const std::vector< const Trk::RIO_OnTrack * > &hits, std::size_t hitshash, bool hitshashdone)
std::vector< const Trk::RIO_OnTrack * > m_hits
Eigen::Affine3d Transform3D
Eigen::Matrix< double, 3, 1 > Vector3D
Eigen::Translation< double, 3 > Translation3D