ATLAS Offline Software
Static Public Member Functions | Static Public Attributes | List of all members
FPGATrackSimGenScanGeomHelpers Class Reference

#include <FPGATrackSimGenScanBinning.h>

Collaboration diagram for FPGATrackSimGenScanGeomHelpers:

Static Public Member Functions

static double ThetaFromEta (double eta)
 
static double EtaFromTheta (double theta)
 
static double zFromPars (double r, const FPGATrackSimTrackPars &pars)
 
static double phiFromPars (double r, const FPGATrackSimTrackPars &pars)
 
static double parsToTrkPhi (const FPGATrackSimTrackPars &pars, FPGATrackSimHit const *hit)
 

Static Public Attributes

static constexpr double CurvatureConstant = fpgatracksim::A
 

Detailed Description

Definition at line 217 of file FPGATrackSimGenScanBinning.h.

Member Function Documentation

◆ EtaFromTheta()

double FPGATrackSimGenScanGeomHelpers::EtaFromTheta ( double  theta)
static

Definition at line 181 of file FPGATrackSimGenScanBinning.cxx.

182 {
183  return -log(tan(theta / 2.0));
184 }

◆ parsToTrkPhi()

double FPGATrackSimGenScanGeomHelpers::parsToTrkPhi ( const FPGATrackSimTrackPars pars,
FPGATrackSimHit const hit 
)
static

Definition at line 204 of file FPGATrackSimGenScanBinning.cxx.

205 {
206  double r = hit->getR(); // mm
207  double phi_hit = hit->getGPhi(); // radians
208  double phi_trk = xAOD::P4Helpers::deltaPhi(phi_hit,asin(r * CurvatureConstant * pars.qOverPt - pars.d0 / r));
209  return phi_trk;
210 }

◆ phiFromPars()

double FPGATrackSimGenScanGeomHelpers::phiFromPars ( double  r,
const FPGATrackSimTrackPars pars 
)
static

Definition at line 197 of file FPGATrackSimGenScanBinning.cxx.

198 {
199  double phi_hit = xAOD::P4Helpers::deltaPhi(pars.phi,asin(r * CurvatureConstant * pars.qOverPt - pars.d0 / r));
200 
201  return phi_hit;
202 }

◆ ThetaFromEta()

double FPGATrackSimGenScanGeomHelpers::ThetaFromEta ( double  eta)
static

Definition at line 176 of file FPGATrackSimGenScanBinning.cxx.

177 {
178  return 2.0 * atan(exp(-1.0 * eta));
179 }

◆ zFromPars()

double FPGATrackSimGenScanGeomHelpers::zFromPars ( double  r,
const FPGATrackSimTrackPars pars 
)
static

Definition at line 186 of file FPGATrackSimGenScanBinning.cxx.

187 {
188  double theta = ThetaFromEta(pars.eta);
189  double zhit = pars.z0 + r / tan(theta);
190  if (std::abs(pars.qOverPt) > 0)
191  {
192  zhit = pars.z0 + 1.0 / tan(theta) * asin(r * CurvatureConstant * pars.qOverPt) / (CurvatureConstant * pars.qOverPt);
193  }
194  return zhit;
195 }

Member Data Documentation

◆ CurvatureConstant

constexpr double FPGATrackSimGenScanGeomHelpers::CurvatureConstant = fpgatracksim::A
staticconstexpr

Definition at line 221 of file FPGATrackSimGenScanBinning.h.


The documentation for this class was generated from the following files:
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
beamspotman.r
def r
Definition: beamspotman.py:676
FPGATrackSimGenScanGeomHelpers::CurvatureConstant
static constexpr double CurvatureConstant
Definition: FPGATrackSimGenScanBinning.h:221
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
FPGATrackSimGenScanGeomHelpers::ThetaFromEta
static double ThetaFromEta(double eta)
Definition: FPGATrackSimGenScanBinning.cxx:176
theta
Scalar theta() const
theta method
Definition: AmgMatrixBasePlugin.h:75
xAOD::P4Helpers::deltaPhi
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[
Definition: xAODP4Helpers.h:69
drawFromPickle.exp
exp
Definition: drawFromPickle.py:36
drawFromPickle.atan
atan
Definition: drawFromPickle.py:36
drawFromPickle.tan
tan
Definition: drawFromPickle.py:36
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20