Class to count events.
More...
#include <Counter.h>
|
| Counter ()=default |
| Constructor.
|
|
| ~Counter ()=default |
| Destructor.
|
|
void | Count (const unsigned int &v) |
|
void | Reset () |
| Function to reset counters to zero.
|
|
uint32_t | HowMany (const unsigned int &pos) const |
|
void | MakeHistogram (TH1 *h) const |
|
void | FillHistogram (TH1 *h, const unsigned int &biny=0, const unsigned int &binz=0) const |
|
unsigned int | Size () const |
|
template<const unsigned size, const char * labels>
class o2::quality_control_modules::tof::Counter< size, labels >
Class to count events.
- Author
- Nicolo' Jacazio
template<const unsigned size, const char * labels>
Function to increment a counter
- Parameters
-
v | Index in the counter array to increment |
template<const unsigned size, const char * labels>
Function to fill a histogram with the counters
- Parameters
-
h | The histogram to fill |
biny | Y offset to fill to histogram, useful for TH2 and TH3 |
binz | Z offset to fill to histogram, useful for TH3 |
template<const unsigned size, const char * labels>
Function to get how many counts where observed
- Returns
- Returns the number of counts observed for a particular index
template<const unsigned size, const char * labels>
Function to make a histogram out of the counters
- Parameters
-
h | histogram to shape in order to have room for the counter size |
template<const unsigned size, const char * labels>
Getter for the size
- Returns
- Returns the size of the counter
The documentation for this class was generated from the following file: