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