ATLAS Offline Software
Functions
MuonR4::HoughHelpers::Eta Namespace Reference

Functions

double houghParamMdtLeft (double tanTheta, const MuonR4::HoughHitType &dc)
 left-side straight line parametrisation for drift circles More...
 
double houghParamMdtRight (double tanTheta, const MuonR4::HoughHitType &dc)
 right-side straight line parametrisation for drift circles More...
 
double houghParamStrip (double tanTheta, const MuonR4::HoughHitType &strip)
 straight line parametrisation for strip detector measurements More...
 
double houghWidthMdt (double tanTheta, const MuonR4::HoughHitType &dc, double targetReso)
 uncertainty parametrisation for drift circles More...
 
double houghWidthStrip (double tanTheta, const MuonR4::HoughHitType &strip, double targetReso)
 Uncertainty parametrisation for strip measurements. More...
 

Function Documentation

◆ houghParamMdtLeft()

double MuonR4::HoughHelpers::Eta::houghParamMdtLeft ( double  tanTheta,
const MuonR4::HoughHitType dc 
)

left-side straight line parametrisation for drift circles

Parameters
tanThetathe input inclination angle
dcthe drift circle (expressed as a space point)
Returns
the y offset needed to touch the drift radius on the left for an inclination angle tanTheta

Definition at line 9 of file HoughHelperFunctions.cxx.

9  {
10  return DC->positionInChamber().y() - tanTheta * DC->positionInChamber().z() -
11  DC->driftRadius() * std::sqrt(1 + (tanTheta*tanTheta)); // using cos(theta) = sqrt(1/[1+tanĀ²(theta)])
12  }

◆ houghParamMdtRight()

double MuonR4::HoughHelpers::Eta::houghParamMdtRight ( double  tanTheta,
const MuonR4::HoughHitType dc 
)

right-side straight line parametrisation for drift circles

Parameters
tanThetathe input inclination angle
dcthe drift circle (expressed as a space point)
Returns
the y offset needed to touch the drift radius on the right for an inclination angle tanTheta

Definition at line 13 of file HoughHelperFunctions.cxx.

13  {
14  return DC->positionInChamber().y() - tanTheta * DC->positionInChamber().z() +
15  DC->driftRadius() * std::sqrt(1 + (tanTheta*tanTheta)); // using cos(theta) = sqrt(1/[1+tanĀ²(theta)])
16  }

◆ houghParamStrip()

double MuonR4::HoughHelpers::Eta::houghParamStrip ( double  tanTheta,
const MuonR4::HoughHitType strip 
)

straight line parametrisation for strip detector measurements

Parameters
tanThetathe input inclination angle
stripthe strip measurement (expressed as a space point)
Returns
the y offset needed to pass through the center of the strip space point for an inclination angle tanTheta

Definition at line 17 of file HoughHelperFunctions.cxx.

17  {
18  return strip->positionInChamber().y() - tanTheta * strip->positionInChamber().z();
19  }

◆ houghWidthMdt()

double MuonR4::HoughHelpers::Eta::houghWidthMdt ( double  tanTheta,
const MuonR4::HoughHitType dc,
double  targetReso 
)

uncertainty parametrisation for drift circles

Parameters
tanThetathe input inclination angle
dcthe drift circle (expressed as a space point)
Returns
the uncertainty on the y offset - calculated from an inflated drift circle error and a baseline uncertainty to account for the not fully known t0

Definition at line 21 of file HoughHelperFunctions.cxx.

21  {
22  return std::max(DC->uncertainty().y() * 3.,
23  targetReso); // scale reported errors up to at least 1mm or 3
24  // times the reported error as drift circle calib not
25  // fully reliable at this stage
26  }

◆ houghWidthStrip()

double MuonR4::HoughHelpers::Eta::houghWidthStrip ( double  tanTheta,
const MuonR4::HoughHitType strip,
double  targetReso 
)

Uncertainty parametrisation for strip measurements.

Parameters
tanThetathe input inclination angle (not used)
stripthe strip measurement (expressed as a space point)
Returns
the uncertainty on the y offset - based on the strip pitch

Definition at line 27 of file HoughHelperFunctions.cxx.

27  {
28  return std::max(targetReso, 3 * strip->uncertainty().y() * ((strip->type() == xAOD::UncalibMeasType::TgcStripType && !strip->measuresPhi()) ? 1.5 : 1.0)); // return positional uncertainty defined during SP creation
29  }
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
keylayer_zslicemap.strip
strip
Definition: keylayer_zslicemap.py:151
xAOD::UncalibMeasType::TgcStripType
@ TgcStripType