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 11 of file HoughHelperFunctions.cxx.

11  {
12  return DC->localPosition().y() - tanTheta * DC->localPosition().z() -
13  DC->driftRadius() * Acts::fastHypot(1., tanTheta); // using cos(theta) = sqrt(1/[1+tan²(theta)])
14  }

◆ 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 15 of file HoughHelperFunctions.cxx.

15  {
16  return DC->localPosition().y() - tanTheta * DC->localPosition().z() +
17  DC->driftRadius() * Acts::fastHypot(1., tanTheta); // using cos(theta) = sqrt(1/[1+tan²(theta)])
18  }

◆ 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 19 of file HoughHelperFunctions.cxx.

19  {
20  return strip->localPosition().y() - tanTheta * strip->localPosition().z();
21  }

◆ 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

Scale reported errors up to at least 1 mm or 3 times the reported error as drift circle calibration is not fully reliable at this stage

Scale reported errors up to at least 1 mm or 3 times the reported error as drift circle calibration is not fully reliable at this stage

Definition at line 22 of file HoughHelperFunctions.cxx.

22  {
25  return std::max(3.* std::sqrt(DC->covariance()[Acts::toUnderlying(AxisDefs::etaCov)]),
26  targetReso); // scale reported errors up to at least 1mm or 3
27  }

◆ 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 28 of file HoughHelperFunctions.cxx.

28  {
29  const double nomCov = 3.*std::sqrt(strip->covariance()[Acts::toUnderlying(AxisDefs::etaCov)]);
30  return std::max(targetReso, nomCov* ((strip->type() == xAOD::UncalibMeasType::TgcStripType && !strip->measuresPhi()) ? 1.5 : 1.0));
31  // return positional uncertainty defined during SP creation
32  }
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
keylayer_zslicemap.strip
strip
Definition: keylayer_zslicemap.py:151
xAOD::UncalibMeasType::TgcStripType
@ TgcStripType