Belle II Software  release-05-02-19
ObserverPrintResults Class Reference

this observer does simply print the name of the SelectionVariable and the result of its value-function as a Warning(if failed) or as an Info (if succeeded) More...

#include <ObserverPrintResults.h>

Public Member Functions

 ObserverPrintResults ()
 empty constructor:
 

Static Public Member Functions

template<class Var , class RangeType >
static void notify (const Var &filterType, typename Var::variableType fResult, const RangeType &range, const typename Var::argumentType &outerHit, const typename Var::argumentType &innerHit)
 notifier producing a info message if SelectionVariable was accepted and a Warning if otherwise More...
 
template<typename ... types>
static void initialize (const types &...)
 static method used by the observed object to initialize the observer.
 
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 a Warning(if failed) or as an Info (if succeeded)

Definition at line 35 of file ObserverPrintResults.h.

Member Function Documentation

◆ notify()

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

notifier producing a info message if SelectionVariable was accepted and a Warning if otherwise

for debugging:

Definition at line 39 of file ObserverPrintResults.h.

40  : "
41  << outerHit.getPosition().PrintStringXYZ()
42  << "/"
43  << innerHit.getPosition().PrintStringXYZ()
44  << " having indices "
45  << outerHit.getArrayIndex()
46  << "/"
47  << innerHit.getArrayIndex()
48  << " and VxdIDs "
49  << outerHit.getVxdID()
50  << "/"
51  << innerHit.getVxdID()
52  << " results in "
53  << (range.contains(fResult) ? std::setprecision(6) : std::setprecision(18))
54  << fResult
55  << " & accepted: "
56  << (range.contains(fResult) ? std::string(">true<") : std::string(">false<"))
57  << " in range "
58  << range.getInf()
59  << "/"
60  << range.getSup();
61 
62  B2DEBUG(5, outputStream.str());
64 // if (range.contains(fResult)) {
65 // B2INFO(outputStream.str())
66 // } else {
67 // B2WARNING(outputStream.str())
68 // }
69  }
70 
71 
73  ObserverPrintResults() {};
74 
75 

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