![]() |
Belle II Software development
|
Public Member Functions | |
| __init__ (self, nTrueSig, nSig, nBg) | |
| nSig (self) | |
| nTrueSig (self) | |
| nBg (self) | |
| nTotal (self) | |
| purity (self) | |
| efficiency (self) | |
| purityError (self) | |
| efficiencyError (self) | |
| calcStandardDeviation (self, k, n) | |
| __str__ (self) | |
| __add__ (self, a) | |
| __radd__ (self, a) | |
Protected Attributes | |
| int | _nTrueSig = nTrueSig |
| the number of true signal particles | |
| int | _nSig = nSig |
| the number of reconstructed signal candidates | |
| _nBg = nBg | |
| the number of reconstructed background candidates | |
This class provides the efficiency, purity and other quantities for a given number of true signal candidates, signal candidates and background candidates
Definition at line 49 of file monitoring.py.
| __init__ | ( | self, | |
| nTrueSig, | |||
| nSig, | |||
| nBg ) |
Create a new Statistic object @param nTrueSig the number of true signal particles @param nSig the number of reconstructed signal candidates @param nBg the number of reconstructed background candidates
Definition at line 55 of file monitoring.py.
| __add__ | ( | self, | |
| a ) |
Adds two Statistics objects and returns a new object.
Definition at line 145 of file monitoring.py.
| __radd__ | ( | self, | |
| a ) |
Returns a new Statistic object if the current one is added to zero. Necessary to apply sum-function to Statistic objects.
Definition at line 151 of file monitoring.py.
| __str__ | ( | self | ) |
Returns a string representation of a Statistic object.
Definition at line 138 of file monitoring.py.
| calcStandardDeviation | ( | self, | |
| k, | |||
| n ) |
Helper method to calculate the standard deviation for efficiencies.
Definition at line 129 of file monitoring.py.
| efficiency | ( | self | ) |
Returns the efficiency of the reconstructed signal candidates with respect to the number of true signal particles.
Definition at line 101 of file monitoring.py.
| efficiencyError | ( | self | ) |
Returns the uncertainty of the efficiency. For an efficiency eps = self._nSig/self._nTrueSig, this function calculates the standard deviation according to http://arxiv.org/abs/physics/0701199 .
Definition at line 119 of file monitoring.py.
| nBg | ( | self | ) |
Returns the number of reconstructed background candidates.
Definition at line 80 of file monitoring.py.
| nSig | ( | self | ) |
Returns the number of reconstructed signal candidates.
Definition at line 70 of file monitoring.py.
| nTotal | ( | self | ) |
Returns total number of reconstructed candidates.
Definition at line 85 of file monitoring.py.
| nTrueSig | ( | self | ) |
Returns the number of reconstructed true signal candidates.
Definition at line 75 of file monitoring.py.
| purity | ( | self | ) |
Returns the purity of the reconstructed candidates.
Definition at line 90 of file monitoring.py.
| purityError | ( | self | ) |
Returns the uncertainty of the purity.
Definition at line 110 of file monitoring.py.
|
protected |
the number of reconstructed background candidates
Definition at line 67 of file monitoring.py.
|
protected |
the number of reconstructed signal candidates
Definition at line 65 of file monitoring.py.
|
protected |
the number of true signal particles
Definition at line 63 of file monitoring.py.