ATLAS Offline Software
Loading...
Searching...
No Matches
TrackParticlexAODHelpers.h File Reference
#include "xAODTracking/TrackParticle.h"
#include "xAODTracking/Vertex.h"
#include <cmath>
Include dependency graph for TrackParticlexAODHelpers.h:

Go to the source code of this file.

Namespaces

namespace  xAOD
 ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
namespace  xAOD::TrackingHelpers

Functions

double xAOD::TrackingHelpers::sqr (double a)
 convenience method to calculate the square of a value.
double xAOD::TrackingHelpers::d0significance (const xAOD::TrackParticle *tp)
 Get the impact parameter significance of a track particle in the r-phi plane.
double xAOD::TrackingHelpers::d0significanceUnsafe (const xAOD::TrackParticle *tp)
 Unsafe version of d0significance.
double xAOD::TrackingHelpers::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.
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.
double xAOD::TrackingHelpers::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.
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.
double xAOD::TrackingHelpers::z0sinthetasignificance (const xAOD::TrackParticle *tp, const xAOD::Vertex *vx=NULL)
 Get the impact parameter significance of a track particle in the z direction, including the sin(theta) projection.
double xAOD::TrackingHelpers::z0significanceUnsafe (const xAOD::TrackParticle *tp)
 Unsafe version of z0significance.
double xAOD::TrackingHelpers::z0significanceUnsafe (const xAOD::TrackParticle *tp, const xAOD::Vertex *vx)
 Unsafe version of z0significance, which uses z0 relative to a given primary vertex.
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.
bool xAOD::TrackingHelpers::hasValidCovD0 (const xAOD::TrackParticle *tp)
 Check whether the given track particle is valid and has a valid d0 uncertainty.
bool xAOD::TrackingHelpers::hasValidCovZ0 (const xAOD::TrackParticle *tp)
 Check whether the given track particle is valid and has a valid z0 uncertainty.
bool xAOD::TrackingHelpers::hasValidCovD0andZ0 (const xAOD::TrackParticle *tp)
 Check whether the given track particle is valid and has a valid d0 and z0 uncertainty.
bool xAOD::TrackingHelpers::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.
bool xAOD::TrackingHelpers::checkBeamSpotSigma (double beam_sigma_x, double beam_sigma_y, double beam_sigma_xy)
 check that the beamspot covariance matrix is valid
double xAOD::TrackingHelpers::pTErr2 (const xAOD::TrackParticle *tp)
 compute the uncertainty of pt squared.
double xAOD::TrackingHelpers::pTErr (const xAOD::TrackParticle *tp)
 compute the uncertainty of pt.
double xAOD::TrackingHelpers::pTErr2Unsafe (const xAOD::TrackParticle *tp)
 compute the uncertainty of pt squared.
double xAOD::TrackingHelpers::pTErrUnsafe (const xAOD::TrackParticle *tp)
 compute the uncertainty of pt.
bool xAOD::TrackingHelpers::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