Belle II Software  release-08-01-10
ObserverCheckFilters Class Reference

this observer searches logs the response for each of SelectionVariables used in the filters If the pointer to the StoreArray is set the results will be put into the datastore More...

#include <ObserverCheckFilters.h>

Collaboration diagram for ObserverCheckFilters:

Public Member Functions

 ObserverCheckFilters ()
 empty constructor:
 

Static Public Member Functions

static bool initialize (const StoreArray< ObserverInfo > &aStoreArray)
 get a copy of a storearray
 
template<class Var , class Range , typename ... types>
static bool initialize (Var, Range, const types &...)
 this function is needed by the Filters.h but has no task for this observer
 
static SpacePointInfo convertSpacePoint (const SpacePoint &aSpacePoint)
 convert a SpacePiont into a version that can be stored in the datastore
 
static void prepare (const SpacePoint &outerHit, const SpacePoint &innerHit)
 static method used by the observed object to reset the stored values of the observer.
 
template<typename ... types>
static void terminate (const types &...)
 static method used by the observed object to terminate the observer.
 
template<typename ... types>
static void collect (const types &...)
 fill the storearray

 
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 &, const typename Var::argumentType &)
 notifier which finds the mcParticles attached to given triplet of spacePoints and determines the purities for them.
 
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 which finds the mcParticles attached to given pair of spacePoints and determines the purities for them.
 

Static Public Attributes

static ObserverInfo s_observerInfo = ObserverInfo()
 container that stores the results calculated for a selectionVariableName, has to be static due to the way the observers is called
 
static StoreArray< ObserverInfos_storeArray = StoreArray<ObserverInfo>()
 hold a storearray to have access to the datastore
 

Static Protected Member Functions

template<class Var , class RangeType >
static void generalNotify (typename Var::variableType fResult, const RangeType &range)
 unified part of the notifier function. More...
 

Detailed Description

this observer searches logs the response for each of SelectionVariables used in the filters If the pointer to the StoreArray is set the results will be put into the datastore

Definition at line 31 of file ObserverCheckFilters.h.

Member Function Documentation

◆ generalNotify()

static void generalNotify ( typename Var::variableType  fResult,
const RangeType &  range 
)
inlinestaticprotected

unified part of the notifier function.

Stores filter-specific things.

Definition at line 164 of file ObserverCheckFilters.h.

166  {
167  // store the data retrieved:
168  FilterInfo info(Var().name(), double(fResult), range.contains(fResult), true);
170  }
static ObserverInfo s_observerInfo
container that stores the results calculated for a selectionVariableName, has to be static due to the...
void addFilterInfo(FilterInfo info)
add a new filter info:
Definition: ObserverInfo.h:86

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