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
 
double error
 
const MuonClusterOnTracketaHit
 
const MuonClusterOnTrackphiHit
 
std::vector< const MuonClusterOnTrack * > phiHits
 
Amg::Vector3D globalPos
 

Detailed Description

Definition at line 125 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 127 of file DCMathSegmentMaker.h.

128  :
129  detElId(elId), gasGapId(ggId), locPos(lp), error(err), etaHit(ecl), phiHit(pcl) {
130  if (ecl || pcl) { surface().localToGlobal(locPos, Amg::Vector3D::UnitZ(), globalPos); }
131  if (pcl) phiHits.push_back(pcl);
132  }

◆ 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 134 of file DCMathSegmentMaker.h.

135  :
136  detElId(elId), gasGapId(ggId), locPos(lp), error(err), etaHit(ecl), phiHits(phs) {
137  // if phiHits to empty point phiHit to first hit in PhiHits
138  phiHit = phiHits.empty() ? 0 : phiHits.front();
139  if (ecl || phiHit) { surface().localToGlobal(locPos, Amg::Vector3D::UnitZ(), globalPos); }
140  }

Member Function Documentation

◆ corrupt()

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

Definition at line 162 of file DCMathSegmentMaker.h.

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

◆ identify()

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

Definition at line 154 of file DCMathSegmentMaker.h.

154  {
155  if (etaHit)
156  return etaHit->identify();
157  else
158  return phiHit->identify();
159  }

◆ is2D()

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

Definition at line 161 of file DCMathSegmentMaker.h.

161 { return etaHit && phiHit; }

◆ surface()

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

Definition at line 148 of file DCMathSegmentMaker.h.

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

Member Data Documentation

◆ detElId

Identifier Muon::DCMathSegmentMaker::Cluster2D::detElId

Definition at line 141 of file DCMathSegmentMaker.h.

◆ error

double Muon::DCMathSegmentMaker::Cluster2D::error

Definition at line 144 of file DCMathSegmentMaker.h.

◆ etaHit

const MuonClusterOnTrack* Muon::DCMathSegmentMaker::Cluster2D::etaHit

Definition at line 145 of file DCMathSegmentMaker.h.

◆ gasGapId

Identifier Muon::DCMathSegmentMaker::Cluster2D::gasGapId

Definition at line 142 of file DCMathSegmentMaker.h.

◆ globalPos

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

Definition at line 160 of file DCMathSegmentMaker.h.

◆ locPos

Amg::Vector2D Muon::DCMathSegmentMaker::Cluster2D::locPos

Definition at line 143 of file DCMathSegmentMaker.h.

◆ phiHit

const MuonClusterOnTrack* Muon::DCMathSegmentMaker::Cluster2D::phiHit

Definition at line 146 of file DCMathSegmentMaker.h.

◆ phiHits

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

Definition at line 147 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:148
Muon::DCMathSegmentMaker::Cluster2D::phiHit
const MuonClusterOnTrack * phiHit
Definition: DCMathSegmentMaker.h:146
Muon::DCMathSegmentMaker::Cluster2D::gasGapId
Identifier gasGapId
Definition: DCMathSegmentMaker.h:142
Muon::DCMathSegmentMaker::Cluster2D::locPos
Amg::Vector2D locPos
Definition: DCMathSegmentMaker.h:143
Muon::DCMathSegmentMaker::Cluster2D::error
double error
Definition: DCMathSegmentMaker.h:144
Muon::DCMathSegmentMaker::Cluster2D::phiHits
std::vector< const MuonClusterOnTrack * > phiHits
Definition: DCMathSegmentMaker.h:147
Muon::DCMathSegmentMaker::Cluster2D::detElId
Identifier detElId
Definition: DCMathSegmentMaker.h:141
Muon::DCMathSegmentMaker::Cluster2D::etaHit
const MuonClusterOnTrack * etaHit
Definition: DCMathSegmentMaker.h:145
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:193
Trk::RIO_OnTrack::identify
virtual Identifier identify() const final
return the identifier -extends MeasurementBase
Definition: RIO_OnTrack.h:155
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:160
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.