Belle II Software  release-05-02-19
Observer3HitPrintResults 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 <Observer3HitPrintResults.h>

Public Member Functions

 Observer3HitPrintResults ()
 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 &centerHit, 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 Observer3HitPrintResults.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 &  centerHit,
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 Observer3HitPrintResults.h.

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

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