Belle II Software  release-05-02-19
FlavorTaggerInfo Class Reference

This class stores the relevant information for the TagV vertex fit, extracted mainly from the Flavor Tagging Module. More...

#include <FlavorTaggerInfo.h>

Inheritance diagram for FlavorTaggerInfo:
Collaboration diagram for FlavorTaggerInfo:

Public Member Functions

 FlavorTaggerInfo ()
 Default constructor. More...
 
void setUseModeFlavorTagger (const std::string &mode)
 SETTERS Some of the setters are expected to fill a vector whose each element corresponds to a given category in the following order: Electron, Muon, Kinetic Lepton, Kaon, Slow Pion, Fast Pion, Lambda, Highest Momentum The setting of all elements need to be performed in a loop. More...
 
void addMethodMap (const std::string &method)
 Saves the method and the correspondig FlavorTaggerMap. More...
 
void setTrack (Belle2::Track *track)
 Vector filler: Set the pointer of the track with the highest probability for each category. More...
 
void setParticle (Particle *Particle)
 Vector filler: Set the pointer of the Partcile related to the track with the highest probability for each category. More...
 
void setMCParticle (Belle2::MCParticle *MCParticle)
 Vector filler: Set the pointer of the MCParticle related related to track with the highest probability for each category. More...
 
void setMCParticleMother (Belle2::MCParticle *MCParticle)
 Vector filler: Set the pointer of the MCParticle's mother related to the track with the highest probability for each category. More...
 
void setCatProb (float catProb)
 Vector filler: Set the probability of the event to correspond to a given category probability for each category. More...
 
void setTargProb (float)
 Vector filler: Set the probability of each category's track of being a direct daughter of the Btag. More...
 
void setP (float momentum)
 Vector filler: Set the momentum absolute value of the corresponding category's track. More...
 
void setIsFromB (int isFromB)
 Vector filler: Set the MC matched code of the track depending on its mother (usually set in TagV module) Quick reference: 0 - does not come from the B 1,2,3,4 - come from an immediately decaying daughter of the B (number depends on the PDG code of each meson) 5 - come directly from the B

5 - come from a chain of immediately decaying daugthers of the B (11 - 14: one step, 21-24: two steps...)

More...
 
void setCategories (const std::string &catName)
 Vector filler: Set the name of the categories. More...
 
void setD0 (double D0)
 Vector filler: Set the impact parameter D0 of each track in an accesible way. More...
 
void setZ0 (double Z0)
 Vector filler: Set the impact parameter Z0 of each track in an accesible way. More...
 
void setProdPointResolutionZ (float deltaProdZ)
 Vector filler: Set resolution of the production point of each track, i.e real production point - MC matched production point. More...
 
void setGoodTracksPurityFT (float goodTracksPurity)
 Set the fraction of tracks coming from the Btag respect to the total amount of tracks within this class. More...
 
void setGoodTracksPurityROE (float goodTracksPurity)
 Set the fraction of tracks coming from the Btag respect to the total amount of tracks within RoE. More...
 
void setGoodTracksROE (int numTracks)
 Set the number of tracks coming from the Btag in the RoE. More...
 
void setBadTracksROE (int numTracks)
 Set the number of tracks coming not from the Btag in the RoE. More...
 
void setGoodTracksFT (int numTracks)
 Set the number of tracks coming from the Btag within this class. More...
 
void setBadTracksFT (int numTracks)
 Set the number of tracks not coming from the Btag within this class. More...
 
std::string getUseModeFlavorTagger ()
 GETTERS. More...
 
FlavorTaggerInfoMapgetMethodMap (const std::string &method)
 method used for the FlavorTagger and corresponding FlavorTaggerInfoMap More...
 
bool isMethodInMap (const std::string &method)
 checks if the given method method is used for the FlavorTagger with a corresponding FlavorTaggerInfoMap More...
 
std::vector< Belle2::Track * > getTracks ()
 Get all the tracks. More...
 
Belle2::TrackgetTrack (int position)
 Get a single track. More...
 
std::vector< float > getCatProb ()
 Get all the event probabilities to correspond to each category. More...
 
std::vector< float > getTargProb ()
 Get all the track probabilities to come directly from the Btag for each category. More...
 
std::vector< float > getP ()
 Get the momentum of every category's track. More...
 
std::vector< Particle * > getParticle ()
 Get the particle's pointer related to each track. More...
 
std::vector< Belle2::MCParticle * > getMCParticle ()
 Get the MC particle's pointer related to each track. More...
 
std::vector< Belle2::MCParticle * > getMCParticleMother ()
 Get the mother MC particle's pointer related to each track. More...
 
std::vector< float > getD0 ()
 Get the impact parameter D0 of every category's track. More...
 
std::vector< float > getZ0 ()
 Get the impact parameter Z0 of every category's track. More...
 
std::vector< int > getIsFromB ()
 Get the MC matched code of every track depending on its mother. More...
 
std::vector< std::string > getCategories ()
 Get the list of names of the categories of this object. More...
 
std::vector< float > getProdPointResolutionZ ()
 Get resolution of the production point of each track, i.e real production point - MC matched production point. More...
 
float getGoodTracksPurityFT ()
 Get the ratio (purity) of tracks coming from the Btag out of the total amount of tracks within this object. More...
 
float getGoodTracksPurityROE ()
 Get the ratio (purity) of tracks coming from the Btag out of the total amount of tracks within the correspondent RestOfEvent object. More...
 
int getBadTracksROE ()
 Get the number of tracks not coming from the Btag within the correspondent RestOfEvent object. More...
 
int getGoodTracksROE ()
 Get the number of tracks coming from the Btag within the correspondent RestOfEvent object. More...
 
int getBadTracksFT ()
 Get the number of tracks not coming from the Btag within this object. More...
 
int getGoodTracksFT ()
 Get the number of tracks not coming from the Btag within this object. More...
 
void addRelationTo (const RelationsInterface< BASE > *object, float weight=1.0, const std::string &namedRelation="") const
 Add a relation from this object to another object (with caching). More...
 
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). More...
 
void copyRelations (const RelationsInterface< BASE > *sourceObj)
 Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights). More...
 
template<class TO >
RelationVector< TO > getRelationsTo (const std::string &name="", const std::string &namedRelation="") const
 Get the relations that point from this object to another store array. More...
 
template<class FROM >
RelationVector< FROM > getRelationsFrom (const std::string &name="", const std::string &namedRelation="") const
 Get the relations that point from another store array to this object. More...
 
template<class T >
RelationVector< T > getRelationsWith (const std::string &name="", const std::string &namedRelation="") const
 Get the relations between this object and another store array. More...
 
template<class TO >
TO * getRelatedTo (const std::string &name="", const std::string &namedRelation="") const
 Get the object to which this object has a relation. More...
 
template<class FROM >
FROM * getRelatedFrom (const std::string &name="", const std::string &namedRelation="") const
 Get the object from which this object has a relation. More...
 
template<class T >
T * getRelated (const std::string &name="", const std::string &namedRelation="") const
 Get the object to or from which this object has a relation. More...
 
template<class TO >
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. More...
 
template<class FROM >
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. More...
 
template<class T >
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. More...
 
virtual std::string getName () const
 Return a short name that describes this object, e.g. More...
 
virtual std::string getInfoHTML () const
 Return a short summary of this object's contents in HTML format. More...
 
std::string getInfo () const
 Return a short summary of this object's contents in raw text format. More...
 
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.
 

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).
 

Private Member Functions

 ClassDef (RelationsInterface, 0)
 defines interface for accessing relations of objects in StoreArray.
 

Private Attributes

std::string m_useModeFlavorTagger
 Usemode of the FlavorTagger: "Teacher" or "Expert".
 
std::map< std::string, FlavorTaggerInfoMap * > m_methodMap
 Map containing the methods used for the FlavorTagger: "TMVA" or "FANN", and the corresponding map.
 
std::vector< Belle2::Track * > m_tracks
 highest probability track for each category
 
std::vector< Particle * > m_particle
 particle pointer related to each track
 
std::vector< Belle2::MCParticle * > m_MCparticle
 MC particle pointer related to each track.
 
std::vector< Belle2::MCParticle * > m_MCparticle_mother
 mother MC particle pointer related to each track
 
std::vector< float > m_D0
 impact parameter D0 related to each track
 
std::vector< float > m_Z0
 impact parameter Z0 related to each track
 
std::vector< std::string > m_categories
 categories name
 
std::vector< float > m_prodPointResZ
 production point resolution Z for each track
 
std::vector< float > m_categoryProb
 probability of the event to belong to each category
 
std::vector< float > m_targetProb
 probability of each track to be primary
 
std::vector< float > m_P
 absolute 3 momentum of each track
 
std::vector< int > m_isFromB
 MC matched code of each track depending on its mother.
 
float m_goodTracksPurityFT
 purity of tracks coming from the Btag in this objecy
 
float m_goodTracksPurityROE
 purity of tracks coming from the Btag in the correspondent RestOfEvent object
 
int m_badTracksROE
 number of tracksc not coming from Btag in the correspondent RestOfEvent object
 
int m_goodTracksROE
 number of tracksc coming from Btag in the correspondent RestOfEvent
 
int m_badTracksFT
 number of tracksc not coming from Btag in this object
 
int m_goodTracksFT
 number of tracksc coming from Btag in this object
 
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.
 

Detailed Description

This class stores the relevant information for the TagV vertex fit, extracted mainly from the Flavor Tagging Module.

It also stores MC true information that could be used to check the goodness of the fit.

The way the information is stored is into vectors with the same length. Every position in all vectors correspond to the same event-category information, so that every category is uniquely correlated to one, e.g, track. Variables stored:

  • Track's probability of being a Btag daughter for every category
  • Highest probability track's pointer
  • Track's probability to belong to a given category
  • MC information obtained in the TagV module

This class is still in an early phase, thus some changes may be needed.

Definition at line 57 of file FlavorTaggerInfo.h.

Constructor & Destructor Documentation

◆ FlavorTaggerInfo()

FlavorTaggerInfo ( )
inline

Default constructor.

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

Definition at line 65 of file FlavorTaggerInfo.h.

Member Function Documentation

◆ addMethodMap()

void addMethodMap ( const std::string &  method)

Saves the method and the correspondig FlavorTaggerMap.

Parameters
method"TMVA" or "FANN".

Definition at line 31 of file FlavorTaggerInfo.cc.

32 {
33  StoreArray<FlavorTaggerInfoMap> flavTagInfoMap;
34  if (m_methodMap.find(method) == m_methodMap.end()) {
35  // create FlavorTaggerInfoMap object
36 
37  FlavorTaggerInfoMap* flavTagMap = flavTagInfoMap.appendNew();
38  m_methodMap.insert(std::pair<std::string, FlavorTaggerInfoMap*>(method, flavTagMap));
39 
40  } else {
41  B2INFO("Method " << method << " already added. ");
42  }
43 }

◆ addRelationTo() [1/2]

void addRelationTo ( const RelationsInterface< BASE > *  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 144 of file RelationsObject.h.

◆ addRelationTo() [2/2]

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 157 of file RelationsObject.h.

◆ copyRelations()

void copyRelations ( const RelationsInterface< BASE > *  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 172 of file RelationsObject.h.

◆ getBadTracksFT()

int getBadTracksFT ( )

Get the number of tracks not coming from the Btag within this object.

Returns
number of tracks

Definition at line 270 of file FlavorTaggerInfo.cc.

◆ getBadTracksROE()

int getBadTracksROE ( )

Get the number of tracks not coming from the Btag within the correspondent RestOfEvent object.

Returns
number of tracks

Definition at line 260 of file FlavorTaggerInfo.cc.

◆ getCategories()

std::vector< std::string > getCategories ( )

Get the list of names of the categories of this object.

Returns
vector of names

Definition at line 282 of file FlavorTaggerInfo.cc.

◆ getCatProb()

std::vector< float > getCatProb ( )

Get all the event probabilities to correspond to each category.

Returns
vector of event probabilities

Definition at line 183 of file FlavorTaggerInfo.cc.

◆ getD0()

std::vector< float > getD0 ( )

Get the impact parameter D0 of every category's track.

Returns
vector of D0

Definition at line 222 of file FlavorTaggerInfo.cc.

◆ getGoodTracksFT()

int getGoodTracksFT ( )

Get the number of tracks not coming from the Btag within this object.

Returns
number of tracks

Definition at line 265 of file FlavorTaggerInfo.cc.

◆ getGoodTracksPurityFT()

float getGoodTracksPurityFT ( )

Get the ratio (purity) of tracks coming from the Btag out of the total amount of tracks within this object.

Returns
Primary tracks purity

Definition at line 243 of file FlavorTaggerInfo.cc.

◆ getGoodTracksPurityROE()

float getGoodTracksPurityROE ( )

Get the ratio (purity) of tracks coming from the Btag out of the total amount of tracks within the correspondent RestOfEvent object.

Returns
Primary tracks purity

Definition at line 249 of file FlavorTaggerInfo.cc.

◆ getGoodTracksROE()

int getGoodTracksROE ( )

Get the number of tracks coming from the Btag within the correspondent RestOfEvent object.

Returns
number of tracks

Definition at line 255 of file FlavorTaggerInfo.cc.

◆ getInfo()

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 372 of file RelationsObject.h.

◆ getInfoHTML()

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 TrackFitResult, TRGSummary, Track, SoftwareTriggerResult, Particle, RecoTrack, MCParticle, Cluster, and PIDLikelihood.

Definition at line 364 of file RelationsObject.h.

◆ getIsFromB()

std::vector< int > getIsFromB ( )

Get the MC matched code of every track depending on its mother.

Code explained in the setter

Returns
vector of codes

Definition at line 237 of file FlavorTaggerInfo.cc.

◆ getMCParticle()

std::vector< MCParticle * > getMCParticle ( )

Get the MC particle's pointer related to each track.

Returns
vector of particle pointers

Definition at line 203 of file FlavorTaggerInfo.cc.

◆ getMCParticleMother()

std::vector< MCParticle * > getMCParticleMother ( )

Get the mother MC particle's pointer related to each track.

Returns
vector of particle pointers

Definition at line 208 of file FlavorTaggerInfo.cc.

◆ getMethodMap()

FlavorTaggerInfoMap * getMethodMap ( const std::string &  method)

method used for the FlavorTagger and corresponding FlavorTaggerInfoMap

Parameters
method"TMVA" or "FANN".
Returns
FlavorTaggerInfoMap with all FlavorTagger Information

Definition at line 163 of file FlavorTaggerInfo.cc.

◆ getName()

virtual std::string getName ( ) const
inlinevirtualinherited

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

pi+ for an MCParticle.

Reimplemented in SpacePoint, Particle, and MCParticle.

Definition at line 346 of file RelationsObject.h.

◆ getP()

std::vector< float > getP ( )

Get the momentum of every category's track.

Returns
vector momentum

Definition at line 193 of file FlavorTaggerInfo.cc.

◆ getParticle()

std::vector< Particle * > getParticle ( )

Get the particle's pointer related to each track.

Returns
vector of particle pointers

Definition at line 198 of file FlavorTaggerInfo.cc.

◆ getProdPointResolutionZ()

std::vector< float > getProdPointResolutionZ ( )

Get resolution of the production point of each track, i.e real production point - MC matched production point.

Returns
vector of production point resolutions

Definition at line 276 of file FlavorTaggerInfo.cc.

◆ getRelated()

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 280 of file RelationsObject.h.

◆ getRelatedFrom()

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 265 of file RelationsObject.h.

◆ getRelatedFromWithWeight()

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 316 of file RelationsObject.h.

◆ getRelatedTo()

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 250 of file RelationsObject.h.

◆ getRelatedToWithWeight()

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 299 of file RelationsObject.h.

◆ getRelatedWithWeight()

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 333 of file RelationsObject.h.

◆ getRelationsFrom()

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 214 of file RelationsObject.h.

◆ getRelationsTo()

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 199 of file RelationsObject.h.

◆ getRelationsWith()

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 232 of file RelationsObject.h.

◆ getTargProb()

std::vector< float > getTargProb ( )

Get all the track probabilities to come directly from the Btag for each category.

Returns
vector of track probabilities

Definition at line 188 of file FlavorTaggerInfo.cc.

◆ getTrack()

Track * getTrack ( int  position)

Get a single track.

Returns
track
Parameters
positioninteger corresponding to the position of the desired track

Definition at line 232 of file FlavorTaggerInfo.cc.

◆ getTracks()

std::vector< Track * > getTracks ( )

Get all the tracks.

Returns
vector of tracks

Definition at line 213 of file FlavorTaggerInfo.cc.

◆ getUseModeFlavorTagger()

std::string getUseModeFlavorTagger ( )

GETTERS.

usemode of the FlavorTagger

Returns
mode "Teacher" or "Expert"

Definition at line 158 of file FlavorTaggerInfo.cc.

◆ getZ0()

std::vector< float > getZ0 ( )

Get the impact parameter Z0 of every category's track.

Returns
vector of Z0

Definition at line 227 of file FlavorTaggerInfo.cc.

◆ isMethodInMap()

bool isMethodInMap ( const std::string &  method)

checks if the given method method is used for the FlavorTagger with a corresponding FlavorTaggerInfoMap

Parameters
method"TMVA" or "FANN".
Returns
True if the given method is in the FlavorTaggerInfo

Definition at line 173 of file FlavorTaggerInfo.cc.

◆ setBadTracksFT()

void setBadTracksFT ( int  numTracks)

Set the number of tracks not coming from the Btag within this class.

Parameters
numTracks

Definition at line 128 of file FlavorTaggerInfo.cc.

◆ setBadTracksROE()

void setBadTracksROE ( int  numTracks)

Set the number of tracks coming not from the Btag in the RoE.

Parameters
numTracks

Definition at line 118 of file FlavorTaggerInfo.cc.

◆ setCategories()

void setCategories ( const std::string &  catName)

Vector filler: Set the name of the categories.

Parameters
catNamename of each category

Definition at line 149 of file FlavorTaggerInfo.cc.

◆ setCatProb()

void setCatProb ( float  catProb)

Vector filler: Set the probability of the event to correspond to a given category probability for each category.

Parameters
catProbcategory probability

Definition at line 52 of file FlavorTaggerInfo.cc.

◆ setD0()

void setD0 ( double  D0)

Vector filler: Set the impact parameter D0 of each track in an accesible way.

Parameters
D0impact parameter

Definition at line 139 of file FlavorTaggerInfo.cc.

◆ setGoodTracksFT()

void setGoodTracksFT ( int  numTracks)

Set the number of tracks coming from the Btag within this class.

Parameters
numTracks

Definition at line 123 of file FlavorTaggerInfo.cc.

◆ setGoodTracksPurityFT()

void setGoodTracksPurityFT ( float  goodTracksPurity)

Set the fraction of tracks coming from the Btag respect to the total amount of tracks within this class.

Parameters
goodTracksPurityfraction E [0,1]

Definition at line 103 of file FlavorTaggerInfo.cc.

◆ setGoodTracksPurityROE()

void setGoodTracksPurityROE ( float  goodTracksPurity)

Set the fraction of tracks coming from the Btag respect to the total amount of tracks within RoE.

Parameters
goodTracksPurityfraction E [0,1]

Definition at line 108 of file FlavorTaggerInfo.cc.

◆ setGoodTracksROE()

void setGoodTracksROE ( int  numTracks)

Set the number of tracks coming from the Btag in the RoE.

Parameters
numTracks

Definition at line 113 of file FlavorTaggerInfo.cc.

◆ setIsFromB()

void setIsFromB ( int  isFromB)

Vector filler: Set the MC matched code of the track depending on its mother (usually set in TagV module) Quick reference: 0 - does not come from the B 1,2,3,4 - come from an immediately decaying daughter of the B (number depends on the PDG code of each meson) 5 - come directly from the B

5 - come from a chain of immediately decaying daugthers of the B (11 - 14: one step, 21-24: two steps...)

Parameters
isFromBMC matched code

Definition at line 98 of file FlavorTaggerInfo.cc.

◆ setMCParticle()

void setMCParticle ( Belle2::MCParticle MCParticle)

Vector filler: Set the pointer of the MCParticle related related to track with the highest probability for each category.

Parameters
MCParticlepointer to MCParticle object

Definition at line 78 of file FlavorTaggerInfo.cc.

◆ setMCParticleMother()

void setMCParticleMother ( Belle2::MCParticle MCParticle)

Vector filler: Set the pointer of the MCParticle's mother related to the track with the highest probability for each category.

Parameters
MCParticlepointer to MCParticle object

Definition at line 88 of file FlavorTaggerInfo.cc.

◆ setP()

void setP ( float  momentum)

Vector filler: Set the momentum absolute value of the corresponding category's track.

Parameters
momentummomentum

Definition at line 63 of file FlavorTaggerInfo.cc.

◆ setParticle()

void setParticle ( Particle Particle)

Vector filler: Set the pointer of the Partcile related to the track with the highest probability for each category.

Parameters
Particlepointer to Particle object related to the track

Definition at line 68 of file FlavorTaggerInfo.cc.

◆ setProdPointResolutionZ()

void setProdPointResolutionZ ( float  deltaProdZ)

Vector filler: Set resolution of the production point of each track, i.e real production point - MC matched production point.

Parameters
deltaProdZproduction point difference

Definition at line 134 of file FlavorTaggerInfo.cc.

◆ setTargProb()

void setTargProb ( float  targProb)

Vector filler: Set the probability of each category's track of being a direct daughter of the Btag.

Parameters
targProbtarget track's probability

Definition at line 58 of file FlavorTaggerInfo.cc.

◆ setTrack()

void setTrack ( Belle2::Track track)

Vector filler: Set the pointer of the track with the highest probability for each category.

Parameters
trackpointer to track object

Definition at line 46 of file FlavorTaggerInfo.cc.

◆ setUseModeFlavorTagger()

void setUseModeFlavorTagger ( const std::string &  mode)

SETTERS Some of the setters are expected to fill a vector whose each element corresponds to a given category in the following order: Electron, Muon, Kinetic Lepton, Kaon, Slow Pion, Fast Pion, Lambda, Highest Momentum The setting of all elements need to be performed in a loop.

For example, setTrack() need to be called once per each category so that the vector is filled progressively. The same holds for all the other setters described as Vector Fillers. Saves the usemode of the FlavorTagger

Parameters
mode"Teacher" or "Expert"

Definition at line 26 of file FlavorTaggerInfo.cc.

◆ setZ0()

void setZ0 ( double  Z0)

Vector filler: Set the impact parameter Z0 of each track in an accesible way.

Parameters
Z0impact parameter

Definition at line 144 of file FlavorTaggerInfo.cc.


The documentation for this class was generated from the following files:
Belle2::StoreArray::appendNew
T * appendNew()
Construct a new T object at the end of the array.
Definition: StoreArray.h:256
Belle2::FlavorTaggerInfoMap
This class stores the Flavor Tagger information for a specific method and particle filled in the Flav...
Definition: FlavorTaggerInfoMap.h:48
Belle2::FlavorTaggerInfo::m_methodMap
std::map< std::string, FlavorTaggerInfoMap * > m_methodMap
Map containing the methods used for the FlavorTagger: "TMVA" or "FANN", and the corresponding map.
Definition: FlavorTaggerInfo.h:378
Belle2::HTML::getString
std::string getString(const TMatrixFBase &matrix, int precision=2, bool color=true)
get HTML table representing a matrix.
Definition: HTML.cc:18
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33