ATLAS Offline Software
Loading...
Searching...
No Matches
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
 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
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 }
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.
const Trk::Surface & surface() const
std::vector< const MuonClusterOnTrack * > phiHits

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

139{nullptr};

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

137{Amg::Vector2D::Zero()};

◆ phiHit

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

Definition at line 140 of file DCMathSegmentMaker.h.

140{nullptr};

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