Belle II Software  release-05-02-19
ObserverFilter< AFilter > Class Template Reference

Observer listening to the number of yes and no answers from the filter. More...

#include <ObserverFilter.dcl.h>

Inheritance diagram for ObserverFilter< AFilter >:
Collaboration diagram for ObserverFilter< AFilter >:

Public Types

using Object = typename AFilter::Object
 Object type to be filtered.
 

Public Member Functions

void terminate () override
 Terminate the filter after event processing.
 
Weight operator() (const Object &object) override
 Function to evaluate the object. More...
 

Private Types

using Super = AFilter
 Type of the filter base class.
 

Private Attributes

unsigned int m_yesAnswers = 0
 Number of counted yes answers.
 
unsigned int m_noAnswers = 0
 Number of counted no answers.
 

Detailed Description

template<class AFilter>
class Belle2::TrackFindingCDC::ObserverFilter< AFilter >

Observer listening to the number of yes and no answers from the filter.

Definition at line 31 of file ObserverFilter.dcl.h.

Member Function Documentation

◆ operator()()

Weight operator() ( const Object object)
override

Function to evaluate the object.

Base implementation rejects all objects.

Parameters
objThe object to be accepted or rejected.
Returns
A finit float value if the object is accepted. NAN if the object is rejected.

Definition at line 43 of file ObserverFilter.icc.h.


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