ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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. More...
 
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()} {}

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); }

◆ 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());}

◆ distance()

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

Definition at line 52 of file MuonNSWSegmentFinderTool.h.

52 {return m_distance;}

◆ 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();}

◆ 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.

51 {m_distance = d;}

Member Data Documentation

◆ m_cl

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

Definition at line 55 of file MuonNSWSegmentFinderTool.h.

◆ m_dir

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

Definition at line 56 of file MuonNSWSegmentFinderTool.h.

◆ m_distance

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

Definition at line 57 of file MuonNSWSegmentFinderTool.h.


The documentation for this struct was generated from the following files:
Muon::NSWSeed::SeedMeasurement::m_cl
const Muon::MuonClusterOnTrack * m_cl
Definition: MuonNSWSegmentFinderTool.h:55
Muon::MuonClusterOnTrack::globalPosition
virtual const Amg::Vector3D & globalPosition() const override
Returns global position.
Definition: MuonClusterOnTrack.cxx:93
hist_file_dump.d
d
Definition: hist_file_dump.py:137
Muon::NSWSeed::SeedMeasurement::dir
const Amg::Vector3D & dir() const
Definition: MuonNSWSegmentFinderTool.h:45
Muon::NSWSeed::SeedMeasurement::get
const Muon::MuonClusterOnTrack * get() const
Accomodations of the interface to make the changes as transparent as possible.
Definition: MuonNSWSegmentFinderTool.h:37
Muon::NSWSeed::SeedMeasurement::m_distance
double m_distance
Definition: MuonNSWSegmentFinderTool.h:57
python.PyAthena.v
v
Definition: PyAthena.py:157
Muon::NSWSeed::SeedMeasurement::m_dir
Amg::Vector3D m_dir
Definition: MuonNSWSegmentFinderTool.h:56
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
Muon::NSWSeed::SeedMeasurement::dirDot
double dirDot(const SeedMeasurement &other) const
Definition: MuonNSWSegmentFinderTool.h:48
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26