ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
Muon::DCMathSegmentMaker::Cluster2D Struct Reference

#include <DCMathSegmentMaker.h>

Collaboration diagram for Muon::DCMathSegmentMaker::Cluster2D:

Public Member Functions

 Cluster2D (const Identifier elId, const Identifier ggId, const Amg::Vector2D &lp, double err, const MuonClusterOnTrack *ecl, const MuonClusterOnTrack *pcl)
 constructor taking a single phi hit More...
 
 Cluster2D (const Identifier elId, const Identifier ggId, const Amg::Vector2D &lp, double err, const MuonClusterOnTrack *ecl, const std::vector< const MuonClusterOnTrack * > &phs)
 constructor taking a vector of phi hits More...
 
const Trk::Surfacesurface () const
 
Identifier identify () const
 
bool is2D () const
 
bool corrupt () const
 

Public Attributes

Identifier detElId
 
Identifier gasGapId
 
Amg::Vector2D locPos {Amg::Vector2D::Zero()}
 
double error
 
const MuonClusterOnTracketaHit {nullptr}
 
const MuonClusterOnTrackphiHit {nullptr}
 
std::vector< const MuonClusterOnTrack * > phiHits
 
Amg::Vector3D globalPos
 

Detailed Description

Definition at line 119 of file DCMathSegmentMaker.h.

Constructor & Destructor Documentation

◆ Cluster2D() [1/2]

Muon::DCMathSegmentMaker::Cluster2D::Cluster2D ( const Identifier  elId,
const Identifier  ggId,
const Amg::Vector2D lp,
double  err,
const MuonClusterOnTrack ecl,
const MuonClusterOnTrack pcl 
)
inline

constructor taking a single phi hit

Definition at line 121 of file DCMathSegmentMaker.h.

122  :
123  detElId(elId), gasGapId(ggId), locPos(lp), error(err), etaHit(ecl), phiHit(pcl) {
124  if (ecl || pcl) { surface().localToGlobal(locPos, Amg::Vector3D::UnitZ(), globalPos); }
125  if (pcl) phiHits.push_back(pcl);
126  }

◆ Cluster2D() [2/2]

Muon::DCMathSegmentMaker::Cluster2D::Cluster2D ( const Identifier  elId,
const Identifier  ggId,
const Amg::Vector2D lp,
double  err,
const MuonClusterOnTrack ecl,
const std::vector< const MuonClusterOnTrack * > &  phs 
)
inline

constructor taking a vector of phi hits

Definition at line 128 of file DCMathSegmentMaker.h.

129  :
130  detElId(elId), gasGapId(ggId), locPos(lp), error(err), etaHit(ecl), phiHits(phs) {
131  // if phiHits to empty point phiHit to first hit in PhiHits
132  phiHit = phiHits.empty() ? 0 : phiHits.front();
133  if (ecl || phiHit) { surface().localToGlobal(locPos, Amg::Vector3D::UnitZ(), globalPos); }
134  }

Member Function Documentation

◆ corrupt()

bool Muon::DCMathSegmentMaker::Cluster2D::corrupt ( ) const
inline

Definition at line 156 of file DCMathSegmentMaker.h.

156 { return (!etaHit && !phiHit) || error < 0.01; }

◆ identify()

Identifier Muon::DCMathSegmentMaker::Cluster2D::identify ( ) const
inline

Definition at line 148 of file DCMathSegmentMaker.h.

148  {
149  if (etaHit)
150  return etaHit->identify();
151  else
152  return phiHit->identify();
153  }

◆ is2D()

bool Muon::DCMathSegmentMaker::Cluster2D::is2D ( ) const
inline

Definition at line 155 of file DCMathSegmentMaker.h.

155 { return etaHit && phiHit; }

◆ surface()

const Trk::Surface& Muon::DCMathSegmentMaker::Cluster2D::surface ( ) const
inline

Definition at line 142 of file DCMathSegmentMaker.h.

142  {
143  if (etaHit)
144  return etaHit->associatedSurface();
145  else
146  return phiHit->associatedSurface();
147  }

Member Data Documentation

◆ detElId

Identifier Muon::DCMathSegmentMaker::Cluster2D::detElId

Definition at line 135 of file DCMathSegmentMaker.h.

◆ error

double Muon::DCMathSegmentMaker::Cluster2D::error

Definition at line 138 of file DCMathSegmentMaker.h.

◆ etaHit

const MuonClusterOnTrack* Muon::DCMathSegmentMaker::Cluster2D::etaHit {nullptr}

Definition at line 139 of file DCMathSegmentMaker.h.

◆ gasGapId

Identifier Muon::DCMathSegmentMaker::Cluster2D::gasGapId

Definition at line 136 of file DCMathSegmentMaker.h.

◆ globalPos

Amg::Vector3D Muon::DCMathSegmentMaker::Cluster2D::globalPos

Definition at line 154 of file DCMathSegmentMaker.h.

◆ locPos

Amg::Vector2D Muon::DCMathSegmentMaker::Cluster2D::locPos {Amg::Vector2D::Zero()}

Definition at line 137 of file DCMathSegmentMaker.h.

◆ phiHit

const MuonClusterOnTrack* Muon::DCMathSegmentMaker::Cluster2D::phiHit {nullptr}

Definition at line 140 of file DCMathSegmentMaker.h.

◆ phiHits

std::vector<const MuonClusterOnTrack*> Muon::DCMathSegmentMaker::Cluster2D::phiHits

Definition at line 141 of file DCMathSegmentMaker.h.


The documentation for this struct was generated from the following file:
Muon::DCMathSegmentMaker::Cluster2D::surface
const Trk::Surface & surface() const
Definition: DCMathSegmentMaker.h:142
Muon::DCMathSegmentMaker::Cluster2D::phiHit
const MuonClusterOnTrack * phiHit
Definition: DCMathSegmentMaker.h:140
Muon::DCMathSegmentMaker::Cluster2D::gasGapId
Identifier gasGapId
Definition: DCMathSegmentMaker.h:136
Muon::DCMathSegmentMaker::Cluster2D::locPos
Amg::Vector2D locPos
Definition: DCMathSegmentMaker.h:137
Muon::DCMathSegmentMaker::Cluster2D::error
double error
Definition: DCMathSegmentMaker.h:138
Muon::DCMathSegmentMaker::Cluster2D::phiHits
std::vector< const MuonClusterOnTrack * > phiHits
Definition: DCMathSegmentMaker.h:141
Muon::DCMathSegmentMaker::Cluster2D::detElId
Identifier detElId
Definition: DCMathSegmentMaker.h:135
Muon::DCMathSegmentMaker::Cluster2D::etaHit
const MuonClusterOnTrack * etaHit
Definition: DCMathSegmentMaker.h:139
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:182
Trk::RIO_OnTrack::identify
Identifier identify() const
return the identifier -extends MeasurementBase
Definition: RIO_OnTrack.h:152
Trk::RIO_OnTrack::associatedSurface
virtual const Surface & associatedSurface() const override=0
returns the surface for the local to global transformation
Muon::DCMathSegmentMaker::Cluster2D::globalPos
Amg::Vector3D globalPos
Definition: DCMathSegmentMaker.h:154
error
Definition: IImpactPoint3dEstimator.h:70
Trk::Surface::localToGlobal
virtual void localToGlobal(const Amg::Vector2D &locp, const Amg::Vector3D &mom, Amg::Vector3D &glob) const =0
Specified by each surface type: LocalToGlobal method without dynamic memory allocation.