ATLAS Offline Software
Functions
Muon::NswClustering Namespace Reference

Functions

Amg::Vector3D toLocal (const Trk::Surface &surf, const Amg::Vector3D &dir)
 Rotates a direction vector into a local frame: x-axis : Parallell to the radial direction of the detector centre y-axis : Pependicular to the x-axis in the transverse plane z-axis : Points to the big wheel. More...
 
Amg::Vector3D toLocal (const MuonCluster &prd, const Amg::Vector3D &dir)
 
Amg::Vector3D toLocal (const MuonCluster &prd)
 

Function Documentation

◆ toLocal() [1/3]

Amg::Vector3D Muon::NswClustering::toLocal ( const MuonCluster prd)
inline

Definition at line 29 of file NswClusteringUtils.h.

29  {
30  return toLocal(prd, prd.globalPosition().unit());
31  }

◆ toLocal() [2/3]

Amg::Vector3D Muon::NswClustering::toLocal ( const MuonCluster prd,
const Amg::Vector3D dir 
)
inline

Definition at line 26 of file NswClusteringUtils.h.

26  {
27  return toLocal(prd.detectorElement()->surface(prd.identify()), dir);
28  }

◆ toLocal() [3/3]

Amg::Vector3D Muon::NswClustering::toLocal ( const Trk::Surface surf,
const Amg::Vector3D dir 
)
inline

Rotates a direction vector into a local frame: x-axis : Parallell to the radial direction of the detector centre y-axis : Pependicular to the x-axis in the transverse plane z-axis : Points to the big wheel.

Definition at line 21 of file NswClusteringUtils.h.

21  {
22  Amg::Rotation3D rotMat{surf.transform().inverse().linear()};
23  const Amg::Vector3D rotDir = rotMat * dir;
24  return Amg::Vector3D{rotDir.x(), rotDir.y(), std::abs(rotDir.z())};
25  }
Amg::Rotation3D
Eigen::Quaternion< double > Rotation3D
Definition: GeoPrimitives.h:43
beamspotman.dir
string dir
Definition: beamspotman.py:623
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Muon::NswClustering::toLocal
Amg::Vector3D toLocal(const MuonCluster &prd)
Definition: NswClusteringUtils.h:29
Trk::Surface::transform
const Amg::Transform3D & transform() const
Returns HepGeom::Transform3D by reference.