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 33 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 41 of file TagVertex.h.

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

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 87 of file TagVertex.cc.

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

◆ getConstraintCov()

TMatrixDSym getConstraintCov ( ) const

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

Definition at line 93 of file TagVertex.cc.

94{
95 return m_constraintCov;
96}
TMatrixDSym m_constraintCov
covariance matrix associated to the constraint, ie size of the constraint
Definition TagVertex.h:413

◆ getConstraintType()

std::string getConstraintType ( ) const

get the constraint type used in the tag fit

Definition at line 82 of file TagVertex.cc.

83{
84 return m_constraintType;
85}

◆ getDeltaT()

float getDeltaT ( ) const

Returns DeltaT.

Definition at line 47 of file TagVertex.cc.

48{
49 return m_deltaT;
50}
float m_deltaT
Delta t.
Definition TagVertex.h:390

◆ getDeltaTErr()

float getDeltaTErr ( ) const

Returns DeltaTErr.

Definition at line 52 of file TagVertex.cc.

53{
54 return m_deltaTErr;
55}
float m_deltaTErr
Delta t error.
Definition TagVertex.h:391

◆ getFitTruthStatus()

int getFitTruthStatus ( ) const

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

Definition at line 177 of file TagVertex.cc.

178{
179 return m_fitTruthStatus;
180}
int m_fitTruthStatus
status of the fit when fitted with the truth info of the tracks
Definition TagVertex.h:414

◆ getFitType()

int getFitType ( ) const

Returns fit algo type.

Definition at line 77 of file TagVertex.cc.

78{
79 return m_FitType;
80}
int m_FitType
Fit algo used.
Definition TagVertex.h:396

◆ 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 72 of file TagVertex.cc.

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

◆ getMCDeltaTau()

float getMCDeltaTau ( ) const

Returns generated DeltaTau.

Definition at line 67 of file TagVertex.cc.

68{
69 return m_mcDeltaTau;
70}
float m_mcDeltaTau
generated Delta t: difference between signal and tag flight times
Definition TagVertex.h:394

◆ getMCTagBFlavor()

int getMCTagBFlavor ( ) const

Returns generated Btag PDG code.

Definition at line 62 of file TagVertex.cc.

63{
64 return m_mcPDG;
65}
int m_mcPDG
generated tag side B flavor (PDG code)
Definition TagVertex.h:393

◆ getMCTagVertex()

ROOT::Math::XYZVector getMCTagVertex ( ) const

Returns generated BTag Vertex.

Definition at line 57 of file TagVertex.cc.

58{
59 return m_mcTagV;
60}
ROOT::Math::XYZVector m_mcTagV
generated Btag vertex
Definition TagVertex.h:392

◆ 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 103 of file TagVertex.cc.

104{
105 return m_NFitTracks;
106}
int m_NFitTracks
Number of tracks used by Rave to fit the vertex.
Definition TagVertex.h:409

◆ getNTracks()

int getNTracks ( ) const

Returns number of tracks used in the fit.

Definition at line 98 of file TagVertex.cc.

99{
100 return m_NTracks;
101}
int m_NTracks
Number of tracks used in the fit.
Definition TagVertex.h:397

◆ getRaveWeight()

double getRaveWeight ( unsigned int trackIndex) const

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

Definition at line 171 of file TagVertex.cc.

172{
173 if (m_raveWeights.size() <= trackIndex) return realNaN;
174 return m_raveWeights.at(trackIndex);
175}
std::vector< double > m_raveWeights
weights of each track in the Rave tag vtx fit
Definition TagVertex.h:410
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 182 of file TagVertex.cc.

183{
184 return m_rollbackStatus;
185}
int m_rollbackStatus
status of the fit when fitted with rolled back tracks
Definition TagVertex.h:415

◆ getTagVChi2()

float getTagVChi2 ( ) const

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

Definition at line 143 of file TagVertex.cc.

144{
145 return m_tagVChi2;
146}
float m_tagVChi2
chi^2 value of the tag vertex fit result
Definition TagVertex.h:405

◆ getTagVChi2IP()

float getTagVChi2IP ( ) const

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

Definition at line 148 of file TagVertex.cc.

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

◆ getTagVertex()

ROOT::Math::XYZVector getTagVertex ( ) const

Returns BTag Vertex.

Definition at line 18 of file TagVertex.cc.

19{
20 return m_tagVertex;
21}
ROOT::Math::XYZVector m_tagVertex
Btag vertex.
Definition TagVertex.h:387

◆ getTagVertexErrMatrix()

TMatrixDSym getTagVertexErrMatrix ( ) const

Returns BTag Vertex (3x3) error matrix.

Definition at line 23 of file TagVertex.cc.

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

◆ getTagVertexPval()

float getTagVertexPval ( ) const

Returns BTag Vertex P value.

Definition at line 28 of file TagVertex.cc.

29{
30 return m_tagVertexPval;
31}
float m_tagVertexPval
Btag vertex P value.
Definition TagVertex.h:389

◆ getTagVl()

float getTagVl ( ) const

Returns the tagV component in the boost direction.

Definition at line 108 of file TagVertex.cc.

109{
110 return m_tagVl;
111}
float m_tagVl
tagV component in the boost direction
Definition TagVertex.h:398

◆ getTagVlErr()

float getTagVlErr ( ) const

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

Definition at line 118 of file TagVertex.cc.

119{
120 return m_tagVlErr;
121}
float m_tagVlErr
Error of the tagV component in the boost direction.
Definition TagVertex.h:400

◆ getTagVNDF()

float getTagVNDF ( ) const

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

Definition at line 138 of file TagVertex.cc.

139{
140 return m_tagVNDF;
141}
float m_tagVNDF
Number of degrees of freedom in the tag vertex fit.
Definition TagVertex.h:404

◆ getTagVol()

float getTagVol ( ) const

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

Definition at line 123 of file TagVertex.cc.

124{
125 return m_tagVol;
126}
float m_tagVol
tagV component in the direction orthogonal to the boost
Definition TagVertex.h:401

◆ getTagVolErr()

float getTagVolErr ( ) const

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

Definition at line 133 of file TagVertex.cc.

134{
135 return m_tagVolErr;
136}
float m_tagVolErr
Error of the tagV component in the direction orthogonal to the boost.
Definition TagVertex.h:403

◆ getTruthTagVl()

float getTruthTagVl ( ) const

Returns the MC tagV component in the boost direction.

Definition at line 113 of file TagVertex.cc.

114{
115 return m_truthTagVl;
116}
float m_truthTagVl
MC tagV component in the boost direction.
Definition TagVertex.h:399

◆ getTruthTagVol()

float getTruthTagVol ( ) const

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

Definition at line 128 of file TagVertex.cc.

129{
130 return m_truthTagVol;
131}
float m_truthTagVol
MC tagV component in the direction orthogonal to the boost.
Definition TagVertex.h:402

◆ 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 40 of file TagVertex.cc.

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

◆ 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 33 of file TagVertex.cc.

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

◆ 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 165 of file TagVertex.cc.

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

◆ getVtxFitTrackP()

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

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

Definition at line 153 of file TagVertex.cc.

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

◆ 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 159 of file TagVertex.cc.

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

◆ resetConstraintCov()

void resetConstraintCov ( )
private

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

Definition at line 326 of file TagVertex.cc.

327{
328 TMatrixDSym temp(3);
329 m_constraintCov.ResizeTo(temp);
330 m_constraintCov = temp;
331}

◆ resetTagVertexErrorMatrix()

void resetTagVertexErrorMatrix ( )
private

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

Definition at line 319 of file TagVertex.cc.

320{
321 TMatrixDSym temp(3);
322 m_tagVertexErrMatrix.ResizeTo(temp);
324}

◆ setConstraintCenter()

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

Set the centre of the constraint for the tag fit.

Definition at line 303 of file TagVertex.cc.

304{
305 m_constraintCenter = constraintCenter;
306}

◆ setConstraintCov()

void setConstraintCov ( const TMatrixDSym & constraintCov)

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

Definition at line 308 of file TagVertex.cc.

309{
310 m_constraintCov.ResizeTo(constraintCov);
311 m_constraintCov = constraintCov;
312}

◆ setConstraintType()

void setConstraintType ( const std::string & constraintType)

Set the type of the constraint for the tag fit.

Definition at line 314 of file TagVertex.cc.

315{
316 m_constraintType = constraintType;
317}

◆ setDeltaT()

void setDeltaT ( float DeltaT)

Set DeltaT.

Definition at line 202 of file TagVertex.cc.

203{
204 m_deltaT = DeltaT;
205}

◆ setDeltaTErr()

void setDeltaTErr ( float DeltaTErr)

Set DeltaTErr.

Definition at line 207 of file TagVertex.cc.

208{
209 m_deltaTErr = DeltaTErr;
210}

◆ setFitTruthStatus()

void setFitTruthStatus ( int truthStatus)

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

Definition at line 333 of file TagVertex.cc.

334{
335 m_fitTruthStatus = truthStatus;
336}

◆ setFitType()

void setFitType ( float FitType)

Set fit algo type.

Definition at line 232 of file TagVertex.cc.

233{
234 m_FitType = FitType;
235}

◆ setMCDeltaT()

void setMCDeltaT ( float mcDeltaT)

Set generated DeltaT (in kin.

approx.)

Definition at line 227 of file TagVertex.cc.

228{
229 m_mcDeltaT = mcDeltaT;
230}

◆ setMCDeltaTau()

void setMCDeltaTau ( float mcDeltaTau)

Set generated DeltaT.

Definition at line 222 of file TagVertex.cc.

223{
224 m_mcDeltaTau = mcDeltaTau;
225}

◆ setMCTagBFlavor()

void setMCTagBFlavor ( int mcTagBFlavor)

Set generated Btag PDG code.

Definition at line 217 of file TagVertex.cc.

218{
219 m_mcPDG = mcTagBFlavor;
220}

◆ setMCTagVertex()

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

Set generated BTag Vertex.

Definition at line 212 of file TagVertex.cc.

213{
214 m_mcTagV = mcTagVertex;
215}

◆ setNTracks()

void setNTracks ( int nTracks)

Set number of tracks used in the fit.

Definition at line 237 of file TagVertex.cc.

238{
239 m_NTracks = NTracks;
240}

◆ setRaveWeights()

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

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

Definition at line 298 of file TagVertex.cc.

299{
300 m_raveWeights = raveWeights;
301}

◆ setRollBackStatus()

void setRollBackStatus ( int backStatus)

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

Definition at line 338 of file TagVertex.cc.

339{
340 m_rollbackStatus = backStatus;
341}

◆ setTagVChi2()

void setTagVChi2 ( float TagVChi2)

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

Definition at line 277 of file TagVertex.cc.

278{
279 m_tagVChi2 = TagVChi2;
280}

◆ setTagVChi2IP()

void setTagVChi2IP ( float TagVChi2IP)

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

Definition at line 282 of file TagVertex.cc.

283{
284 m_tagVChi2IP = TagVChi2IP;
285}

◆ setTagVertex()

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

Set BTag Vertex.

Definition at line 187 of file TagVertex.cc.

188{
189 m_tagVertex = tagVertex;
190}

◆ setTagVertexErrMatrix()

void setTagVertexErrMatrix ( const TMatrixDSym & TagVertexErrMatrix)

Set BTag Vertex (3x3) error matrix.

Definition at line 192 of file TagVertex.cc.

193{
194 m_tagVertexErrMatrix = TagVertexErrMatrix;
195}

◆ setTagVertexPval()

void setTagVertexPval ( float TagVertexPval)

Set BTag Vertex P value.

Definition at line 197 of file TagVertex.cc.

198{
199 m_tagVertexPval = TagVertexPval;
200}

◆ setTagVl()

void setTagVl ( float TagVl)

Set the tagV component in the boost direction.

Definition at line 242 of file TagVertex.cc.

243{
244 m_tagVl = TagVl;
245}

◆ setTagVlErr()

void setTagVlErr ( float TagVlErr)

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

Definition at line 252 of file TagVertex.cc.

253{
254 m_tagVlErr = TagVlErr;
255}

◆ setTagVNDF()

void setTagVNDF ( float TagVNDF)

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

Definition at line 272 of file TagVertex.cc.

273{
274 m_tagVNDF = TagVNDF;
275}

◆ setTagVol()

void setTagVol ( float TagVol)

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

Definition at line 257 of file TagVertex.cc.

258{
259 m_tagVol = TagVol;
260}

◆ setTagVolErr()

void setTagVolErr ( float TagVolErr)

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

Definition at line 267 of file TagVertex.cc.

268{
269 m_tagVolErr = TagVolErr;
270}

◆ setTruthTagVl()

void setTruthTagVl ( float TruthTagVl)

Set the MC tagV component in the boost direction.

Definition at line 247 of file TagVertex.cc.

248{
249 m_truthTagVl = TruthTagVl;
250}

◆ setTruthTagVol()

void setTruthTagVol ( float TruthTagVol)

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

Definition at line 262 of file TagVertex.cc.

263{
264 m_truthTagVol = TruthTagVol;
265}

◆ 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 293 of file TagVertex.cc.

294{
295 m_vtxFitMCParticles = vtxFitMCParticles;
296}

◆ 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 287 of file TagVertex.cc.

288{
289 m_vtxFitParticles = vtxFitParticles;
290 m_NFitTracks = vtxFitParticles.size();
291}

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 412 of file TagVertex.h.

◆ m_constraintCov

TMatrixDSym m_constraintCov
private

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

Definition at line 413 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 411 of file TagVertex.h.

◆ m_deltaT

float m_deltaT
private

Delta t.

Definition at line 390 of file TagVertex.h.

◆ m_deltaTErr

float m_deltaTErr
private

Delta t error.

Definition at line 391 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 414 of file TagVertex.h.

◆ m_FitType

int m_FitType
private

Fit algo used.

Definition at line 396 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 395 of file TagVertex.h.

◆ m_mcDeltaTau

float m_mcDeltaTau
private

generated Delta t: difference between signal and tag flight times

Definition at line 394 of file TagVertex.h.

◆ m_mcPDG

int m_mcPDG
private

generated tag side B flavor (PDG code)

Definition at line 393 of file TagVertex.h.

◆ m_mcTagV

ROOT::Math::XYZVector m_mcTagV
private

generated Btag vertex

Definition at line 392 of file TagVertex.h.

◆ m_NFitTracks

int m_NFitTracks
private

Number of tracks used by Rave to fit the vertex.

Definition at line 409 of file TagVertex.h.

◆ m_NTracks

int m_NTracks
private

Number of tracks used in the fit.

Definition at line 397 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 410 of file TagVertex.h.

◆ m_rollbackStatus

int m_rollbackStatus
private

status of the fit when fitted with rolled back tracks

Definition at line 415 of file TagVertex.h.

◆ m_tagVChi2

float m_tagVChi2
private

chi^2 value of the tag vertex fit result

Definition at line 405 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 406 of file TagVertex.h.

◆ m_tagVertex

ROOT::Math::XYZVector m_tagVertex
private

Btag vertex.

Definition at line 387 of file TagVertex.h.

◆ m_tagVertexErrMatrix

TMatrixDSym m_tagVertexErrMatrix
private

Btag vertex (3x3) error matrix.

Definition at line 388 of file TagVertex.h.

◆ m_tagVertexPval

float m_tagVertexPval
private

Btag vertex P value.

Definition at line 389 of file TagVertex.h.

◆ m_tagVl

float m_tagVl
private

tagV component in the boost direction

Definition at line 398 of file TagVertex.h.

◆ m_tagVlErr

float m_tagVlErr
private

Error of the tagV component in the boost direction.

Definition at line 400 of file TagVertex.h.

◆ m_tagVNDF

float m_tagVNDF
private

Number of degrees of freedom in the tag vertex fit.

Definition at line 404 of file TagVertex.h.

◆ m_tagVol

float m_tagVol
private

tagV component in the direction orthogonal to the boost

Definition at line 401 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 403 of file TagVertex.h.

◆ m_truthTagVl

float m_truthTagVl
private

MC tagV component in the boost direction.

Definition at line 399 of file TagVertex.h.

◆ m_truthTagVol

float m_truthTagVol
private

MC tagV component in the direction orthogonal to the boost.

Definition at line 402 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 408 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 407 of file TagVertex.h.


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