ATLAS Offline Software
Loading...
Searching...
No Matches
Muon::NSWSeed::SeedMeasurement Struct Reference

Struct caching the MuonClusterOnTrack and providing the orientation of the strip in addtion. More...

#include <MuonNSWSegmentFinderTool.h>

Collaboration diagram for Muon::NSWSeed::SeedMeasurement:

Public Member Functions

 SeedMeasurement ()=default
 SeedMeasurement (const Muon::MuonClusterOnTrack *cl)
const Muon::MuonClusterOnTrackget () const
 Accomodations of the interface to make the changes as transparent as possible.
const Muon::MuonClusterOnTrackoperator-> () const
 operator const Muon::MuonClusterOnTrack * () const
bool operator== (const SeedMeasurement &other) const
bool operator! () const
 operator bool () const
const Amg::Vector3Ddir () const
const Amg::Vector3Dpos () const
double dirDot (const SeedMeasurement &other) const
double dirDot (const Amg::Vector3D &v) const
void setDistance (double d)
double distance () const

Private Attributes

const Muon::MuonClusterOnTrackm_cl {nullptr}
Amg::Vector3D m_dir {Amg::Vector3D::Zero()}
double m_distance {0.}

Detailed Description

Struct caching the MuonClusterOnTrack and providing the orientation of the strip in addtion.

Definition at line 33 of file MuonNSWSegmentFinderTool.h.

Constructor & Destructor Documentation

◆ SeedMeasurement() [1/2]

Muon::NSWSeed::SeedMeasurement::SeedMeasurement ( )
default

◆ SeedMeasurement() [2/2]

Muon::NSWSeed::SeedMeasurement::SeedMeasurement ( const Muon::MuonClusterOnTrack * cl)
explicit

Definition at line 103 of file MuonNSWSegmentFinderTool.cxx.

103 :
104 m_cl{cl},
105 m_dir{cl->detectorElement()->transform(cl->identify()).linear() * Amg::Vector3D::UnitY()} {}
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
const Muon::MuonClusterOnTrack * m_cl

Member Function Documentation

◆ dir()

const Amg::Vector3D & Muon::NSWSeed::SeedMeasurement::dir ( ) const
inline

Definition at line 45 of file MuonNSWSegmentFinderTool.h.

45{return m_dir;}

◆ dirDot() [1/2]

double Muon::NSWSeed::SeedMeasurement::dirDot ( const Amg::Vector3D & v) const
inline

Definition at line 49 of file MuonNSWSegmentFinderTool.h.

49{ return dir().dot(v); }
const Amg::Vector3D & dir() const

◆ dirDot() [2/2]

double Muon::NSWSeed::SeedMeasurement::dirDot ( const SeedMeasurement & other) const
inline

Definition at line 48 of file MuonNSWSegmentFinderTool.h.

48{return dirDot(other.dir());}
double dirDot(const SeedMeasurement &other) const

◆ distance()

double Muon::NSWSeed::SeedMeasurement::distance ( ) const
inline

Definition at line 52 of file MuonNSWSegmentFinderTool.h.

◆ get()

const Muon::MuonClusterOnTrack * Muon::NSWSeed::SeedMeasurement::get ( ) const
inline

Accomodations of the interface to make the changes as transparent as possible.

Definition at line 37 of file MuonNSWSegmentFinderTool.h.

37{return m_cl;}

◆ operator bool()

Muon::NSWSeed::SeedMeasurement::operator bool ( ) const
inline

Definition at line 43 of file MuonNSWSegmentFinderTool.h.

43{return get();}
const Muon::MuonClusterOnTrack * get() const
Accomodations of the interface to make the changes as transparent as possible.

◆ operator const Muon::MuonClusterOnTrack *()

Muon::NSWSeed::SeedMeasurement::operator const Muon::MuonClusterOnTrack * ( ) const
inline

Definition at line 39 of file MuonNSWSegmentFinderTool.h.

39{ return get(); }

◆ operator!()

bool Muon::NSWSeed::SeedMeasurement::operator! ( ) const
inline

Definition at line 42 of file MuonNSWSegmentFinderTool.h.

42{return !get();}

◆ operator->()

const Muon::MuonClusterOnTrack * Muon::NSWSeed::SeedMeasurement::operator-> ( ) const
inline

Definition at line 38 of file MuonNSWSegmentFinderTool.h.

38{return get();}

◆ operator==()

bool Muon::NSWSeed::SeedMeasurement::operator== ( const SeedMeasurement & other) const
inline

Definition at line 41 of file MuonNSWSegmentFinderTool.h.

41{return get() == other.get();}

◆ pos()

const Amg::Vector3D & Muon::NSWSeed::SeedMeasurement::pos ( ) const
inline

Definition at line 46 of file MuonNSWSegmentFinderTool.h.

46{return m_cl->globalPosition();}

◆ setDistance()

void Muon::NSWSeed::SeedMeasurement::setDistance ( double d)
inline

Definition at line 51 of file MuonNSWSegmentFinderTool.h.

Member Data Documentation

◆ m_cl

const Muon::MuonClusterOnTrack* Muon::NSWSeed::SeedMeasurement::m_cl {nullptr}
private

Definition at line 55 of file MuonNSWSegmentFinderTool.h.

55{nullptr};

◆ m_dir

Amg::Vector3D Muon::NSWSeed::SeedMeasurement::m_dir {Amg::Vector3D::Zero()}
private

Definition at line 56 of file MuonNSWSegmentFinderTool.h.

56{Amg::Vector3D::Zero()};

◆ m_distance

double Muon::NSWSeed::SeedMeasurement::m_distance {0.}
private

Definition at line 57 of file MuonNSWSegmentFinderTool.h.

57{0.};

The documentation for this struct was generated from the following files: