Belle II Software development
CountAcceptRejectObserver Class Reference

this observer does simply count the number of times, the attached SelectionVariable was accepted or rejected More...

Inheritance diagram for CountAcceptRejectObserver:
VoidObserver

Static Public Member Functions

template<class Var , class RangeType >
static void notify (const Var &, typename Var::variableType fResult, const RangeType &range, const typename Var::argumentType &, const typename Var::argumentType &)
 notifier counting how often a SelectionVariable was accepted/rejected
 
template<typename ... types>
static void notify (const types &...)
 static method used by the observed object to notify the observer.
 
template<typename ... types>
static bool initialize (const types &...)
 static method used by the observed object to initialize the observer it is called once usually from the user.
 
template<typename ... types>
static void prepare (const types &...)
 static method used by the observed object to prepare the observer it is called by the boolean filter operator.
 
template<typename ... types>
static void collect (const types &...)
 static method used by the observed object to prepare the observer it is called by the boolean filter operator.
 
template<typename ... types>
static void terminate (const types &...)
 static method used by the observed object to terminate the observer.
 

Detailed Description

this observer does simply count the number of times, the attached SelectionVariable was accepted or rejected

Definition at line 410 of file observers.cc.

Member Function Documentation

◆ collect()

static void collect ( const types &  ...)
inlinestaticinherited

static method used by the observed object to prepare the observer it is called by the boolean filter operator.

Definition at line 55 of file VoidObserver.h.

55{};

◆ initialize()

static bool initialize ( const types &  ...)
inlinestaticinherited

static method used by the observed object to initialize the observer it is called once usually from the user.

Definition at line 43 of file VoidObserver.h.

43{ return true; };

◆ notify() [1/2]

static void notify ( const types &  ...)
inlinestaticinherited

static method used by the observed object to notify the observer.

it is called at each accept.

Definition at line 37 of file VoidObserver.h.

37{};

◆ notify() [2/2]

static void notify ( const Var &  ,
typename Var::variableType  fResult,
const RangeType &  range,
const typename Var::argumentType &  ,
const typename Var::argumentType &   
)
inlinestatic

notifier counting how often a SelectionVariable was accepted/rejected

Definition at line 414 of file observers.cc.

419 {
420 if (range.contains(fResult)) {
422 } else {
424 }
425 }
static unsigned int accepted
count number of times result was accepted
Definition: observers.cc:185
static unsigned int rejected
count number of times result was rejected
Definition: observers.cc:186

◆ prepare()

static void prepare ( const types &  ...)
inlinestaticinherited

static method used by the observed object to prepare the observer it is called by the boolean filter operator.

Definition at line 49 of file VoidObserver.h.

49{};

◆ terminate()

static void terminate ( const types &  ...)
inlinestaticinherited

static method used by the observed object to terminate the observer.

Definition at line 67 of file VoidObserver.h.

67{};

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