Belle II Software development
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
 
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 25 of file Observer3HitPrintResults.h.

Constructor & Destructor Documentation

◆ Observer3HitPrintResults()

empty constructor:

Definition at line 78 of file Observer3HitPrintResults.h.

78{};

Member Function Documentation

◆ initialize()

static void initialize ( const types &  ...)
inlinestatic

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

Definition at line 84 of file Observer3HitPrintResults.h.

84{};

◆ 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 29 of file Observer3HitPrintResults.h.

35 {
36
37 std::stringstream outputStream;
38 outputStream << filterType.name()
39 << " with outer-/center-/innerhit: "
40 << outerHit.getPosition().PrintStringXYZ()
41 << "/"
42 << centerHit.getPosition().PrintStringXYZ()
43 << "/"
44 << innerHit.getPosition().PrintStringXYZ()
45 << " having indices "
46 << outerHit.getArrayIndex()
47 << "/"
48 << centerHit.getArrayIndex()
49 << "/"
50 << innerHit.getArrayIndex()
51 << " and VxdIDs "
52 << outerHit.getVxdID()
53 << "/"
54 << centerHit.getVxdID()
55 << "/"
56 << innerHit.getVxdID()
57 << " results in "
58 << (range.contains(fResult) ? std::setprecision(6) : std::setprecision(18))
59 << fResult
60 << " & accepted: "
61 << (range.contains(fResult) ? std::string(">true<") : std::string(">false<"))
62 << " in range "
63 << range.getInf()
64 << "/"
65 << range.getSup();
66
67 B2DEBUG(5, outputStream.str());
69 // if (range.contains(fResult)) {
70 // B2INFO(outputStream.str())
71 // } else {
72 // B2WARNING(outputStream.str())
73 // }
74 }
std::string PrintStringXYZ(unsigned precision=4) const
create a string containing vector in cartesian coordinates
Definition: B2Vector3.h:487
B2Vector3D outerHit(0, 0, 0)
testing out of range behavior
STL namespace.

◆ terminate()

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

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

Definition at line 90 of file Observer3HitPrintResults.h.

90{};

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