9#include <analysis/dataobjects/TagVertex.h>
13static const double realNaN = std::numeric_limits<double>::quiet_NaN();
14static const B2Vector3D vecNaN(realNaN, realNaN, realNaN);
153 if (
m_vtxFitParticles.size() <= trackIndex)
return ROOT::Math::XYZVector(realNaN, realNaN, realNaN);
A Class to store the Monte Carlo particle information.
Class to store reconstructed particles.
int m_fitTruthStatus
status of the fit when fitted with the truth info of the tracks
TMatrixDSym m_constraintCov
covariance matrix associated to the constraint, ie size of the constraint
std::string getConstraintType() const
get the constraint type used in the tag fit
int m_NFitTracks
Number of tracks used by Rave to fit the vertex.
float getDeltaTErr() const
Returns DeltaTErr.
TMatrixDSym getConstraintCov() const
Get the covariance matrix of the constraint for the tag fit.
void resetConstraintCov()
Resets 3x3 constraint error matrix All elements are set to 0.0.
void setConstraintType(const std::string &constraintType)
Set the type of the constraint for the tag fit.
float getTruthTagVl() const
Returns the MC tagV component in the boost direction.
int getMCTagBFlavor() const
Returns generated Btag PDG code.
float getDeltaT() const
Returns DeltaT.
float m_tagVertexPval
Btag vertex P value.
B2Vector3D getTagVertex() const
Returns BTag Vertex.
void setTagVlErr(float TagVlErr)
Set the error of the tagV component in the boost direction.
std::vector< double > m_raveWeights
weights of each track in the Rave tag vtx fit
float m_tagVlErr
Error of the tagV component in the boost direction
float getTagVolErr() const
Returns the error of the tagV component in the direction orthogonal to the boost.
std::vector< const Particle * > m_vtxFitParticles
pointers to the tracks used by rave to fit the vertex
float getTagVl() const
Returns the tagV component in the boost direction.
void setTruthTagVl(float TruthTagVl)
Set the MC tagV component in the boost direction.
void setTagVertex(const B2Vector3D &TagVertex)
Set BTag Vertex.
double getVtxFitTrackZ0(unsigned int trackIndex) const
Returns the longitudinal distance from the IP to the POCA of the tag track indexed by trackIndex.
float getMCDeltaT() const
Returns mc DeltaT (in kin.
float getTagVol() const
Returns the tagV component in the direction orthogonal to the boost.
void setConstraintCenter(const B2Vector3D &constraintCenter)
Set the centre of the constraint for the tag fit.
const Particle * getVtxFitParticle(unsigned int trackIndex) const
Returns a ptr to the particle constructed from the tag vtx track indexed by trackIndex.
TMatrixDSym m_tagVertexErrMatrix
Btag vertex (3x3) error matrix.
int m_NTracks
Number of tracks used in the fit.
void setTruthTagVol(float TruthTagVol)
Set the tagV component in the direction orthogonal to the boost.
float m_mcDeltaT
generated Delta t approximated: true Delta L divided by Upsilon(4S)'s boost
void setMCTagBFlavor(int mcTagBFlavor)
Set generated Btag PDG code.
float m_truthTagVl
MC tagV component in the boost direction
int getRollBackStatus() const
Get the status of the fit performed with the rolled back tracks.
float m_tagVNDF
Number of degrees of freedom in the tag vertex fit.
std::vector< const MCParticle * > m_vtxFitMCParticles
pointers to the MC p'cles corresponding to the tracks in the tag vtx fit
void setTagVolErr(float TagVolErr)
Set the error of the tagV component in the direction orthogonal to the boost.
B2Vector3D m_constraintCenter
centre of the constraint
void setMCTagVertex(const B2Vector3D &mcTagVertex)
Set generated BTag Vertex.
ROOT::Math::XYZVector getVtxFitTrackP(unsigned int trackIndex) const
Returns the momentum vector of the tag track indexed by trackindex.
float m_tagVChi2
chi^2 value of the tag vertex fit result
int getNFitTracks() const
Returns number of tracks used in the fit (not counting the ones removed because they come from Kshort...
B2Vector3D m_mcTagV
generated Btag vertex
void setTagVNDF(float TagVNDF)
Set the number of degrees of freedom in the tag vertex fit.
float getTagVlErr() const
Returns the error of the tagV component in the boost direction.
int getFitTruthStatus() const
Get the status of the fit performed with the truth info of the tracks.
void setDeltaTErr(float DeltaTErr)
Set DeltaTErr.
float m_tagVolErr
Error of the tagV component in the direction orthogonal to the boost.
void setNTracks(int nTracks)
Set number of tracks used in the fit.
B2Vector3D m_tagVertex
Btag vertex.
void setTagVChi2(float TagVChi2)
Set the chi^2 value of the tag vertex fit result.
void setMCDeltaT(float mcDeltaT)
Set generated DeltaT (in kin.
void setRollBackStatus(int backStatus)
Set the status of the fit performed with the rolled back tracks.
void setVertexFitMCParticles(const std::vector< const MCParticle * > &vtxFitMCParticles)
Set a vector of pointers to the MC p'cles corresponding to the tracks in the tag vtx fit.
float getMCDeltaTau() const
Returns generated DeltaTau.
float getTruthTagVol() const
Returns the MC tagV component in the direction orthogonal to the boost.
void setTagVol(float TagVol)
Set the tagV component in the direction orthogonal to the boost.
void setDeltaT(float DeltaT)
Set DeltaT.
int getFitType() const
Returns fit algo type.
float getTagVNDF() const
Returns the number of degrees of freedom in the tag vertex fit.
std::string m_constraintType
Type of the constraint used for the tag vertex fit (noConstraint, IP, Boost, Tube)
float m_tagVl
tagV component in the boost direction
float m_mcDeltaTau
generated Delta t: difference between signal and tag flight times
void setRaveWeights(const std::vector< double > &raveWeights)
Set the weights used by Rave in the tag vtx fit.
void setTagVertexPval(float TagVertexPval)
Set BTag Vertex P value.
B2Vector3D getConstraintCenter() const
Returns the position of the constraint, ie centre of the constraint ellipse.
const MCParticle * getVtxFitMCParticle(unsigned int trackIndex) const
Returns a ptr to the MC particle matched to the tag vtx track indexed by trackIndex.
TMatrixDSym getTagVertexErrMatrix() const
Returns BTag Vertex (3x3) error matrix.
float m_deltaTErr
Delta t error.
void setMCDeltaTau(float mcDeltaTau)
Set generated DeltaT.
float m_tagVChi2IP
IP component of chi^2 value of the tag vertex fit result.
void setTagVl(float TagVl)
Set the tagV component in the boost direction.
void setTagVertexErrMatrix(const TMatrixDSym &TagVertexErrMatrix)
Set BTag Vertex (3x3) error matrix.
B2Vector3D getMCTagVertex() const
Returns generated BTag Vertex.
int m_mcPDG
generated tag side B flavor (PDG code)
float getTagVChi2() const
Returns the chi^2 value of the tag vertex fit result.
float getTagVChi2IP() const
Returns the IP component of the chi^2 value of the tag vertex fit result.
void resetTagVertexErrorMatrix()
Resets 3x3 tag vertex error matrix All elements are set to 0.0.
float m_truthTagVol
MC tagV component in the direction orthogonal to the boost.
double getVtxFitTrackD0(unsigned int trackIndex) const
Returns the radial distance from the IP to the POCA of the tag track indexed by trackIndex.
float m_tagVol
tagV component in the direction orthogonal to the boost
int m_rollbackStatus
status of the fit when fitted with rolled back tracks
void setConstraintCov(const TMatrixDSym &constraintCov)
Set the covariance matrix of the constraint for the tag fit.
void setFitType(float FitType)
Set fit algo type.
void setVertexFitParticles(const std::vector< const Particle * > &vtxFitParticles)
Set a vector of pointers to the tracks used in the tag vtx fit.
int getNTracks() const
Returns number of tracks used in the fit.
int m_FitType
Fit algo used.
void setTagVChi2IP(float TagVChi2IP)
Set the IP component of the chi^2 value of the tag vertex fit result.
double getRaveWeight(unsigned int trackIndex) const
Returns the weight assigned by Rave to the track indexed by trackIndex.
void setFitTruthStatus(int truthStatus)
Set the status of the fit performed with the truth info of the tracks.
float getTagVertexPval() const
Returns BTag Vertex P value.
Abstract base class for different kinds of events.