ATLAS Offline Software
|
Functions | |
void | checkTPAndDefiningParamCov (const xAOD::TrackParticle *tp) |
void | checkTPAndDefiningParamCovDiag (const xAOD::TrackParticle *tp) |
double | d0significance (const xAOD::TrackParticle *tp, double d0_uncert_beam_spot_2) |
double | sqr (double a) |
convenience method to calculate the square of a value. More... | |
double | d0significance (const xAOD::TrackParticle *tp) |
Get the impact parameter significance of a track particle in the r-phi plane. More... | |
double | d0significanceUnsafe (const xAOD::TrackParticle *tp) |
Unsafe version of d0significance. More... | |
double | d0UncertaintyBeamSpot2 (double track_phi0, double beam_sigma_x, double beam_sigma_y, double beam_sigma_xy) |
calculate the squared d0 uncertainty component due to the size of the beam spot. More... | |
double | d0significance (const xAOD::TrackParticle *tp, double beam_sigma_x, double beam_sigma_y, double beam_sigma_xy) |
Get the impact parameter significance of a track particle in the r-phi plane where the d0 uncertainty takes the finite beamspot width into account. More... | |
double | d0significanceUnsafe (const xAOD::TrackParticle *tp, double beam_sigma_x, double beam_sigma_y, double beam_sigma_xy) |
Unsafe version of d0significance with beam spot uncertainty. More... | |
double | z0significance (const xAOD::TrackParticle *tp, const xAOD::Vertex *vx=NULL) |
Get the impact parameter significance of a track particle in the z direction. More... | |
double | z0significanceUnsafe (const xAOD::TrackParticle *tp) |
Unsafe version of z0significance. More... | |
double | z0significanceUnsafe (const xAOD::TrackParticle *tp, const xAOD::Vertex *vx) |
Unsafe version of z0significance, which uses z0 relative to a given primary vertex. More... | |
bool | hasValidCov (const xAOD::TrackParticle *tp) |
Check whether the given track particle is valid and has a covariance matrix of the defining parameters. More... | |
bool | hasValidCovD0 (const xAOD::TrackParticle *tp) |
Check whether the given track particle is valid and has a valid d0 uncertainty. More... | |
bool | hasValidCovZ0 (const xAOD::TrackParticle *tp) |
Check whether the given track particle is valid and has a valid z0 uncertainty. More... | |
bool | hasValidCovD0andZ0 (const xAOD::TrackParticle *tp) |
Check whether the given track particle is valid and has a valid d0 and z0 uncertainty. More... | |
bool | checkPVReference (const xAOD::TrackParticle *tp, const xAOD::Vertex *vx, const double max_pv_dxy_sqr=0.5 *0.5) |
test whether the given primary vertex has a significant displacement in r-phi wrt. More... | |
bool | checkBeamSpotSigma (double beam_sigma_x, double beam_sigma_y, double beam_sigma_xy) |
check that the beamspot covariance matrix is valid More... | |
double | pTErr2 (const xAOD::TrackParticle *tp) |
compute the uncertainty of pt squared. More... | |
double | pTErr (const xAOD::TrackParticle *tp) |
compute the uncertainty of pt. More... | |
double | pTErr2Unsafe (const xAOD::TrackParticle *tp) |
compute the uncertainty of pt squared. More... | |
double | pTErrUnsafe (const xAOD::TrackParticle *tp) |
compute the uncertainty of pt. More... | |
bool | hasValidCovQoverP (const xAOD::TrackParticle *tp) |
return true if the covariance matrix of the defining parameters is set, has enough elements and the q/p is valid More... | |
|
inline |
check that the beamspot covariance matrix is valid
beam_sigma_x | the width of the beamspot in the x-direction e.g. IBeamCondSvc:: beamSigma(0). |
beam_sigma_y | the width of the beamspot in the y-direction e.g. IBeamCondSvc:: beamSigma(1). |
beam_sigma_xy | the beamspot xy correlation e.g. IBeamCondSvc:: beamSigmaXY. |
Definition at line 189 of file TrackParticlexAODHelpers.h.
|
inline |
test whether the given primary vertex has a significant displacement in r-phi wrt.
d0 uncertainty.
tp | pointer to a track particle. |
vx | pointer to a vertex. |
max_pv_dxy_sqr | maximum deviation of the primary vertex in units of the d0 uncertainty squared. |
Definition at line 176 of file TrackParticlexAODHelpers.h.
void xAOD::TrackingHelpers::checkTPAndDefiningParamCov | ( | const xAOD::TrackParticle * | tp | ) |
Definition at line 13 of file TrackParticlexAODHelpers.cxx.
void xAOD::TrackingHelpers::checkTPAndDefiningParamCovDiag | ( | const xAOD::TrackParticle * | tp | ) |
Definition at line 24 of file TrackParticlexAODHelpers.cxx.
double xAOD::TrackingHelpers::d0significance | ( | const xAOD::TrackParticle * | tp | ) |
Get the impact parameter significance of a track particle in the r-phi plane.
this | method may throw an exception in case the uncertainty is zero or the covariance matrix does not exist. The impact parameter and uncertainty are those stored in the track particle. Will perform input (tp, cov) validity checks. |
Definition at line 54 of file TrackParticlexAODHelpers.cxx.
double xAOD::TrackingHelpers::d0significance | ( | const xAOD::TrackParticle * | tp, |
double | beam_sigma_x, | ||
double | beam_sigma_y, | ||
double | beam_sigma_xy | ||
) |
Get the impact parameter significance of a track particle in the r-phi plane where the d0 uncertainty takes the finite beamspot width into account.
beam_sigma_x | the width of the beamspot in the x-direction e.g. IBeamCondSvc:: beamSigma(0). |
beam_sigma_y | the width of the beamspot in the y-direction e.g. IBeamCondSvc:: beamSigma(1). |
beam_sigma_xy | the beamspot xy correlation e.g. IBeamCondSvc:: beamSigmaXY. |
this | method may throw an exception in case the uncertainty is zero or the covariance matrix does not exist or the beamspot covariance matrix is invalid. The impact parameter and uncertainty are those stored in the track particle. Will perform input (tp, cov) validity checks. |
Definition at line 58 of file TrackParticlexAODHelpers.cxx.
|
inline |
Definition at line 42 of file TrackParticlexAODHelpers.cxx.
|
inline |
Unsafe version of d0significance.
Definition at line 35 of file TrackParticlexAODHelpers.h.
|
inline |
Unsafe version of d0significance with beam spot uncertainty.
tp | pointer to a track particle. |
beam_sigma_x | the width of the beamspot in the x-direction e.g. IBeamCondSvc:: beamSigma(0). |
beam_sigma_y | the width of the beamspot in the y-direction e.g. IBeamCondSvc:: beamSigma(1). |
beam_sigma_xy | the beamspot xy correlation e.g. IBeamCondSvc:: beamSigmaXY. |
Definition at line 80 of file TrackParticlexAODHelpers.h.
|
inline |
calculate the squared d0 uncertainty component due to the size of the beam spot.
track_phi0 | the phi angle of the track particle at the perigee wrt. the average beamspot position. |
beam_sigma_x | the width of the beamspot in the x-direction e.g. IBeamCondSvc:: beamSigma(0). |
beam_sigma_y | the width of the beamspot in the y-direction e.g. IBeamCondSvc:: beamSigma(1). |
beam_sigma_xy | the beamspot xy correlation e.g. IBeamCondSvc:: beamSigmaXY. |
Definition at line 49 of file TrackParticlexAODHelpers.h.
bool xAOD::TrackingHelpers::hasValidCov | ( | const xAOD::TrackParticle * | tp | ) |
Check whether the given track particle is valid and has a covariance matrix of the defining parameters.
Definition at line 35 of file TrackParticlexAODHelpers.cxx.
|
inline |
Check whether the given track particle is valid and has a valid d0 uncertainty.
Definition at line 133 of file TrackParticlexAODHelpers.h.
|
inline |
Check whether the given track particle is valid and has a valid d0 and z0 uncertainty.
Definition at line 157 of file TrackParticlexAODHelpers.h.
|
inline |
return true if the covariance matrix of the defining parameters is set, has enough elements and the q/p is valid
Definition at line 262 of file TrackParticlexAODHelpers.h.
|
inline |
Check whether the given track particle is valid and has a valid z0 uncertainty.
Definition at line 145 of file TrackParticlexAODHelpers.h.
|
inline |
compute the uncertainty of pt.
tp | a pointer to a track particle. |
will | throw an exception if the track particle is not valid, no covariance matrix of the defining parameters is set or the covariance matrix has wrong dimension. |
Definition at line 202 of file TrackParticlexAODHelpers.h.
double xAOD::TrackingHelpers::pTErr2 | ( | const xAOD::TrackParticle * | tp | ) |
compute the uncertainty of pt squared.
tp | a pointer to a track particle. |
will | throw an exception if the track particle is not valid, no covariance matrix of the defining parameters is set or the covariance matrix has wrong dimension. |
Definition at line 82 of file TrackParticlexAODHelpers.cxx.
|
inline |
compute the uncertainty of pt squared.
tp | a valid pointer to a track particle for which the defining parameters covariance matrix is set and valid undefined behaviour if tp is invalid or no valid covariance matrix is set for the defining parameters. |
Definition at line 211 of file TrackParticlexAODHelpers.h.
|
inline |
compute the uncertainty of pt.
tp | a valid pointer to a track particle for which the defining parameters covariance matrix is set and valid undefined behaviour if tp is invalid or no valid covariance matrix is set for the defining parameters. |
Definition at line 255 of file TrackParticlexAODHelpers.h.
convenience method to calculate the square of a value.
Definition at line 21 of file TrackParticlexAODHelpers.h.
double xAOD::TrackingHelpers::z0significance | ( | const xAOD::TrackParticle * | tp, |
const xAOD::Vertex * | vx = NULL |
||
) |
Get the impact parameter significance of a track particle in the z direction.
tp | a pointer to a track particle. |
vx | a pointer to a primary vertex with respect to which z0 is expressed or NULL. |
this | method may throw an exception in case the uncertainty is zero or the covariance matrix does not exist. The impact parameter and uncertainty are those stored in the track particle. Will perform input (tp, cov) validity checks. If the given vertex results from a fit which includes the track particle tp, then this z0 impact parameter significance will be biased. |
Definition at line 65 of file TrackParticlexAODHelpers.cxx.
|
inline |
Unsafe version of z0significance.
Definition at line 101 of file TrackParticlexAODHelpers.h.
|
inline |
Unsafe version of z0significance, which uses z0 relative to a given primary vertex.
tp | a valid pointer to a track particle. |
vx | a valid pointer to a primary vertex with respect to which z0 is expressed. |
Definition at line 117 of file TrackParticlexAODHelpers.h.