hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
Loading...
Searching...
No Matches
TrackTools.h File Reference
#include <EVENT/LCCollection.h>
#include <EVENT/Track.h>
#include <EVENT/ReconstructedParticle.h>
#include <EVENT/Vertex.h>
#include <EVENT/TrackerHit.h>
#include <EVENT/TrackState.h>
#include <EVENT/TrackerRawData.h>
#include <EVENT/CalorimeterHit.h>
#include <EVENT/Cluster.h>
#include <IMPL/CalorimeterHitImpl.h>
#include <IMPL/LCGenericObjectImpl.h>
#include <IMPL/TrackerHitImpl.h>
#include <IMPL/ClusterImpl.h>
#include <UTIL/LCRelationNavigator.h>
#include <UTIL/BitField64.h>
#include <vector>
#include <cmath>
#include <array>
#include <iostream>
#include <fstream>
#include "Collections.h"
#include "Processor.h"
#include "Particle.h"
#include "Track.h"
#include "Event.h"
#include "Vertex.h"
#include "TrackerHit.h"
#include "TRefArray.h"
#include "TMatrixD.h"

Go to the source code of this file.

Namespaces

namespace  TrackTools

Functions

float normalizeAngle (float angle)
 Normalize angle to [-π, π].
TMatrixD getTrackCovariance (Track *track)
 Extract track parameter covariance matrix from Track object.
TMatrixD getVertexCovariance (Vertex *vtx)
 Extract vertex position covariance from Vertex object.
TMatrixD momentumCovarianceFromTrack (double px, double py, double pz, double phi0, double omega, double tanLambda, const TMatrixD &covTrack)
 Calculate momentum covariance from track parameter covariance.
TMatrixD momentumCovarianceFromTrack (Track *track)
 Calculate momentum covariance from Track object.
std::vector< float > calculateTrackParameters (float x_vtx, float y_vtx, float z_vtx, float px, float py, float pz, float Q, float cB, float targetPos)
 Calculate track parameters at target from position and momentum.
TMatrixD trackParametersJacobian (float x_vtx, float y_vtx, float z_vtx, float px, float py, float pz, float Q, float cB, float targetPos)
 Analytical Jacobian: d[d0,phi0,omega,z0,tanLambda]/d[x,y,z,px,py,pz].
TMatrixD calculateTrackCovariance (float x_vtx, float y_vtx, float z_vtx, float px, float py, float pz, const TMatrixD &covVertex, const TMatrixD &covMomentum, float Q, float cB, float targetPos)
 Calculate track parameter covariance from momentum, position.
TMatrixD buildCombinedCovariance (const TMatrixD &covVertex, const TMatrixD &covMomentum, const TMatrixD *covCross=nullptr)
 Build combined 6x6 covariance matrix [x,y,z,px,py,pz].
TMatrixD numericalJacobian (float x_vtx, float y_vtx, float z_vtx, float px, float py, float pz, float Q, float cB, float targetPos)