Belle II Software development
TagVertex Class Reference

TagVertex data object: contains Btag Vertex and DeltaT. More...

#include <TagVertex.h>

Inheritance diagram for TagVertex:
RelationsInterface< TObject >

Public Member Functions

 TagVertex ()
 Default constructor.
 
ROOT::Math::XYZVector getTagVertex () const
 Returns BTag Vertex.
 
TMatrixDSym getTagVertexErrMatrix () const
 Returns BTag Vertex (3x3) error matrix.
 
float getTagVertexPval () const
 Returns BTag Vertex P value.
 
const ParticlegetVtxFitParticle (unsigned int trackIndex) const
 Returns a ptr to the particle constructed from the tag vtx track indexed by trackIndex.
 
const MCParticlegetVtxFitMCParticle (unsigned int trackIndex) const
 Returns a ptr to the MC particle matched to the tag vtx track indexed by trackIndex.
 
float getDeltaT () const
 Returns DeltaT.
 
float getDeltaTErr () const
 Returns DeltaTErr.
 
ROOT::Math::XYZVector getMCTagVertex () const
 Returns generated BTag Vertex.
 
int getMCTagBFlavor () const
 Returns generated Btag PDG code.
 
float getMCDeltaTau () const
 Returns generated DeltaTau.
 
float getMCDeltaT () const
 Returns mc DeltaT (in kin.
 
int getFitType () const
 Returns fit algo type.
 
std::string getConstraintType () const
 get the constraint type used in the tag fit
 
int getNTracks () const
 Returns number of tracks used in the fit.
 
int getNFitTracks () const
 Returns number of tracks used in the fit (not counting the ones removed because they come from Kshorts)
 
float getTagVl () const
 Returns the tagV component in the boost direction.
 
float getTruthTagVl () const
 Returns the MC tagV component in the boost direction.
 
float getTagVlErr () const
 Returns the error of the tagV component in the boost direction.
 
float getTagVol () const
 Returns the tagV component in the direction orthogonal to the boost.
 
float getTruthTagVol () const
 Returns the MC tagV component in the direction orthogonal to the boost.
 
float getTagVolErr () const
 Returns the error of the tagV component in the direction orthogonal to the boost.
 
float getTagVNDF () const
 Returns the number of degrees of freedom in the tag vertex fit.
 
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.
 
ROOT::Math::XYZVector getConstraintCenter () const
 Returns the position of the constraint, ie centre of the constraint ellipse.
 
TMatrixDSym getConstraintCov () const
 Get the covariance matrix of the constraint for the tag fit.
 
ROOT::Math::XYZVector getVtxFitTrackP (unsigned int trackIndex) const
 Returns the momentum vector of the tag track indexed by trackindex.
 
double getVtxFitTrackZ0 (unsigned int trackIndex) const
 Returns the longitudinal distance from the IP to the POCA of the tag track indexed by trackIndex.
 
double getVtxFitTrackD0 (unsigned int trackIndex) const
 Returns the radial distance from the IP to the POCA of the tag track indexed by trackIndex.
 
double getRaveWeight (unsigned int trackIndex) const
 Returns the weight assigned by Rave to the track indexed by trackIndex.
 
int getFitTruthStatus () const
 Get the status of the fit performed with the truth info of the tracks.
 
int getRollBackStatus () const
 Get the status of the fit performed with the rolled back tracks.
 
void setTagVertex (const ROOT::Math::XYZVector &TagVertex)
 Set BTag Vertex.
 
void setTagVertexErrMatrix (const TMatrixDSym &TagVertexErrMatrix)
 Set BTag Vertex (3x3) error matrix.
 
void setTagVertexPval (float TagVertexPval)
 Set BTag Vertex P value.
 
void setDeltaT (float DeltaT)
 Set DeltaT.
 
void setDeltaTErr (float DeltaTErr)
 Set DeltaTErr.
 
void setMCTagVertex (const ROOT::Math::XYZVector &mcTagVertex)
 Set generated BTag Vertex.
 
void setMCTagBFlavor (int mcTagBFlavor)
 Set generated Btag PDG code.
 
void setMCDeltaTau (float mcDeltaTau)
 Set generated DeltaT.
 
void setMCDeltaT (float mcDeltaT)
 Set generated DeltaT (in kin.
 
void setFitType (float FitType)
 Set fit algo type.
 
void setNTracks (int nTracks)
 Set number of tracks used in the fit.
 
void setTagVl (float TagVl)
 Set the tagV component in the boost direction.
 
void setTruthTagVl (float TruthTagVl)
 Set the MC tagV component in the boost direction.
 
void setTagVlErr (float TagVlErr)
 Set the error of the tagV component in the boost direction.
 
void setTagVol (float TagVol)
 Set the tagV component in the direction orthogonal to the boost.
 
void setTruthTagVol (float TruthTagVol)
 Set the tagV component in the direction orthogonal to the boost.
 
void setTagVolErr (float TagVolErr)
 Set the error of the tagV component in the direction orthogonal to the boost.
 
void setTagVNDF (float TagVNDF)
 Set the number of degrees of freedom in the tag vertex fit.
 
void setTagVChi2 (float TagVChi2)
 Set the chi^2 value of the tag vertex fit result.
 
void setTagVChi2IP (float TagVChi2IP)
 Set the IP component of the chi^2 value of the tag vertex fit result.
 
void setVertexFitParticles (const std::vector< const Particle * > &vtxFitParticles)
 Set a vector of pointers to the tracks used in the tag vtx fit.
 
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.
 
void setRaveWeights (const std::vector< double > &raveWeights)
 Set the weights used by Rave in the tag vtx fit.
 
void setConstraintCenter (const ROOT::Math::XYZVector &constraintCenter)
 Set the centre of the constraint for the tag fit.
 
void setConstraintCov (const TMatrixDSym &constraintCov)
 Set the covariance matrix of the constraint for the tag fit.
 
void setConstraintType (const std::string &constraintType)
 Set the type of the constraint for the tag fit.
 
void setFitTruthStatus (int truthStatus)
 Set the status of the fit performed with the truth info of the tracks.
 
void setRollBackStatus (int backStatus)
 Set the status of the fit performed with the rolled back tracks.
 
void addRelationTo (const RelationsInterface< TObject > *object, float weight=1.0, const std::string &namedRelation="") const
 Add a relation from this object to another object (with caching).
 
void addRelationTo (const TObject *object, float weight=1.0, const std::string &namedRelation="") const
 Add a relation from this object to another object (no caching, can be quite slow).
 
void addRelationTo (const RelationsInterface< TObject > *object, float weight=1.0, const std::string &namedRelation="") const
 Add a relation from this object to another object (with caching).
 
void addRelationTo (const TObject *object, float weight=1.0, const std::string &namedRelation="") const
 Add a relation from this object to another object (no caching, can be quite slow).
 
void copyRelations (const RelationsInterface< TObject > *sourceObj)
 Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights).
 
void copyRelations (const RelationsInterface< TObject > *sourceObj)
 Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights).
 
RelationVector< TO > getRelationsTo (const std::string &name="", const std::string &namedRelation="") const
 Get the relations that point from this object to another store array.
 
RelationVector< TO > getRelationsTo (const std::string &name="", const std::string &namedRelation="") const
 Get the relations that point from this object to another store array.
 
RelationVector< FROM > getRelationsFrom (const std::string &name="", const std::string &namedRelation="") const
 Get the relations that point from another store array to this object.
 
RelationVector< FROM > getRelationsFrom (const std::string &name="", const std::string &namedRelation="") const
 Get the relations that point from another store array to this object.
 
RelationVector< T > getRelationsWith (const std::string &name="", const std::string &namedRelation="") const
 Get the relations between this object and another store array.
 
RelationVector< T > getRelationsWith (const std::string &name="", const std::string &namedRelation="") const
 Get the relations between this object and another store array.
 
TO * getRelatedTo (const std::string &name="", const std::string &namedRelation="") const
 Get the object to which this object has a relation.
 
TO * getRelatedTo (const std::string &name="", const std::string &namedRelation="") const
 Get the object to which this object has a relation.
 
FROM * getRelatedFrom (const std::string &name="", const std::string &namedRelation="") const
 Get the object from which this object has a relation.
 
FROM * getRelatedFrom (const std::string &name="", const std::string &namedRelation="") const
 Get the object from which this object has a relation.
 
T * getRelated (const std::string &name="", const std::string &namedRelation="") const
 Get the object to or from which this object has a relation.
 
T * getRelated (const std::string &name="", const std::string &namedRelation="") const
 Get the object to or from which this object has a relation.
 
std::pair< TO *, float > getRelatedToWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing to an array.
 
std::pair< TO *, float > getRelatedToWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing to an array.
 
std::pair< FROM *, float > getRelatedFromWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing from an array.
 
std::pair< FROM *, float > getRelatedFromWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing from an array.
 
std::pair< T *, float > getRelatedWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing from/to an array.
 
std::pair< T *, float > getRelatedWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing from/to an array.
 
virtual std::string getName () const
 Return a short name that describes this object, e.g.
 
virtual std::string getName () const
 Return a short name that describes this object, e.g.
 
virtual std::string getInfoHTML () const
 Return a short summary of this object's contents in HTML format.
 
virtual std::string getInfoHTML () const
 Return a short summary of this object's contents in HTML format.
 
std::string getInfo () const
 Return a short summary of this object's contents in raw text format.
 
std::string getInfo () const
 Return a short summary of this object's contents in raw text format.
 
std::string getArrayName () const
 Get name of array this object is stored in, or "" if not found.
 
std::string getArrayName () const
 Get name of array this object is stored in, or "" if not found.
 
int getArrayIndex () const
 Returns this object's array index (in StoreArray), or -1 if not found.
 
int getArrayIndex () const
 Returns this object's array index (in StoreArray), or -1 if not found.
 

Protected Member Functions

TClonesArray * getArrayPointer () const
 Returns the pointer to the raw DataStore array holding this object (protected since these arrays are easy to misuse).
 
TClonesArray * getArrayPointer () const
 Returns the pointer to the raw DataStore array holding this object (protected since these arrays are easy to misuse).
 

Private Member Functions

void resetTagVertexErrorMatrix ()
 Resets 3x3 tag vertex error matrix All elements are set to 0.0.
 
void resetConstraintCov ()
 Resets 3x3 constraint error matrix All elements are set to 0.0.
 
 ClassDef (RelationsInterface, 0)
 defines interface for accessing relations of objects in StoreArray.
 
 ClassDef (RelationsInterface, 0)
 defines interface for accessing relations of objects in StoreArray.
 

Private Attributes

ROOT::Math::XYZVector m_tagVertex
 Btag vertex.
 
TMatrixDSym m_tagVertexErrMatrix
 Btag vertex (3x3) error matrix.
 
float m_tagVertexPval
 Btag vertex P value.
 
float m_deltaT
 Delta t.
 
float m_deltaTErr
 Delta t error.
 
ROOT::Math::XYZVector m_mcTagV
 generated Btag vertex
 
int m_mcPDG
 generated tag side B flavor (PDG code)
 
float m_mcDeltaTau
 generated Delta t: difference between signal and tag flight times
 
float m_mcDeltaT
 generated Delta t approximated: true Delta L divided by Upsilon(4S)'s boost
 
int m_FitType
 Fit algo used.
 
int m_NTracks
 Number of tracks used in the fit.
 
float m_tagVl
 tagV component in the boost direction
 
float m_truthTagVl
 MC tagV component in the boost direction.
 
float m_tagVlErr
 Error of the tagV component in the boost direction.
 
float m_tagVol
 tagV component in the direction orthogonal to the boost
 
float m_truthTagVol
 MC tagV component in the direction orthogonal to the boost.
 
float m_tagVolErr
 Error of the tagV component in the direction orthogonal to the boost.
 
float m_tagVNDF
 Number of degrees of freedom in the tag vertex fit.
 
float m_tagVChi2
 chi^2 value of the tag vertex fit result
 
float m_tagVChi2IP
 IP component of chi^2 value of the tag vertex fit result.
 
std::vector< const Particle * > m_vtxFitParticles
 pointers to the tracks used by rave to fit the vertex
 
std::vector< const MCParticle * > m_vtxFitMCParticles
 pointers to the MC p'cles corresponding to the tracks in the tag vtx fit
 
int m_NFitTracks
 Number of tracks used by Rave to fit the vertex.
 
std::vector< double > m_raveWeights
 weights of each track in the Rave tag vtx fit
 
std::string m_constraintType
 Type of the constraint used for the tag vertex fit (noConstraint, IP, Boost, Tube)
 
ROOT::Math::XYZVector m_constraintCenter
 centre of the constraint
 
TMatrixDSym m_constraintCov
 covariance matrix associated to the constraint, ie size of the constraint
 
int m_fitTruthStatus
 status of the fit when fitted with the truth info of the tracks
 
int m_rollbackStatus
 status of the fit when fitted with rolled back tracks
 
DataStore::StoreEntrym_cacheDataStoreEntry
 Cache of the data store entry to which this object belongs.
 
DataStore::StoreEntrym_cacheDataStoreEntry
 Cache of the data store entry to which this object belongs.
 
int m_cacheArrayIndex
 Cache of the index in the TClonesArray to which this object belongs.
 
int m_cacheArrayIndex
 Cache of the index in the TClonesArray to which this object belongs.
 

Detailed Description

TagVertex data object: contains Btag Vertex and DeltaT.

Definition at line 29 of file TagVertex.h.

Constructor & Destructor Documentation

◆ TagVertex()

TagVertex ( )
inline

Default constructor.

All private members are set to 0 (all vectors are empty).

Definition at line 37 of file TagVertex.h.

38 {
39 m_tagVertex = ROOT::Math::XYZVector(0, 0, 0);
40 m_tagVertexPval = 0;
41 m_deltaT = 0;
42 m_deltaTErr = 0;
43 m_mcDeltaTau = 0;
44 m_mcDeltaT = 0;
45 m_mcTagV = ROOT::Math::XYZVector(0, 0, 0);
46 m_mcPDG = 0;
47 resetTagVertexErrorMatrix();
48 resetConstraintCov();
49 m_FitType = 0;
50 m_NTracks = -1;
51 m_tagVl = 0;
52 m_tagVlErr = 0;
53 m_tagVol = 0;
54 m_tagVolErr = 0;
55 m_truthTagVl = 0;
56 m_truthTagVol = 0;
57 m_tagVNDF = 0;
58 m_tagVChi2 = 0;
59 m_tagVChi2IP = 0;
60 m_NFitTracks = 0;
61 m_constraintType = "";
62 m_constraintCenter = ROOT::Math::XYZVector(0, 0, 0);
63 m_fitTruthStatus = 0;
64 m_rollbackStatus = 0;
65 }

Member Function Documentation

◆ addRelationTo() [1/4]

void addRelationTo ( const RelationsInterface< TObject > * object,
float weight = 1.0,
const std::string & namedRelation = "" ) const
inlineinherited

Add a relation from this object to another object (with caching).

Parameters
objectThe object to which the relation should point.
weightThe weight of the relation.
namedRelationAdditional name for the relation, or "" for the default naming

Definition at line 142 of file RelationsObject.h.

143 {
144 if (object)
145 DataStore::Instance().addRelation(this, m_cacheDataStoreEntry, m_cacheArrayIndex,
146 object, object->m_cacheDataStoreEntry, object->m_cacheArrayIndex, weight, namedRelation);
147 }

◆ addRelationTo() [2/4]

void addRelationTo ( const RelationsInterface< TObject > * object,
float weight = 1.0,
const std::string & namedRelation = "" ) const
inlineinherited

Add a relation from this object to another object (with caching).

Parameters
objectThe object to which the relation should point.
weightThe weight of the relation.
namedRelationAdditional name for the relation, or "" for the default naming

Definition at line 142 of file RelationsObject.h.

143 {
144 if (object)
145 DataStore::Instance().addRelation(this, m_cacheDataStoreEntry, m_cacheArrayIndex,
146 object, object->m_cacheDataStoreEntry, object->m_cacheArrayIndex, weight, namedRelation);
147 }

◆ addRelationTo() [3/4]

void addRelationTo ( const TObject * object,
float weight = 1.0,
const std::string & namedRelation = "" ) const
inlineinherited

Add a relation from this object to another object (no caching, can be quite slow).

Parameters
objectThe object to which the relation should point.
weightThe weight of the relation.
namedRelationAdditional name for the relation, or "" for the default naming

Definition at line 155 of file RelationsObject.h.

156 {
157 StoreEntry* toEntry = nullptr;
158 int toIndex = -1;
159 DataStore::Instance().addRelation(this, m_cacheDataStoreEntry, m_cacheArrayIndex, object, toEntry, toIndex, weight, namedRelation);
160 }

◆ addRelationTo() [4/4]

void addRelationTo ( const TObject * object,
float weight = 1.0,
const std::string & namedRelation = "" ) const
inlineinherited

Add a relation from this object to another object (no caching, can be quite slow).

Parameters
objectThe object to which the relation should point.
weightThe weight of the relation.
namedRelationAdditional name for the relation, or "" for the default naming

Definition at line 155 of file RelationsObject.h.

156 {
157 StoreEntry* toEntry = nullptr;
158 int toIndex = -1;
159 DataStore::Instance().addRelation(this, m_cacheDataStoreEntry, m_cacheArrayIndex, object, toEntry, toIndex, weight, namedRelation);
160 }

◆ copyRelations() [1/2]

void copyRelations ( const RelationsInterface< TObject > * sourceObj)
inlineinherited

Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights).

Useful if you want to make a complete copy of a StoreArray object to make modifications to it, but retain all information on linked objects.

Note: this only works if sourceObj inherits from the same base (e.g. RelationsObject), and only for related objects that also inherit from the same base.

Definition at line 170 of file RelationsObject.h.

171 {
172 if (!sourceObj)
173 return;
174 auto fromRels = sourceObj->getRelationsFrom<RelationsInterface<BASE>>("ALL");
175 for (unsigned int iRel = 0; iRel < fromRels.size(); iRel++) {
176 fromRels.object(iRel)->addRelationTo(this, fromRels.weight(iRel));
177 }
178
179 auto toRels = sourceObj->getRelationsTo<RelationsInterface<BASE>>("ALL");
180 for (unsigned int iRel = 0; iRel < toRels.size(); iRel++) {
181 this->addRelationTo(toRels.object(iRel), toRels.weight(iRel));
182 }
183 }

◆ copyRelations() [2/2]

void copyRelations ( const RelationsInterface< TObject > * sourceObj)
inlineinherited

Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights).

Useful if you want to make a complete copy of a StoreArray object to make modifications to it, but retain all information on linked objects.

Note: this only works if sourceObj inherits from the same base (e.g. RelationsObject), and only for related objects that also inherit from the same base.

Definition at line 170 of file RelationsObject.h.

171 {
172 if (!sourceObj)
173 return;
174 auto fromRels = sourceObj->getRelationsFrom<RelationsInterface<BASE>>("ALL");
175 for (unsigned int iRel = 0; iRel < fromRels.size(); iRel++) {
176 fromRels.object(iRel)->addRelationTo(this, fromRels.weight(iRel));
177 }
178
179 auto toRels = sourceObj->getRelationsTo<RelationsInterface<BASE>>("ALL");
180 for (unsigned int iRel = 0; iRel < toRels.size(); iRel++) {
181 this->addRelationTo(toRels.object(iRel), toRels.weight(iRel));
182 }
183 }

◆ getArrayIndex() [1/2]

int getArrayIndex ( ) const
inlineinherited

Returns this object's array index (in StoreArray), or -1 if not found.

Definition at line 385 of file RelationsObject.h.

386 {
387 DataStore::Instance().findStoreEntry(this, m_cacheDataStoreEntry, m_cacheArrayIndex);
388 return m_cacheArrayIndex;
389 }

◆ getArrayIndex() [2/2]

int getArrayIndex ( ) const
inlineinherited

Returns this object's array index (in StoreArray), or -1 if not found.

Definition at line 385 of file RelationsObject.h.

386 {
387 DataStore::Instance().findStoreEntry(this, m_cacheDataStoreEntry, m_cacheArrayIndex);
388 return m_cacheArrayIndex;
389 }

◆ getArrayName() [1/2]

std::string getArrayName ( ) const
inlineinherited

Get name of array this object is stored in, or "" if not found.

Definition at line 377 of file RelationsObject.h.

378 {
379 DataStore::Instance().findStoreEntry(this, m_cacheDataStoreEntry, m_cacheArrayIndex);
380 return m_cacheDataStoreEntry ? m_cacheDataStoreEntry->name : "";
381 }

◆ getArrayName() [2/2]

std::string getArrayName ( ) const
inlineinherited

Get name of array this object is stored in, or "" if not found.

Definition at line 377 of file RelationsObject.h.

378 {
379 DataStore::Instance().findStoreEntry(this, m_cacheDataStoreEntry, m_cacheArrayIndex);
380 return m_cacheDataStoreEntry ? m_cacheDataStoreEntry->name : "";
381 }

◆ getArrayPointer() [1/2]

TClonesArray * getArrayPointer ( ) const
inlineprotectedinherited

Returns the pointer to the raw DataStore array holding this object (protected since these arrays are easy to misuse).

Definition at line 418 of file RelationsObject.h.

419 {
420 DataStore::Instance().findStoreEntry(this, m_cacheDataStoreEntry, m_cacheArrayIndex);
421 if (!m_cacheDataStoreEntry)
422 return nullptr;
423 return m_cacheDataStoreEntry->getPtrAsArray();
424 }

◆ getArrayPointer() [2/2]

TClonesArray * getArrayPointer ( ) const
inlineprotectedinherited

Returns the pointer to the raw DataStore array holding this object (protected since these arrays are easy to misuse).

Definition at line 418 of file RelationsObject.h.

419 {
420 DataStore::Instance().findStoreEntry(this, m_cacheDataStoreEntry, m_cacheArrayIndex);
421 if (!m_cacheDataStoreEntry)
422 return nullptr;
423 return m_cacheDataStoreEntry->getPtrAsArray();
424 }

◆ getConstraintCenter()

ROOT::Math::XYZVector getConstraintCenter ( ) const

Returns the position of the constraint, ie centre of the constraint ellipse.

Definition at line 89 of file TagVertex.cc.

90{
91 if (m_constraintType == "noConstraint") return vecNaN;
92 return m_constraintCenter;
93}
ROOT::Math::XYZVector m_constraintCenter
centre of the constraint
Definition TagVertex.h:408
std::string m_constraintType
Type of the constraint used for the tag vertex fit (noConstraint, IP, Boost, Tube)
Definition TagVertex.h:407

◆ getConstraintCov()

TMatrixDSym getConstraintCov ( ) const

Get the covariance matrix of the constraint for the tag fit.

Definition at line 95 of file TagVertex.cc.

96{
97 return m_constraintCov;
98}
TMatrixDSym m_constraintCov
covariance matrix associated to the constraint, ie size of the constraint
Definition TagVertex.h:409

◆ getConstraintType()

std::string getConstraintType ( ) const

get the constraint type used in the tag fit

Definition at line 84 of file TagVertex.cc.

85{
86 return m_constraintType;
87}

◆ getDeltaT()

float getDeltaT ( ) const

Returns DeltaT.

Definition at line 49 of file TagVertex.cc.

50{
51 return m_deltaT;
52}
float m_deltaT
Delta t.
Definition TagVertex.h:386

◆ getDeltaTErr()

float getDeltaTErr ( ) const

Returns DeltaTErr.

Definition at line 54 of file TagVertex.cc.

55{
56 return m_deltaTErr;
57}
float m_deltaTErr
Delta t error.
Definition TagVertex.h:387

◆ getFitTruthStatus()

int getFitTruthStatus ( ) const

Get the status of the fit performed with the truth info of the tracks.

Definition at line 179 of file TagVertex.cc.

180{
181 return m_fitTruthStatus;
182}
int m_fitTruthStatus
status of the fit when fitted with the truth info of the tracks
Definition TagVertex.h:410

◆ getFitType()

int getFitType ( ) const

Returns fit algo type.

Definition at line 79 of file TagVertex.cc.

80{
81 return m_FitType;
82}
int m_FitType
Fit algo used.
Definition TagVertex.h:392

◆ getInfo() [1/2]

std::string getInfo ( ) const
inlineinherited

Return a short summary of this object's contents in raw text format.

Returns the contents of getInfoHTML() while translating line-breaks etc.

Note
: You don't need to implement this function (it's not virtual), getInfoHTML() is enough.

Definition at line 370 of file RelationsObject.h.

371 {
372 return _RelationsInterfaceImpl::htmlToPlainText(getInfoHTML());
373 }

◆ getInfo() [2/2]

std::string getInfo ( ) const
inlineinherited

Return a short summary of this object's contents in raw text format.

Returns the contents of getInfoHTML() while translating line-breaks etc.

Note
: You don't need to implement this function (it's not virtual), getInfoHTML() is enough.

Definition at line 370 of file RelationsObject.h.

371 {
372 return _RelationsInterfaceImpl::htmlToPlainText(getInfoHTML());
373 }

◆ getInfoHTML() [1/2]

virtual std::string getInfoHTML ( ) const
inlinevirtualinherited

Return a short summary of this object's contents in HTML format.

Reimplement this in your own class to provide useful output for display or debugging purposes. For example, you might do something like:

std::stringstream out;
out << "<b>PDG</b>: " << m_pdg << "<br>";
out << "<b>Covariance Matrix</b>: " << HTML::getString(getCovariance5()) << "<br>";
return out.str();
std::string getString(const TMatrixFBase &matrix, int precision=2, bool color=true)
get HTML table representing a matrix.
Definition HTML.cc:24
See also
Particle::getInfoHTML() for a more complex example.
HTML for some utility functions.
Use getInfo() to get a raw text version of this output.

Reimplemented in Cluster, MCParticle, Particle, PIDLikelihood, RecoTrack, SoftwareTriggerResult, Track, TrackFitResult, and TRGSummary.

Definition at line 362 of file RelationsObject.h.

362{ return ""; }

◆ getInfoHTML() [2/2]

virtual std::string getInfoHTML ( ) const
inlinevirtualinherited

Return a short summary of this object's contents in HTML format.

Reimplement this in your own class to provide useful output for display or debugging purposes. For example, you might do something like:

std::stringstream out;
out << "<b>PDG</b>: " << m_pdg << "<br>";
out << "<b>Covariance Matrix</b>: " << HTML::getString(getCovariance5()) << "<br>";
return out.str();
See also
Particle::getInfoHTML() for a more complex example.
HTML for some utility functions.
Use getInfo() to get a raw text version of this output.

Reimplemented in Cluster, MCParticle, Particle, PIDLikelihood, RecoTrack, SoftwareTriggerResult, Track, TrackFitResult, and TRGSummary.

Definition at line 362 of file RelationsObject.h.

362{ return ""; }

◆ getMCDeltaT()

float getMCDeltaT ( ) const

Returns mc DeltaT (in kin.

approximation)

Definition at line 74 of file TagVertex.cc.

75{
76 return m_mcDeltaT;
77}
float m_mcDeltaT
generated Delta t approximated: true Delta L divided by Upsilon(4S)'s boost
Definition TagVertex.h:391

◆ getMCDeltaTau()

float getMCDeltaTau ( ) const

Returns generated DeltaTau.

Definition at line 69 of file TagVertex.cc.

70{
71 return m_mcDeltaTau;
72}
float m_mcDeltaTau
generated Delta t: difference between signal and tag flight times
Definition TagVertex.h:390

◆ getMCTagBFlavor()

int getMCTagBFlavor ( ) const

Returns generated Btag PDG code.

Definition at line 64 of file TagVertex.cc.

65{
66 return m_mcPDG;
67}
int m_mcPDG
generated tag side B flavor (PDG code)
Definition TagVertex.h:389

◆ getMCTagVertex()

ROOT::Math::XYZVector getMCTagVertex ( ) const

Returns generated BTag Vertex.

Definition at line 59 of file TagVertex.cc.

60{
61 return m_mcTagV;
62}
ROOT::Math::XYZVector m_mcTagV
generated Btag vertex
Definition TagVertex.h:388

◆ getName() [1/2]

virtual std::string getName ( ) const
inlinevirtualinherited

Return a short name that describes this object, e.g.

pi+ for an MCParticle.

Reimplemented in MCParticle, Particle, and SpacePoint.

Definition at line 344 of file RelationsObject.h.

344{ return ""; }

◆ getName() [2/2]

virtual std::string getName ( ) const
inlinevirtualinherited

Return a short name that describes this object, e.g.

pi+ for an MCParticle.

Reimplemented in MCParticle, Particle, and SpacePoint.

Definition at line 344 of file RelationsObject.h.

344{ return ""; }

◆ getNFitTracks()

int getNFitTracks ( ) const

Returns number of tracks used in the fit (not counting the ones removed because they come from Kshorts)

Definition at line 105 of file TagVertex.cc.

106{
107 return m_NFitTracks;
108}
int m_NFitTracks
Number of tracks used by Rave to fit the vertex.
Definition TagVertex.h:405

◆ getNTracks()

int getNTracks ( ) const

Returns number of tracks used in the fit.

Definition at line 100 of file TagVertex.cc.

101{
102 return m_NTracks;
103}
int m_NTracks
Number of tracks used in the fit.
Definition TagVertex.h:393

◆ getRaveWeight()

double getRaveWeight ( unsigned int trackIndex) const

Returns the weight assigned by Rave to the track indexed by trackIndex.

Definition at line 173 of file TagVertex.cc.

174{
175 if (m_raveWeights.size() <= trackIndex) return realNaN;
176 return m_raveWeights.at(trackIndex);
177}
std::vector< double > m_raveWeights
weights of each track in the Rave tag vtx fit
Definition TagVertex.h:406
static const double realNaN
This collects the B-meson properties in the hadronic B-decays It is used for the Ecms calibration in ...

◆ getRelated() [1/2]

T * getRelated ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get the object to or from which this object has a relation.

Template Parameters
TThe class of objects to or from which the relation points.
Parameters
nameThe name of the store array to or from which the relation points. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 278 of file RelationsObject.h.

279 {
280 return static_cast<T*>(DataStore::Instance().getRelationWith(DataStore::c_BothSides, this, m_cacheDataStoreEntry, m_cacheArrayIndex,
281 T::Class(), name, namedRelation).object);
282 }

◆ getRelated() [2/2]

T * getRelated ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get the object to or from which this object has a relation.

Template Parameters
TThe class of objects to or from which the relation points.
Parameters
nameThe name of the store array to or from which the relation points. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 278 of file RelationsObject.h.

279 {
280 return static_cast<T*>(DataStore::Instance().getRelationWith(DataStore::c_BothSides, this, m_cacheDataStoreEntry, m_cacheArrayIndex,
281 T::Class(), name, namedRelation).object);
282 }

◆ getRelatedFrom() [1/2]

FROM * getRelatedFrom ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get the object from which this object has a relation.

Template Parameters
FROMThe class of objects from which the relation points.
Parameters
nameThe name of the store array from which the relation points. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 263 of file RelationsObject.h.

264 {
265 return static_cast<FROM*>(DataStore::Instance().getRelationWith(DataStore::c_FromSide, this, m_cacheDataStoreEntry,
266 m_cacheArrayIndex, FROM::Class(), name, namedRelation).object);
267 }

◆ getRelatedFrom() [2/2]

FROM * getRelatedFrom ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get the object from which this object has a relation.

Template Parameters
FROMThe class of objects from which the relation points.
Parameters
nameThe name of the store array from which the relation points. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 263 of file RelationsObject.h.

264 {
265 return static_cast<FROM*>(DataStore::Instance().getRelationWith(DataStore::c_FromSide, this, m_cacheDataStoreEntry,
266 m_cacheArrayIndex, FROM::Class(), name, namedRelation).object);
267 }

◆ getRelatedFromWithWeight() [1/2]

std::pair< FROM *, float > getRelatedFromWithWeight ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get first related object & weight of relation pointing from an array.

Template Parameters
FROMThe class of objects from which the relation points.
Parameters
nameThe name of the store array from which the relation points. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 314 of file RelationsObject.h.

316 {
317 RelationEntry entry = DataStore::Instance().getRelationWith(DataStore::c_FromSide, this, m_cacheDataStoreEntry, m_cacheArrayIndex,
318 FROM::Class(), name, namedRelation);
319 return std::make_pair(static_cast<FROM*>(entry.object), entry.weight);
320 }

◆ getRelatedFromWithWeight() [2/2]

std::pair< FROM *, float > getRelatedFromWithWeight ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get first related object & weight of relation pointing from an array.

Template Parameters
FROMThe class of objects from which the relation points.
Parameters
nameThe name of the store array from which the relation points. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 314 of file RelationsObject.h.

316 {
317 RelationEntry entry = DataStore::Instance().getRelationWith(DataStore::c_FromSide, this, m_cacheDataStoreEntry, m_cacheArrayIndex,
318 FROM::Class(), name, namedRelation);
319 return std::make_pair(static_cast<FROM*>(entry.object), entry.weight);
320 }

◆ getRelatedTo() [1/2]

TO * getRelatedTo ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get the object to which this object has a relation.

Template Parameters
TOThe class of objects to which the relation points.
Parameters
nameThe name of the store array to which the relation points. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 248 of file RelationsObject.h.

249 {
250 return static_cast<TO*>(DataStore::Instance().getRelationWith(DataStore::c_ToSide, this, m_cacheDataStoreEntry, m_cacheArrayIndex,
251 TO::Class(), name, namedRelation).object);
252 }

◆ getRelatedTo() [2/2]

TO * getRelatedTo ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get the object to which this object has a relation.

Template Parameters
TOThe class of objects to which the relation points.
Parameters
nameThe name of the store array to which the relation points. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 248 of file RelationsObject.h.

249 {
250 return static_cast<TO*>(DataStore::Instance().getRelationWith(DataStore::c_ToSide, this, m_cacheDataStoreEntry, m_cacheArrayIndex,
251 TO::Class(), name, namedRelation).object);
252 }

◆ getRelatedToWithWeight() [1/2]

std::pair< TO *, float > getRelatedToWithWeight ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get first related object & weight of relation pointing to an array.

Template Parameters
TOThe class of objects to which the relation points.
Parameters
nameThe name of the store array to which the relation points. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 297 of file RelationsObject.h.

299 {
300 RelationEntry entry = DataStore::Instance().getRelationWith(DataStore::c_ToSide, this, m_cacheDataStoreEntry, m_cacheArrayIndex,
301 TO::Class(), name, namedRelation);
302 return std::make_pair(static_cast<TO*>(entry.object), entry.weight);
303 }

◆ getRelatedToWithWeight() [2/2]

std::pair< TO *, float > getRelatedToWithWeight ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get first related object & weight of relation pointing to an array.

Template Parameters
TOThe class of objects to which the relation points.
Parameters
nameThe name of the store array to which the relation points. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 297 of file RelationsObject.h.

299 {
300 RelationEntry entry = DataStore::Instance().getRelationWith(DataStore::c_ToSide, this, m_cacheDataStoreEntry, m_cacheArrayIndex,
301 TO::Class(), name, namedRelation);
302 return std::make_pair(static_cast<TO*>(entry.object), entry.weight);
303 }

◆ getRelatedWithWeight() [1/2]

std::pair< T *, float > getRelatedWithWeight ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get first related object & weight of relation pointing from/to an array.

Template Parameters
TThe class of objects to or from which the relation points.
Parameters
nameThe name of the store array to or from which the relation points. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 331 of file RelationsObject.h.

333 {
334 RelationEntry entry = DataStore::Instance().getRelationWith(DataStore::c_BothSides, this, m_cacheDataStoreEntry, m_cacheArrayIndex,
335 T::Class(), name, namedRelation);
336 return std::make_pair(static_cast<T*>(entry.object), entry.weight);
337 }

◆ getRelatedWithWeight() [2/2]

std::pair< T *, float > getRelatedWithWeight ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get first related object & weight of relation pointing from/to an array.

Template Parameters
TThe class of objects to or from which the relation points.
Parameters
nameThe name of the store array to or from which the relation points. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 331 of file RelationsObject.h.

333 {
334 RelationEntry entry = DataStore::Instance().getRelationWith(DataStore::c_BothSides, this, m_cacheDataStoreEntry, m_cacheArrayIndex,
335 T::Class(), name, namedRelation);
336 return std::make_pair(static_cast<T*>(entry.object), entry.weight);
337 }

◆ getRelationsFrom() [1/2]

RelationVector< FROM > getRelationsFrom ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get the relations that point from another store array to this object.

Template Parameters
FROMThe class of objects from which the relations point.
Parameters
nameThe name of the store array from which the relations point. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 212 of file RelationsObject.h.

214 {
215 return RelationVector<FROM>(DataStore::Instance().getRelationsWith(DataStore::c_FromSide, this, m_cacheDataStoreEntry,
216 m_cacheArrayIndex, FROM::Class(), name, namedRelation));
217 }

◆ getRelationsFrom() [2/2]

RelationVector< FROM > getRelationsFrom ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get the relations that point from another store array to this object.

Template Parameters
FROMThe class of objects from which the relations point.
Parameters
nameThe name of the store array from which the relations point. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 212 of file RelationsObject.h.

214 {
215 return RelationVector<FROM>(DataStore::Instance().getRelationsWith(DataStore::c_FromSide, this, m_cacheDataStoreEntry,
216 m_cacheArrayIndex, FROM::Class(), name, namedRelation));
217 }

◆ getRelationsTo() [1/2]

RelationVector< TO > getRelationsTo ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get the relations that point from this object to another store array.

Template Parameters
TOThe class of objects to which the relations point.
Parameters
nameThe name of the store array to which the relations point. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 197 of file RelationsObject.h.

198 {
199 return RelationVector<TO>(DataStore::Instance().getRelationsWith(DataStore::c_ToSide, this, m_cacheDataStoreEntry,
200 m_cacheArrayIndex, TO::Class(), name, namedRelation));
201 }

◆ getRelationsTo() [2/2]

RelationVector< TO > getRelationsTo ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get the relations that point from this object to another store array.

Template Parameters
TOThe class of objects to which the relations point.
Parameters
nameThe name of the store array to which the relations point. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 197 of file RelationsObject.h.

198 {
199 return RelationVector<TO>(DataStore::Instance().getRelationsWith(DataStore::c_ToSide, this, m_cacheDataStoreEntry,
200 m_cacheArrayIndex, TO::Class(), name, namedRelation));
201 }

◆ getRelationsWith() [1/2]

RelationVector< T > getRelationsWith ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get the relations between this object and another store array.

Relations in both directions are returned.

Template Parameters
TThe class of objects to or from which the relations point.
Parameters
nameThe name of the store array to or from which the relations point. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 230 of file RelationsObject.h.

231 {
232 return RelationVector<T>(DataStore::Instance().getRelationsWith(DataStore::c_BothSides, this, m_cacheDataStoreEntry,
233 m_cacheArrayIndex, T::Class(), name, namedRelation));
234 }

◆ getRelationsWith() [2/2]

RelationVector< T > getRelationsWith ( const std::string & name = "",
const std::string & namedRelation = "" ) const
inlineinherited

Get the relations between this object and another store array.

Relations in both directions are returned.

Template Parameters
TThe class of objects to or from which the relations point.
Parameters
nameThe name of the store array to or from which the relations point. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 230 of file RelationsObject.h.

231 {
232 return RelationVector<T>(DataStore::Instance().getRelationsWith(DataStore::c_BothSides, this, m_cacheDataStoreEntry,
233 m_cacheArrayIndex, T::Class(), name, namedRelation));
234 }

◆ getRollBackStatus()

int getRollBackStatus ( ) const

Get the status of the fit performed with the rolled back tracks.

Definition at line 184 of file TagVertex.cc.

185{
186 return m_rollbackStatus;
187}
int m_rollbackStatus
status of the fit when fitted with rolled back tracks
Definition TagVertex.h:411

◆ getTagVChi2()

float getTagVChi2 ( ) const

Returns the chi^2 value of the tag vertex fit result.

Definition at line 145 of file TagVertex.cc.

146{
147 return m_tagVChi2;
148}
float m_tagVChi2
chi^2 value of the tag vertex fit result
Definition TagVertex.h:401

◆ getTagVChi2IP()

float getTagVChi2IP ( ) const

Returns the IP component of the chi^2 value of the tag vertex fit result.

Definition at line 150 of file TagVertex.cc.

151{
152 return m_tagVChi2IP;
153}
float m_tagVChi2IP
IP component of chi^2 value of the tag vertex fit result.
Definition TagVertex.h:402

◆ getTagVertex()

ROOT::Math::XYZVector getTagVertex ( ) const

Returns BTag Vertex.

Definition at line 20 of file TagVertex.cc.

21{
22 return m_tagVertex;
23}
ROOT::Math::XYZVector m_tagVertex
Btag vertex.
Definition TagVertex.h:383

◆ getTagVertexErrMatrix()

TMatrixDSym getTagVertexErrMatrix ( ) const

Returns BTag Vertex (3x3) error matrix.

Definition at line 25 of file TagVertex.cc.

26{
28}
TMatrixDSym m_tagVertexErrMatrix
Btag vertex (3x3) error matrix.
Definition TagVertex.h:384

◆ getTagVertexPval()

float getTagVertexPval ( ) const

Returns BTag Vertex P value.

Definition at line 30 of file TagVertex.cc.

31{
32 return m_tagVertexPval;
33}
float m_tagVertexPval
Btag vertex P value.
Definition TagVertex.h:385

◆ getTagVl()

float getTagVl ( ) const

Returns the tagV component in the boost direction.

Definition at line 110 of file TagVertex.cc.

111{
112 return m_tagVl;
113}
float m_tagVl
tagV component in the boost direction
Definition TagVertex.h:394

◆ getTagVlErr()

float getTagVlErr ( ) const

Returns the error of the tagV component in the boost direction.

Definition at line 120 of file TagVertex.cc.

121{
122 return m_tagVlErr;
123}
float m_tagVlErr
Error of the tagV component in the boost direction.
Definition TagVertex.h:396

◆ getTagVNDF()

float getTagVNDF ( ) const

Returns the number of degrees of freedom in the tag vertex fit.

Definition at line 140 of file TagVertex.cc.

141{
142 return m_tagVNDF;
143}
float m_tagVNDF
Number of degrees of freedom in the tag vertex fit.
Definition TagVertex.h:400

◆ getTagVol()

float getTagVol ( ) const

Returns the tagV component in the direction orthogonal to the boost.

Definition at line 125 of file TagVertex.cc.

126{
127 return m_tagVol;
128}
float m_tagVol
tagV component in the direction orthogonal to the boost
Definition TagVertex.h:397

◆ getTagVolErr()

float getTagVolErr ( ) const

Returns the error of the tagV component in the direction orthogonal to the boost.

Definition at line 135 of file TagVertex.cc.

136{
137 return m_tagVolErr;
138}
float m_tagVolErr
Error of the tagV component in the direction orthogonal to the boost.
Definition TagVertex.h:399

◆ getTruthTagVl()

float getTruthTagVl ( ) const

Returns the MC tagV component in the boost direction.

Definition at line 115 of file TagVertex.cc.

116{
117 return m_truthTagVl;
118}
float m_truthTagVl
MC tagV component in the boost direction.
Definition TagVertex.h:395

◆ getTruthTagVol()

float getTruthTagVol ( ) const

Returns the MC tagV component in the direction orthogonal to the boost.

Definition at line 130 of file TagVertex.cc.

131{
132 return m_truthTagVol;
133}
float m_truthTagVol
MC tagV component in the direction orthogonal to the boost.
Definition TagVertex.h:398

◆ getVtxFitMCParticle()

const MCParticle * getVtxFitMCParticle ( unsigned int trackIndex) const

Returns a ptr to the MC particle matched to the tag vtx track indexed by trackIndex.

Definition at line 42 of file TagVertex.cc.

43{
44 if (trackIndex >= m_vtxFitMCParticles.size())
45 return 0;
46 return m_vtxFitMCParticles.at(trackIndex);
47}
std::vector< const MCParticle * > m_vtxFitMCParticles
pointers to the MC p'cles corresponding to the tracks in the tag vtx fit
Definition TagVertex.h:404

◆ getVtxFitParticle()

const Particle * getVtxFitParticle ( unsigned int trackIndex) const

Returns a ptr to the particle constructed from the tag vtx track indexed by trackIndex.

Definition at line 35 of file TagVertex.cc.

36{
37 if (trackIndex >= m_vtxFitParticles.size())
38 return 0;
39 return m_vtxFitParticles.at(trackIndex);
40}
std::vector< const Particle * > m_vtxFitParticles
pointers to the tracks used by rave to fit the vertex
Definition TagVertex.h:403

◆ getVtxFitTrackD0()

double getVtxFitTrackD0 ( unsigned int trackIndex) const

Returns the radial distance from the IP to the POCA of the tag track indexed by trackIndex.

Definition at line 167 of file TagVertex.cc.

168{
169 if (m_vtxFitParticles.size() <= trackIndex) return realNaN;
170 return m_vtxFitParticles.at(trackIndex)->getTrackFitResult()->getD0();
171}

◆ getVtxFitTrackP()

ROOT::Math::XYZVector getVtxFitTrackP ( unsigned int trackIndex) const

Returns the momentum vector of the tag track indexed by trackindex.

Definition at line 155 of file TagVertex.cc.

156{
157 if (m_vtxFitParticles.size() <= trackIndex) return ROOT::Math::XYZVector(realNaN, realNaN, realNaN);
158 return m_vtxFitParticles.at(trackIndex)->getMomentum();
159}

◆ getVtxFitTrackZ0()

double getVtxFitTrackZ0 ( unsigned int trackIndex) const

Returns the longitudinal distance from the IP to the POCA of the tag track indexed by trackIndex.

Definition at line 161 of file TagVertex.cc.

162{
163 if (m_vtxFitParticles.size() <= trackIndex) return realNaN;
164 return m_vtxFitParticles.at(trackIndex)->getTrackFitResult()->getZ0();
165}

◆ resetConstraintCov()

void resetConstraintCov ( )
private

Resets 3x3 constraint error matrix All elements are set to 0.0.

Definition at line 328 of file TagVertex.cc.

329{
330 TMatrixDSym temp(3);
331 m_constraintCov.ResizeTo(temp);
332 m_constraintCov = temp;
333}

◆ resetTagVertexErrorMatrix()

void resetTagVertexErrorMatrix ( )
private

Resets 3x3 tag vertex error matrix All elements are set to 0.0.

Definition at line 321 of file TagVertex.cc.

322{
323 TMatrixDSym temp(3);
324 m_tagVertexErrMatrix.ResizeTo(temp);
326}

◆ setConstraintCenter()

void setConstraintCenter ( const ROOT::Math::XYZVector & constraintCenter)

Set the centre of the constraint for the tag fit.

Definition at line 305 of file TagVertex.cc.

306{
307 m_constraintCenter = constraintCenter;
308}

◆ setConstraintCov()

void setConstraintCov ( const TMatrixDSym & constraintCov)

Set the covariance matrix of the constraint for the tag fit.

Definition at line 310 of file TagVertex.cc.

311{
312 m_constraintCov.ResizeTo(constraintCov);
313 m_constraintCov = constraintCov;
314}

◆ setConstraintType()

void setConstraintType ( const std::string & constraintType)

Set the type of the constraint for the tag fit.

Definition at line 316 of file TagVertex.cc.

317{
318 m_constraintType = constraintType;
319}

◆ setDeltaT()

void setDeltaT ( float DeltaT)

Set DeltaT.

Definition at line 204 of file TagVertex.cc.

205{
206 m_deltaT = DeltaT;
207}

◆ setDeltaTErr()

void setDeltaTErr ( float DeltaTErr)

Set DeltaTErr.

Definition at line 209 of file TagVertex.cc.

210{
211 m_deltaTErr = DeltaTErr;
212}

◆ setFitTruthStatus()

void setFitTruthStatus ( int truthStatus)

Set the status of the fit performed with the truth info of the tracks.

Definition at line 335 of file TagVertex.cc.

336{
337 m_fitTruthStatus = truthStatus;
338}

◆ setFitType()

void setFitType ( float FitType)

Set fit algo type.

Definition at line 234 of file TagVertex.cc.

235{
236 m_FitType = FitType;
237}

◆ setMCDeltaT()

void setMCDeltaT ( float mcDeltaT)

Set generated DeltaT (in kin.

approx.)

Definition at line 229 of file TagVertex.cc.

230{
231 m_mcDeltaT = mcDeltaT;
232}

◆ setMCDeltaTau()

void setMCDeltaTau ( float mcDeltaTau)

Set generated DeltaT.

Definition at line 224 of file TagVertex.cc.

225{
226 m_mcDeltaTau = mcDeltaTau;
227}

◆ setMCTagBFlavor()

void setMCTagBFlavor ( int mcTagBFlavor)

Set generated Btag PDG code.

Definition at line 219 of file TagVertex.cc.

220{
221 m_mcPDG = mcTagBFlavor;
222}

◆ setMCTagVertex()

void setMCTagVertex ( const ROOT::Math::XYZVector & mcTagVertex)

Set generated BTag Vertex.

Definition at line 214 of file TagVertex.cc.

215{
216 m_mcTagV = mcTagVertex;
217}

◆ setNTracks()

void setNTracks ( int nTracks)

Set number of tracks used in the fit.

Definition at line 239 of file TagVertex.cc.

240{
241 m_NTracks = NTracks;
242}

◆ setRaveWeights()

void setRaveWeights ( const std::vector< double > & raveWeights)

Set the weights used by Rave in the tag vtx fit.

Definition at line 300 of file TagVertex.cc.

301{
302 m_raveWeights = raveWeights;
303}

◆ setRollBackStatus()

void setRollBackStatus ( int backStatus)

Set the status of the fit performed with the rolled back tracks.

Definition at line 340 of file TagVertex.cc.

341{
342 m_rollbackStatus = backStatus;
343}

◆ setTagVChi2()

void setTagVChi2 ( float TagVChi2)

Set the chi^2 value of the tag vertex fit result.

Definition at line 279 of file TagVertex.cc.

280{
281 m_tagVChi2 = TagVChi2;
282}

◆ setTagVChi2IP()

void setTagVChi2IP ( float TagVChi2IP)

Set the IP component of the chi^2 value of the tag vertex fit result.

Definition at line 284 of file TagVertex.cc.

285{
286 m_tagVChi2IP = TagVChi2IP;
287}

◆ setTagVertex()

void setTagVertex ( const ROOT::Math::XYZVector & TagVertex)

Set BTag Vertex.

Definition at line 189 of file TagVertex.cc.

190{
191 m_tagVertex = tagVertex;
192}

◆ setTagVertexErrMatrix()

void setTagVertexErrMatrix ( const TMatrixDSym & TagVertexErrMatrix)

Set BTag Vertex (3x3) error matrix.

Definition at line 194 of file TagVertex.cc.

195{
196 m_tagVertexErrMatrix = TagVertexErrMatrix;
197}

◆ setTagVertexPval()

void setTagVertexPval ( float TagVertexPval)

Set BTag Vertex P value.

Definition at line 199 of file TagVertex.cc.

200{
201 m_tagVertexPval = TagVertexPval;
202}

◆ setTagVl()

void setTagVl ( float TagVl)

Set the tagV component in the boost direction.

Definition at line 244 of file TagVertex.cc.

245{
246 m_tagVl = TagVl;
247}

◆ setTagVlErr()

void setTagVlErr ( float TagVlErr)

Set the error of the tagV component in the boost direction.

Definition at line 254 of file TagVertex.cc.

255{
256 m_tagVlErr = TagVlErr;
257}

◆ setTagVNDF()

void setTagVNDF ( float TagVNDF)

Set the number of degrees of freedom in the tag vertex fit.

Definition at line 274 of file TagVertex.cc.

275{
276 m_tagVNDF = TagVNDF;
277}

◆ setTagVol()

void setTagVol ( float TagVol)

Set the tagV component in the direction orthogonal to the boost.

Definition at line 259 of file TagVertex.cc.

260{
261 m_tagVol = TagVol;
262}

◆ setTagVolErr()

void setTagVolErr ( float TagVolErr)

Set the error of the tagV component in the direction orthogonal to the boost.

Definition at line 269 of file TagVertex.cc.

270{
271 m_tagVolErr = TagVolErr;
272}

◆ setTruthTagVl()

void setTruthTagVl ( float TruthTagVl)

Set the MC tagV component in the boost direction.

Definition at line 249 of file TagVertex.cc.

250{
251 m_truthTagVl = TruthTagVl;
252}

◆ setTruthTagVol()

void setTruthTagVol ( float TruthTagVol)

Set the tagV component in the direction orthogonal to the boost.

Definition at line 264 of file TagVertex.cc.

265{
266 m_truthTagVol = TruthTagVol;
267}

◆ setVertexFitMCParticles()

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.

Definition at line 295 of file TagVertex.cc.

296{
297 m_vtxFitMCParticles = vtxFitMCParticles;
298}

◆ setVertexFitParticles()

void setVertexFitParticles ( const std::vector< const Particle * > & vtxFitParticles)

Set a vector of pointers to the tracks used in the tag vtx fit.

Definition at line 289 of file TagVertex.cc.

290{
291 m_vtxFitParticles = vtxFitParticles;
292 m_NFitTracks = vtxFitParticles.size();
293}

Member Data Documentation

◆ m_cacheArrayIndex [1/2]

int m_cacheArrayIndex
mutableprivateinherited

Cache of the index in the TClonesArray to which this object belongs.

Definition at line 432 of file RelationsObject.h.

◆ m_cacheArrayIndex [2/2]

int m_cacheArrayIndex
mutableprivateinherited

Cache of the index in the TClonesArray to which this object belongs.

Definition at line 432 of file RelationsObject.h.

◆ m_cacheDataStoreEntry [1/2]

DataStore::StoreEntry* m_cacheDataStoreEntry
mutableprivateinherited

Cache of the data store entry to which this object belongs.

Definition at line 429 of file RelationsObject.h.

◆ m_cacheDataStoreEntry [2/2]

DataStore::StoreEntry* m_cacheDataStoreEntry
mutableprivateinherited

Cache of the data store entry to which this object belongs.

Definition at line 429 of file RelationsObject.h.

◆ m_constraintCenter

ROOT::Math::XYZVector m_constraintCenter
private

centre of the constraint

Definition at line 408 of file TagVertex.h.

◆ m_constraintCov

TMatrixDSym m_constraintCov
private

covariance matrix associated to the constraint, ie size of the constraint

Definition at line 409 of file TagVertex.h.

◆ m_constraintType

std::string m_constraintType
private

Type of the constraint used for the tag vertex fit (noConstraint, IP, Boost, Tube)

Definition at line 407 of file TagVertex.h.

◆ m_deltaT

float m_deltaT
private

Delta t.

Definition at line 386 of file TagVertex.h.

◆ m_deltaTErr

float m_deltaTErr
private

Delta t error.

Definition at line 387 of file TagVertex.h.

◆ m_fitTruthStatus

int m_fitTruthStatus
private

status of the fit when fitted with the truth info of the tracks

Definition at line 410 of file TagVertex.h.

◆ m_FitType

int m_FitType
private

Fit algo used.

Definition at line 392 of file TagVertex.h.

◆ m_mcDeltaT

float m_mcDeltaT
private

generated Delta t approximated: true Delta L divided by Upsilon(4S)'s boost

Definition at line 391 of file TagVertex.h.

◆ m_mcDeltaTau

float m_mcDeltaTau
private

generated Delta t: difference between signal and tag flight times

Definition at line 390 of file TagVertex.h.

◆ m_mcPDG

int m_mcPDG
private

generated tag side B flavor (PDG code)

Definition at line 389 of file TagVertex.h.

◆ m_mcTagV

ROOT::Math::XYZVector m_mcTagV
private

generated Btag vertex

Definition at line 388 of file TagVertex.h.

◆ m_NFitTracks

int m_NFitTracks
private

Number of tracks used by Rave to fit the vertex.

Definition at line 405 of file TagVertex.h.

◆ m_NTracks

int m_NTracks
private

Number of tracks used in the fit.

Definition at line 393 of file TagVertex.h.

◆ m_raveWeights

std::vector<double> m_raveWeights
private

weights of each track in the Rave tag vtx fit

Definition at line 406 of file TagVertex.h.

◆ m_rollbackStatus

int m_rollbackStatus
private

status of the fit when fitted with rolled back tracks

Definition at line 411 of file TagVertex.h.

◆ m_tagVChi2

float m_tagVChi2
private

chi^2 value of the tag vertex fit result

Definition at line 401 of file TagVertex.h.

◆ m_tagVChi2IP

float m_tagVChi2IP
private

IP component of chi^2 value of the tag vertex fit result.

Definition at line 402 of file TagVertex.h.

◆ m_tagVertex

ROOT::Math::XYZVector m_tagVertex
private

Btag vertex.

Definition at line 383 of file TagVertex.h.

◆ m_tagVertexErrMatrix

TMatrixDSym m_tagVertexErrMatrix
private

Btag vertex (3x3) error matrix.

Definition at line 384 of file TagVertex.h.

◆ m_tagVertexPval

float m_tagVertexPval
private

Btag vertex P value.

Definition at line 385 of file TagVertex.h.

◆ m_tagVl

float m_tagVl
private

tagV component in the boost direction

Definition at line 394 of file TagVertex.h.

◆ m_tagVlErr

float m_tagVlErr
private

Error of the tagV component in the boost direction.

Definition at line 396 of file TagVertex.h.

◆ m_tagVNDF

float m_tagVNDF
private

Number of degrees of freedom in the tag vertex fit.

Definition at line 400 of file TagVertex.h.

◆ m_tagVol

float m_tagVol
private

tagV component in the direction orthogonal to the boost

Definition at line 397 of file TagVertex.h.

◆ m_tagVolErr

float m_tagVolErr
private

Error of the tagV component in the direction orthogonal to the boost.

Definition at line 399 of file TagVertex.h.

◆ m_truthTagVl

float m_truthTagVl
private

MC tagV component in the boost direction.

Definition at line 395 of file TagVertex.h.

◆ m_truthTagVol

float m_truthTagVol
private

MC tagV component in the direction orthogonal to the boost.

Definition at line 398 of file TagVertex.h.

◆ m_vtxFitMCParticles

std::vector<const MCParticle*> m_vtxFitMCParticles
private

pointers to the MC p'cles corresponding to the tracks in the tag vtx fit

Definition at line 404 of file TagVertex.h.

◆ m_vtxFitParticles

std::vector<const Particle*> m_vtxFitParticles
private

pointers to the tracks used by rave to fit the vertex

Definition at line 403 of file TagVertex.h.


The documentation for this class was generated from the following files: