Belle II Software development
RandomFilter< AFilter > Class Template Reference

Random filter resulting in a random weight between 0 and 1. More...

#include <RandomFilter.dcl.h>

Inheritance diagram for RandomFilter< AFilter >:

Public Types

using Object = typename AFilter::Object
 Type of the object to be filtered.
 

Public Member Functions

Weight operator() (const Object &obj) final
 Never reject an item but give back a random value between 0 and 1.
 

Detailed Description

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

Random filter resulting in a random weight between 0 and 1.

Only to be used for testing purposes.

Definition at line 24 of file RandomFilter.dcl.h.

Member Typedef Documentation

◆ Object

using Object = typename AFilter::Object

Type of the object to be filtered.

Definition at line 27 of file RandomFilter.dcl.h.

Member Function Documentation

◆ operator()()

Weight operator() ( const Object obj)
final

Never reject an item but give back a random value between 0 and 1.

Definition at line 22 of file RandomFilter.icc.h.

23 {
24 return gRandom->Rndm();
25 }

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