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

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.

◆ channelLength2

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

Definition at line 117 of file IMuonSegmentInOverlapResolvingTool.h.

◆ goodMatch

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

Definition at line 120 of file IMuonSegmentInOverlapResolvingTool.h.

◆ positionAlongTube1

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

Definition at line 111 of file IMuonSegmentInOverlapResolvingTool.h.

◆ positionAlongTube2

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

Definition at line 115 of file IMuonSegmentInOverlapResolvingTool.h.

◆ positionInTube1

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

Definition at line 112 of file IMuonSegmentInOverlapResolvingTool.h.

◆ positionInTube2

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

Definition at line 116 of file IMuonSegmentInOverlapResolvingTool.h.

◆ positionResidual

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

Definition at line 119 of file IMuonSegmentInOverlapResolvingTool.h.

◆ segmentPosition

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

Definition at line 121 of file IMuonSegmentInOverlapResolvingTool.h.


The documentation for this struct was generated from the following file:
Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::segmentPosition
Amg::Vector3D segmentPosition
Definition: IMuonSegmentInOverlapResolvingTool.h:121
Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::channelLength1
double channelLength1
Definition: IMuonSegmentInOverlapResolvingTool.h:113
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
res
std::pair< std::vector< unsigned int >, bool > res
Definition: JetGroupProductTest.cxx:14
BindingsTest.cut
cut
This script demonstrates how to call a C++ class from Python Also how to use PyROOT is shown.
Definition: BindingsTest.py:13
Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::positionInTube1
double positionInTube1
Definition: IMuonSegmentInOverlapResolvingTool.h:112
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::positionAlongTube1
double positionAlongTube1
Definition: IMuonSegmentInOverlapResolvingTool.h:111
ReadBchFromCool.good
good
Definition: ReadBchFromCool.py:433
Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::positionInTube2
double positionInTube2
Definition: IMuonSegmentInOverlapResolvingTool.h:116
Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::positionAlongTube2
double positionAlongTube2
Definition: IMuonSegmentInOverlapResolvingTool.h:115
Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::channelLength2
double channelLength2
Definition: IMuonSegmentInOverlapResolvingTool.h:117
Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::goodMatch
bool goodMatch
Definition: IMuonSegmentInOverlapResolvingTool.h:120
Muon::IMuonSegmentInOverlapResolvingTool::SegmentPositionMatchResult::positionResidual
double positionResidual
Definition: IMuonSegmentInOverlapResolvingTool.h:119