Belle II Software development
ErrorObserver Class Reference

this observer does simply print the name of the SelectionVariable and the result of its value-function as an Error More...

Inheritance diagram for ErrorObserver:
VoidObserver

Static Public Member Functions

template<class Var , class Range , typename ... otherTypes>
static void notify (const Var &filterType, typename Var::variableType fResult, const Range &range, const typename Var::argumentType &outerHit, const typename Var::argumentType &innerHit, otherTypes ...)
 notifier: print the name of the SelectionVariable and the result of its value-function as an Error.
 
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 print the name of the SelectionVariable and the result of its value-function as an Error

Definition at line 125 of file twoHitFilters.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 &  filterType,
typename Var::variableType  fResult,
const Range range,
const typename Var::argumentType &  outerHit,
const typename Var::argumentType &  innerHit,
otherTypes ...   
)
inlinestatic

notifier: print the name of the SelectionVariable and the result of its value-function as an Error.

Definition at line 129 of file twoHitFilters.cc.

135 {
136 B2ERROR(" Filter " << filterType.name() << " got result of " << fResult);
137 }

◆ 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: