![]() |
Belle II Software
release-05-01-25
|
Class to store the likelihoods from KLM with additional informations related to the extrapolation. More...
#include <KLMMuidLikelihood.h>
Public Member Functions | |
KLMMuidLikelihood () | |
Constructor. | |
~KLMMuidLikelihood () | |
Destructor. | |
int | getPDGCode () const |
Get the PDG code of the particle hypothesis used during the extrapolation. | |
int | getCharge () const |
Get the charge of the particle hypothesis used during the extrapolation. | |
double | getPDFValue (int pdg) const |
Get the normalized PDF. More... | |
double | getMuonPDFValue () const |
Get the normalized PDF for the muon hypothesis. | |
double | getPionPDFValue () const |
Get the normalized PDF for the pion hypothesis. | |
double | getKaonPDFValue () const |
Get the normalized PDF for the kaon hypothesis. | |
double | getProtonPDFValue () const |
Get the normalized PDF for the proton hypothesis. | |
double | getDeuteronPDFValue () const |
Get the normalized PDF for the deuteron hypothesis. | |
double | getElectronPDFValue () const |
Get the normalized PDF for the electron hypothesis. | |
bool | getJunkPDFValue () const |
Get the junk flag (1 if junk, 0 if not). | |
double | getLogL (int pdg) const |
Get the log-likelihood. More... | |
double | getLogL_mu () const |
Get the log-likelihood for the muon hypothesis. | |
double | getLogL_pi () const |
Get the log-likelihood for the pion hypothesis. | |
double | getLogL_K () const |
Get the log-likelihood for the kaon hypothesis. | |
double | getLogL_p () const |
Get the log-likelihood for the proton hypothesis. | |
double | getLogL_d () const |
Get the log-likelihood for the deuteron hypothesis. | |
double | getLogL_e () const |
Get the log-likelihood for the electron hypothesis. | |
double | getChiSquared () const |
Get the chi-squared of the extrapolation. | |
int | getDegreesOfFreedom () const |
Get the number of degrees of freedom (= 2 times the number of KLM hits) for the chi-squared computation. | |
unsigned int | getOutcome () const |
Get the outcome of this extrapolation. More... | |
bool | getIsForward () const |
Return if this extrapolation is in forward or backward B/EKLM. | |
int | getBarrelExtLayer () const |
Get the outermost BKLM layer crossed in the extrapolation. | |
int | getEndcapExtLayer () const |
Get the outermost EKLM layer crossed in the extrapolation. | |
int | getExtLayer () const |
Get the outermost KLM layer crossed in the extrapolation. | |
int | getBarrelHitLayer () const |
Get the outermost BKLM layer actually crossed by the track. | |
int | getEndcapHitLayer () const |
Get the outermost EKLM layer actually crossed by the track. | |
int | getHitLayer () const |
Get the outermost KLM layer actually crossed by the track. | |
unsigned int | getExtLayerPattern () const |
Get the pattern of the layers crossed in the extrapolation. | |
unsigned int | getHitLayerPattern () const |
Get the pattern of the layers actually crossed by the track. | |
unsigned int | getTotalBarrelHits () const |
Get the total number of crossed BKLM layers. | |
unsigned int | getTotalEndcapHits () const |
Get the total number of crossed EKLM layers. | |
float | getExtBKLMEfficiencyValue (int layer) const |
Get the efficiency of a given BKLM layer. More... | |
float | getExtEKLMEfficiencyValue (int layer) const |
Get the efficiency of a given EKLM layer. More... | |
void | setPDGCode (int pdg) |
Set the PDG code of the particle hypothesis used during the extrapolation. More... | |
void | setPDFValue (double pdfValue, int pdg) |
Set the normalized PDF. More... | |
void | setMuonPDFValue (double pdfValue) |
Set the normalized PDF for the muon hypothesis. More... | |
void | setPionPDFValue (double pdfValue) |
Set the normalized PDF for the pion hypothesis. More... | |
void | setKaonPDFValue (double pdfValue) |
Set the normalized PDF for the kaon hypothesis. More... | |
void | setProtonPDFValue (double pdfValue) |
Set the normalized PDF for the proton hypothesis. More... | |
void | setDeuteronPDFValue (double pdfValue) |
Set the normalized PDF for the deuteron hypothesis. More... | |
void | setElectronPDFValue (double pdfValue) |
Set the normalized PDF for the electron hypothesis. More... | |
void | setJunkPDFValue (bool flag) |
Set the junk flag (1 if junk, 0 if not). More... | |
void | setLogL (double logL, int pdg) |
Set the log-likelihood. More... | |
void | setLogL_mu (double logL) |
Set the log-likelihood for the muon hypothesis. More... | |
void | setLogL_pi (double logL) |
Set the log-likelihood for the pion hypothesis. More... | |
void | setLogL_K (double logL) |
Set the log-likelihood for the kaon hypothesis. More... | |
void | setLogL_p (double logL) |
Set the log-likelihood for the proton hypothesis. More... | |
void | setLogL_d (double logL) |
Set the log-likelihood for the deuteron hypothesis. More... | |
void | setLogL_e (double logL) |
Set the log-likelihood for the electron hypothesis. More... | |
void | setChiSquared (double chiSquared) |
Set the chi-squared of the extrapolation. More... | |
void | setDegreesOfFreedom (int dof) |
Set the number of degrees of freedom (= 2 times the number of KLM hits) for the chi-square computation. More... | |
void | setOutcome (unsigned int outcome) |
Set the outcome of this extrapolation. More... | |
void | setIsForward (bool isForward) |
Set if this extrapolation is in forward or backward B/EKLM. More... | |
void | setBarrelExtLayer (int layer) |
Set the outermost BKLM layer crossed in the extrapolation. More... | |
void | setEndcapExtLayer (int layer) |
Set the outermost EKLM layer crossed in the extrapolation. More... | |
void | setExtLayer (int layer) |
Set the outermost EKLM layer crossed in the extrapolation. More... | |
void | setBarrelHitLayer (int layer) |
Set the outermost BKLM layer actually crossed by the track. More... | |
void | setEndcapHitLayer (int layer) |
Set the outermost EKLM layer actually crossed by the track. More... | |
void | setHitLayer (int layer) |
Set the outermost KLM layer actually crossed by the track. More... | |
void | setExtLayerPattern (unsigned int pattern) |
Set the pattern of the layers crossed in the extrapolation. More... | |
void | setHitLayerPattern (unsigned int pattern) |
Set the pattern of the layers actually crossed by the track. More... | |
void | setExtBKLMEfficiencyValue (int layer, float efficiency) |
Set the efficiency of a given BKLM layer. More... | |
void | setExtEKLMEfficiencyValue (int layer, float efficiency) |
Set the efficiency of a given EKLM layer. 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 | |
int | m_PDGCode |
PDG code of the particle hypothesis used during the extrapolation. | |
float | m_PDFValue [Const::ChargedStable::c_SetSize] |
Array of normalized PDFs. | |
bool | m_JunkPDFValue |
Junk flag (1 if junk, 0 if not). | |
float | m_LogL [Const::ChargedStable::c_SetSize] |
Array of log-likelihoods. | |
float | m_ChiSquared |
Chi-squared of the extrapolation. | |
int | m_DegreesOfFreedom |
Number of degrees of freedom (= 2 times the number of KLM hits) for the chi-squared computation. | |
unsigned int | m_Outcome |
Outcome of this extrapolation. | |
bool | m_IsForward |
Flag to determine if this extrapolation is in forward or backward B/EKLM. | |
int | m_BarrelExtLayer |
Outermost BKLM layer crossed in the extrapolation. | |
int | m_EndcapExtLayer |
Outermost EKLM layer crossed in the extrapolation. | |
int | m_ExtLayer |
Outermost KLM layer crossed in the extrapolation. | |
int | m_BarrelHitLayer |
Outermost BKLM layer actually crossed by the track. | |
int | m_EndcapHitLayer |
Outermost EKLM layer actually crossed by the track. | |
int | m_HitLayer |
Outermost KLM layer actually crossed by the track. | |
unsigned int | m_ExtLayerPattern |
Pattern of the layers crossed in the extrapolation (bits 0..14 = BKLM layers 1..15, bits 15..28 = EKLM layers 1..14). | |
unsigned int | m_HitLayerPattern |
Pattern of the layers actually crossed by the track (bits 0..14 = BKLM layers 1..15, bits 15..28 = EKLM layers 1..14). | |
float | m_ExtBKLMEfficiencyValue [BKLMElementNumbers::getMaximalLayerNumber()] |
Array of BKLM layer efficiencies. | |
float | m_ExtEKLMEfficiencyValue [EKLMElementNumbers::getMaximalLayerNumber()] |
Array of EKLM layer efficiencies. | |
DataStore::StoreEntry * | m_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. | |
Class to store the likelihoods from KLM with additional informations related to the extrapolation.
Definition at line 38 of file KLMMuidLikelihood.h.
|
inlineinherited |
Add a relation from this object to another object (with caching).
object | The object to which the relation should point. |
weight | The weight of the relation. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 144 of file RelationsObject.h.
|
inlineinherited |
Add a relation from this object to another object (no caching, can be quite slow).
object | The object to which the relation should point. |
weight | The weight of the relation. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 157 of file RelationsObject.h.
|
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.
|
inline |
Get the efficiency of a given BKLM layer.
[in] | layer | BKLM layer. |
Definition at line 299 of file KLMMuidLikelihood.h.
|
inline |
Get the efficiency of a given EKLM layer.
[in] | layer | EKLM layer |
Definition at line 308 of file KLMMuidLikelihood.h.
|
inlineinherited |
Return a short summary of this object's contents in raw text format.
Returns the contents of getInfoHTML() while translating line-breaks etc.
Definition at line 372 of file RelationsObject.h.
|
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:
Reimplemented in TrackFitResult, TRGSummary, Track, SoftwareTriggerResult, Particle, RecoTrack, MCParticle, Cluster, and PIDLikelihood.
Definition at line 364 of file RelationsObject.h.
|
inline |
Get the log-likelihood.
[in] | pdg | PDG code of the hypothesis. |
Definition at line 134 of file KLMMuidLikelihood.h.
|
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.
|
inline |
Get the outcome of this extrapolation.
All the possible outcome values are defined in MuidElementNumbers (see enum Outcome and calculateExtrapolationOutcome).
Definition at line 208 of file KLMMuidLikelihood.h.
|
inline |
Get the normalized PDF.
[in] | pdg | PDG code of the hypothesis. |
Definition at line 69 of file KLMMuidLikelihood.h.
|
inlineinherited |
Get the object to or from which this object has a relation.
T | The class of objects to or from which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 280 of file RelationsObject.h.
|
inlineinherited |
Get the object from which this object has a relation.
FROM | The class of objects from which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 265 of file RelationsObject.h.
|
inlineinherited |
Get first related object & weight of relation pointing from an array.
FROM | The class of objects from which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 316 of file RelationsObject.h.
|
inlineinherited |
Get the object to which this object has a relation.
TO | The class of objects to which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 250 of file RelationsObject.h.
|
inlineinherited |
Get first related object & weight of relation pointing to an array.
TO | The class of objects to which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 299 of file RelationsObject.h.
|
inlineinherited |
Get first related object & weight of relation pointing from/to an array.
T | The class of objects to or from which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 333 of file RelationsObject.h.
|
inlineinherited |
Get the relations that point from another store array to this object.
FROM | The class of objects from which the relations point. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 214 of file RelationsObject.h.
|
inlineinherited |
Get the relations that point from this object to another store array.
TO | The class of objects to which the relations point. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 199 of file RelationsObject.h.
|
inlineinherited |
Get the relations between this object and another store array.
Relations in both directions are returned.
T | The class of objects to or from which the relations point. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 232 of file RelationsObject.h.
|
inline |
Set the outermost BKLM layer crossed in the extrapolation.
[in] | layer | Outermost BKLM layer. |
Definition at line 501 of file KLMMuidLikelihood.h.
|
inline |
Set the outermost BKLM layer actually crossed by the track.
[in] | layer | Outermost BKLM layer. |
Definition at line 528 of file KLMMuidLikelihood.h.
|
inline |
Set the chi-squared of the extrapolation.
[in] | chiSquared | Chi-squared of the extrapolation. |
Definition at line 463 of file KLMMuidLikelihood.h.
|
inline |
Set the number of degrees of freedom (= 2 times the number of KLM hits) for the chi-square computation.
[in] | dof | Number of degrees of freedom. |
Definition at line 472 of file KLMMuidLikelihood.h.
|
inline |
Set the normalized PDF for the deuteron hypothesis.
[in] | pdfValue | Normalized PDF. |
Definition at line 372 of file KLMMuidLikelihood.h.
|
inline |
Set the normalized PDF for the electron hypothesis.
[in] | pdfValue | Normalized PDF. |
Definition at line 381 of file KLMMuidLikelihood.h.
|
inline |
Set the outermost EKLM layer crossed in the extrapolation.
[in] | layer | Outermost EKLM layer. |
Definition at line 510 of file KLMMuidLikelihood.h.
|
inline |
Set the outermost EKLM layer actually crossed by the track.
[in] | layer | Outermost EKLM layer. |
Definition at line 537 of file KLMMuidLikelihood.h.
|
inline |
Set the efficiency of a given BKLM layer.
[in] | layer | BKLM layer. |
[in] | efficiency | Efficiency of the given layer. |
Definition at line 574 of file KLMMuidLikelihood.h.
|
inline |
Set the efficiency of a given EKLM layer.
[in] | layer | EKLM layer. |
[in] | efficiency | Efficiency of the given layer. |
Definition at line 584 of file KLMMuidLikelihood.h.
|
inline |
Set the outermost EKLM layer crossed in the extrapolation.
[in] | layer | Outermost KLM layer. |
Definition at line 519 of file KLMMuidLikelihood.h.
|
inline |
Set the pattern of the layers crossed in the extrapolation.
[in] | pattern | Pattern of the extrapolation. |
Definition at line 555 of file KLMMuidLikelihood.h.
|
inline |
Set the outermost KLM layer actually crossed by the track.
[in] | layer | Outermost KLM layer. |
Definition at line 546 of file KLMMuidLikelihood.h.
|
inline |
Set the pattern of the layers actually crossed by the track.
[in] | pattern | Pattern of the layers actually crossed. |
Definition at line 564 of file KLMMuidLikelihood.h.
|
inline |
Set if this extrapolation is in forward or backward B/EKLM.
[in] | isForward | True for forward, false for backward. |
Definition at line 492 of file KLMMuidLikelihood.h.
|
inline |
Set the junk flag (1 if junk, 0 if not).
[in] | flag | 1 if junk, 0 if not. |
Definition at line 390 of file KLMMuidLikelihood.h.
|
inline |
Set the normalized PDF for the kaon hypothesis.
[in] | pdfValue | Normalized PDF. |
Definition at line 354 of file KLMMuidLikelihood.h.
|
inline |
Set the log-likelihood.
[in] | logL | Log-likelihood. |
[in] | pdg | PDG code of the hypothesis. |
Definition at line 400 of file KLMMuidLikelihood.h.
|
inline |
Set the log-likelihood for the deuteron hypothesis.
[in] | logL | Log-likelihood. |
Definition at line 445 of file KLMMuidLikelihood.h.
|
inline |
Set the log-likelihood for the electron hypothesis.
[in] | logL | Log-likelihood. |
Definition at line 454 of file KLMMuidLikelihood.h.
|
inline |
Set the log-likelihood for the kaon hypothesis.
[in] | logL | Log-likelihood. |
Definition at line 427 of file KLMMuidLikelihood.h.
|
inline |
Set the log-likelihood for the muon hypothesis.
[in] | logL | Log-likelihood. |
Definition at line 409 of file KLMMuidLikelihood.h.
|
inline |
Set the log-likelihood for the proton hypothesis.
[in] | logL | Log-likelihood. |
Definition at line 436 of file KLMMuidLikelihood.h.
|
inline |
Set the log-likelihood for the pion hypothesis.
[in] | logL | Log-likelihood. |
Definition at line 418 of file KLMMuidLikelihood.h.
|
inline |
Set the normalized PDF for the muon hypothesis.
[in] | pdfValue | Normalized PDF. |
Definition at line 336 of file KLMMuidLikelihood.h.
|
inline |
Set the outcome of this extrapolation.
All the possible outcome values are defined in MuidElementNumbers (see enum Outcome and calculateExtrapolationOutcome).
[in] | outcome | Outcome of this extrapolation. |
Definition at line 483 of file KLMMuidLikelihood.h.
|
inline |
Set the normalized PDF.
[in] | pdfValue | Normalized PDF. |
[in] | pdg | PDG code of the particle hypothesis. |
Definition at line 327 of file KLMMuidLikelihood.h.
|
inline |
Set the PDG code of the particle hypothesis used during the extrapolation.
[in] | pdg | PDG code of the particle hypothesis. |
Definition at line 317 of file KLMMuidLikelihood.h.
|
inline |
Set the normalized PDF for the pion hypothesis.
[in] | pdfValue | Normalized PDF. |
Definition at line 345 of file KLMMuidLikelihood.h.
|
inline |
Set the normalized PDF for the proton hypothesis.
[in] | pdfValue | Normalized PDF. |
Definition at line 363 of file KLMMuidLikelihood.h.