10 #include <framework/gearbox/Const.h>
11 #include <framework/datastore/RelationsObject.h>
12 #include <framework/dataobjects/Helix.h>
13 #include <framework/dataobjects/UncertainHelix.h>
14 #include <framework/geometry/BFieldManager.h>
17 #include <TMatrixDSym.h>
18 #include <TLorentzVector.h>
73 const TMatrixDSym& covariance,
const short int charge,
76 const uint64_t hitPatternCDCInitializer,
77 const uint32_t hitPatternVXDInitializer,
91 TrackFitResult(
const std::vector<float>& tau,
const std::vector<float>& cov5,
93 const uint64_t hitPatternCDCInitializer,
94 const uint32_t hitPatternVXDInitializer,
109 return getHelix().getMomentum(bField);
133 return getHelix().getTransverseMomentum(bField);
265 static const unsigned int iD0 = 0;
266 static const unsigned int iPhi0 = 1;
268 static const unsigned int iZ0 = 3;
The ParticleType class for identifying different particle types.
Hit pattern of CDC hits within a track.
Hit pattern of the VXD within a track.
Defines interface for accessing relations of objects in StoreArray.
Values of the result of a track fit with a given particle hypothesis.
std::vector< float > getTau() const
Getter for all perigee parameters.
ClassDefOverride(TrackFitResult, 8)
Values of the result of a track fit with a given particle hypothesis.
static const unsigned int c_NPars
Number of helix parameters.
Helix getHelix() const
Conversion to framework Helix (without covariance).
TMatrixDSym getCovariance5() const
Getter for covariance matrix of perigee parameters in matrix form.
static const unsigned int iZ0
Index for z0.
static const unsigned int c_NCovEntries
Number of covariance entries.
Helix getHelix(float momentumScale) const
Conversion to framework Helix with momentum scaling (without covariance).
double getPhi() const
Getter for phi0 with CDF naming convention.
Double32_t m_tau[c_NPars]
perigee helix parameters; tau = d0, phi0, omega, z0, tanLambda.
double getChi2() const
Get chi2 given NDF and p-value.
short getChargeSign() const
Return track charge (1 or -1).
double getPValue() const
Getter for Chi2 Probability of the track fit.
TLorentzVector get4Momentum() const
Getter for the 4Momentum at the closest approach of the track in the r/phi projection.
double getEnergy() const
Getter for the Energy at the closest approach of the track in the r/phi projection.
TMatrixDSym getCovariance6() const
Position and Momentum Covariance Matrix.
const uint32_t m_hitPatternVXDInitializer
Member for initializing the information about hits in the VXD.
double getCotTheta() const
Getter for tanLambda with CDF naming convention.
virtual std::string getInfoHTML() const override
Return a short summary of this object's contents in HTML format.
double getOmega() const
Getter for omega.
TVector3 getMomentum() const
Getter for vector of momentum at closest approach of track in r/phi projection.
int getNDF() const
Getter for number of degrees of freedom of the track fit.
const Double32_t m_pValue
Chi2 Probability of the fit.
double getD0() const
Getter for d0.
double getTransverseMomentum() const
Getter for the absolute value of the transverse momentum at the perigee.
double getTanLambda() const
Getter for tanLambda.
static const unsigned int iTanLambda
Index tan lambda.
TrackFitResult()
Constructor initializing everything to zero.
std::vector< float > getCov() const
Getter for all covariance matrix elements of perigee parameters.
TVector3 getPosition() const
Getter for vector of position at closest approach of track in r/phi projection.
static const unsigned int iD0
Index for d0.
uint64_t m_hitPatternCDCInitializer
Member for initializing the information about hits in the CDC.
static const unsigned int iOmega
Index for omega.
Const::ParticleType getParticleType() const
Getter for ParticleType of the mass hypothesis of the track fit.
static const uint16_t c_NDFFlag
backward compatibility initialisation for NDF
double getZ0() const
Getter for z0.
uint16_t m_NDF
Memeber for number of degrees of freedom.
Double32_t m_cov5[c_NCovEntries]
The 15 = 5*(5+1)/2 covariance matrix elements.
static const unsigned int iPhi0
Index for phi0.
HitPatternCDC getHitPatternCDC() const
Getter for the hit pattern in the CDC;.
UncertainHelix getUncertainHelix() const
Conversion to framework Uncertain Helix (i.e., with covariance).
const unsigned int m_pdg
PDG Code for hypothesis with which the corresponding fit was performed.
double getPhi0() const
Getter for phi0.
HitPatternVXD getHitPatternVXD() const
Getter for the hit pattern in the VXD;.
This class represents an ideal helix in perigee parameterization including the covariance matrix of t...
TMatrixDSym getCartesianCovariance(const double bZ_tesla=1.5) const
Getter for the position and momentum covariance matrix.
static const double T
[tesla]
static void getField(const double *pos, double *field)
return the magnetic field at a given position.
Abstract base class for different kinds of events.