Belle II Software  release-08-01-10
OnVarSet< AFilter > Class Template Reference

Filter adapter to make a filter work on a set of variables. More...

#include <FilterOnVarSet.dcl.h>

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

Public Types

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

Public Member Functions

 OnVarSet (std::unique_ptr< AVarSet > varSet)
 Constructor from the variable set the filter should use.
 
 ~OnVarSet ()
 Default destructor.
 
void initialize () override
 No reassignment of variable set possible for now.
 
bool needsTruthInformation () override
 Checks if any variables need Monte Carlo information.
 
Weight operator() (const Object &obj) override
 Function extracting the variables of the object into the variable set.
 
std::unique_ptr< AVarSetreleaseVarSet () &&
 Steal the set of variables form this filter - filter becomes disfunctional afterwards.
 

Protected Member Functions

AVarSetgetVarSet () const
 Getter for the set of variables.
 
void setVarSet (std::unique_ptr< AVarSet > varSet)
 Setter for the set of variables.
 

Private Types

using Super = AFilter
 Type of the base class.
 
using AVarSet = BaseVarSet< Object >
 Type of the variable set usedi in this filter.
 

Private Attributes

std::unique_ptr< AVarSetm_varSet
 Instance of the variable set to be used in the filter.
 

Detailed Description

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

Filter adapter to make a filter work on a set of variables.

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


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