ATLAS Offline Software
Loading...
Searching...
No Matches
Muon::NswClustering Namespace Reference

Functions

Amg::Vector3D toLocal (const Amg::Transform3D &toLocalTrans, 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.
Amg::Vector3D toLocal (const Trk::Surface &surf, const Amg::Vector3D &dir)
Amg::Vector3D toLocal (const MuonCluster &prd, const Amg::Vector3D &dir)
Amg::Vector3D toLocal (const MuonCluster &prd)

Function Documentation

◆ toLocal() [1/4]

Amg::Vector3D Muon::NswClustering::toLocal ( const Amg::Transform3D & toLocalTrans,
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{toLocalTrans.linear()};
23 const Amg::Vector3D rotDir = rotMat * dir;
24 return Amg::Vector3D{rotDir.x(), rotDir.y(), std::abs(rotDir.z())};
25 }
Eigen::Quaternion< double > Rotation3D
Eigen::Matrix< double, 3, 1 > Vector3D

◆ toLocal() [2/4]

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

Definition at line 35 of file NswClusteringUtils.h.

35 {
36 return toLocal(prd, prd.globalPosition().unit());
37 }
virtual const Amg::Vector3D & globalPosition() const =0
Returns the global position of the measurement (calculated on the fly)
Amg::Vector3D toLocal(const Amg::Transform3D &toLocalTrans, const Amg::Vector3D &dir)
Rotates a direction vector into a local frame: x-axis : Parallell to the radial direction of the dete...

◆ toLocal() [3/4]

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

Definition at line 32 of file NswClusteringUtils.h.

32 {
33 return toLocal(prd.detectorElement()->surface(prd.identify()), dir);
34 }
virtual const TrkDetElementBase * detectorElement() const =0
return the detector element corresponding to this PRD The pointer will be zero if the det el is not d...
Identifier identify() const
return the identifier
virtual const Surface & surface() const =0
Return surface associated with this detector element.

◆ toLocal() [4/4]

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

Definition at line 27 of file NswClusteringUtils.h.

27 {
28 Amg::Rotation3D rotMat{surf.transform().inverse().linear()};
29 const Amg::Vector3D rotDir = rotMat * dir;
30 return Amg::Vector3D{rotDir.x(), rotDir.y(), std::abs(rotDir.z())};
31 }
const Amg::Transform3D & transform() const
Returns HepGeom::Transform3D by reference.