ATLAS Offline Software
Loading...
Searching...
No Matches
Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult Struct Reference

#include <IMuonSegmentInOverlapResolvingTool.h>

Collaboration diagram for Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult:

Public Member Functions

 SegmentPositionMatchResult ()=default
 SegmentPositionMatchResult (double distMin1, double distMinInTube1, double chLen1, double distMin2, double distMinInTube2, double chLen2, double res, bool good, Amg::Vector3D pos)
bool inBounds (double cut)
 check whether the calculated segment position is consistent with the two chambers
std::string toString () const

Public Attributes

double positionAlongTube1 {-999.}
double positionInTube1 {-999.}
double channelLength1 {-999.}
double positionAlongTube2 {-999.}
double positionInTube2 {-999.}
double channelLength2 {-999.}
double positionResidual {-999.}
bool goodMatch {false}
Amg::Vector3D segmentPosition {-999., -999., -999.}

Detailed Description

Definition at line 97 of file IMuonSegmentInOverlapResolvingTool.h.

Constructor & Destructor Documentation

◆ SegmentPositionMatchResult() [1/2]

Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::SegmentPositionMatchResult ( )
default

◆ SegmentPositionMatchResult() [2/2]

Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::SegmentPositionMatchResult ( double distMin1,
double distMinInTube1,
double chLen1,
double distMin2,
double distMinInTube2,
double chLen2,
double res,
bool good,
Amg::Vector3D pos )
inline

Definition at line 99 of file IMuonSegmentInOverlapResolvingTool.h.

100 :
101 positionAlongTube1(distMin1),
102 positionInTube1(distMinInTube1),
103 channelLength1(chLen1),
104 positionAlongTube2(distMin2),
105 positionInTube2(distMinInTube2),
106 channelLength2(chLen2),
108 goodMatch(good),
109 segmentPosition(pos) {}
std::pair< std::vector< unsigned int >, bool > res

Member Function Documentation

◆ inBounds()

bool Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::inBounds ( double cut)
inline

check whether the calculated segment position is consistent with the two chambers

Definition at line 124 of file IMuonSegmentInOverlapResolvingTool.h.

124 {
125 if (fabs(positionAlongTube1 - positionInTube1) > cut) return false;
126 if (fabs(positionAlongTube2 - positionInTube2) > cut) return false;
127 return true;
128 }

◆ toString()

std::string Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::toString ( ) const
inline

Definition at line 189 of file IMuonSegmentInOverlapResolvingTool.h.

189 {
190 std::ostringstream sout;
191 sout << " Segment chamber: ";
192 if (goodMatch)
193 sout << " position " << std::setw(5) << (int)positionAlongTube1 << " in tube " << std::setw(5) << (int)positionInTube1
194 << std::endl
195 << " Matching chamber: position " << std::setw(5) << (int)positionAlongTube2 << " in tube " << std::setw(5)
196 << (int)positionInTube2 << std::endl
197 << " position residual " << std::setw(5) << (int)positionResidual;
198 else
199 sout << "match failed";
200 return sout.str();
201 }

Member Data Documentation

◆ channelLength1

double Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::channelLength1 {-999.}

Definition at line 113 of file IMuonSegmentInOverlapResolvingTool.h.

113{-999.}; // the tube length of the shortest tube in chamber of input segment

◆ channelLength2

double Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::channelLength2 {-999.}

Definition at line 117 of file IMuonSegmentInOverlapResolvingTool.h.

117{-999.}; // the tube length of the shortest tube in chamber of second segment

◆ goodMatch

bool Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::goodMatch {false}

Definition at line 120 of file IMuonSegmentInOverlapResolvingTool.h.

120{false}; // flag to indicate problems during match

◆ positionAlongTube1

double Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::positionAlongTube1 {-999.}

Definition at line 111 of file IMuonSegmentInOverlapResolvingTool.h.

111{-999.}; // calculated new position along the tube in chamber of input segment

◆ positionAlongTube2

double Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::positionAlongTube2 {-999.}

Definition at line 115 of file IMuonSegmentInOverlapResolvingTool.h.

115{-999.}; // calculated new position along the tube in chamber of second segment

◆ positionInTube1

double Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::positionInTube1 {-999.}

Definition at line 112 of file IMuonSegmentInOverlapResolvingTool.h.

112{-999.}; // calculated new position in the tube in chamber of input segment

◆ positionInTube2

double Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::positionInTube2 {-999.}

Definition at line 116 of file IMuonSegmentInOverlapResolvingTool.h.

116{-999.}; // calculated new position in the tube in chamber of second segment

◆ positionResidual

double Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::positionResidual {-999.}

Definition at line 119 of file IMuonSegmentInOverlapResolvingTool.h.

119{-999.}; // residual of the segment positions in the precision plane of the second segment

◆ segmentPosition

Amg::Vector3D Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::segmentPosition {-999., -999., -999.}

Definition at line 121 of file IMuonSegmentInOverlapResolvingTool.h.

121{-999., -999., -999.}; // recalculated position of first segment

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