Belle II Software development
counter< T > Class Template Reference

a tiny counter class for counting stuff More...

Public Member Functions

 ~counter ()
 constructor.
 

Static Public Member Functions

static void resetCounter ()
 destructor.
 

Static Public Attributes

static unsigned int used
 count number of times used
 
static unsigned int accepted
 count number of times result was accepted
 
static unsigned int rejected
 count number of times result was rejected
 
static unsigned int wasInf
 count number of times result was inf
 
static unsigned int wasNan
 count number of times result was nan
 

Detailed Description

template<class T>
class VXDTFObserversTest::counter< T >

a tiny counter class for counting stuff

Definition at line 182 of file observers.cc.

Constructor & Destructor Documentation

◆ counter()

counter ( )
inline

Definition at line 189 of file observers.cc.

189{};

◆ ~counter()

~counter ( )
inline

constructor.

Definition at line 190 of file observers.cc.

190{};

Member Function Documentation

◆ resetCounter()

static void resetCounter ( )
inlinestatic

destructor.

resets all counters.

Definition at line 191 of file observers.cc.

Member Data Documentation

◆ accepted

unsigned int accepted
static

count number of times result was accepted

Definition at line 185 of file observers.cc.

◆ rejected

unsigned int rejected
static

count number of times result was rejected

Definition at line 186 of file observers.cc.

◆ used

unsigned int used
static

count number of times used

Initialise all static variables.

Definition at line 184 of file observers.cc.

◆ wasInf

unsigned int wasInf
static

count number of times result was inf

Definition at line 187 of file observers.cc.

◆ wasNan

unsigned int wasNan
static

count number of times result was nan

Definition at line 188 of file observers.cc.


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