Belle II Software  release-08-01-10
ChoosableFromVarSetFilter< ATruthVarSet > Class Template Reference

Convience template to create a filter returning on variable from a set of variables. More...

#include <ChoosableFromVarSetFilter.dcl.h>

Inheritance diagram for ChoosableFromVarSetFilter< ATruthVarSet >:
Collaboration diagram for ChoosableFromVarSetFilter< ATruthVarSet >:

Public Types

using Object = typename ATruthVarSet::Object
 Type of the filtered object.
 

Public Member Functions

 ChoosableFromVarSetFilter (const std::string &varName="")
 Constructor.
 
 ~ChoosableFromVarSetFilter ()
 Default destructor.
 
void exposeParameters (ModuleParamList *parameterList, const std::string &prefix) override
 Add the parameters of this filter to the given parameter list.
 
void initialize () override
 Initialisation method sets up a reference to the value in the variable set to be returned.
 
Weight operator() (const Object &object) override
 Returns the variable with the set requested name from the variable set.
 
bool needsTruthInformation () override
 Checks if any variables need Monte Carlo information.
 
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 = ChoosableFromVarSet< Filter< typename ATruthVarSet::Object > >
 Type of the super class.
 
using AVarSet = BaseVarSet< Object >
 Type of the variable set.
 

Private Attributes

std::string m_param_varName
 Memory for the name of the variable selected as the return value of the filter.
 
Float_t * m_variable
 Reference to the location of the value in the variable set to be returned.
 
std::unique_ptr< AVarSetm_varSet
 Instance of the variable set to be used in the filter.
 

Detailed Description

template<class ATruthVarSet>
class Belle2::TrackFindingCDC::ChoosableFromVarSetFilter< ATruthVarSet >

Convience template to create a filter returning on variable from a set of variables.

Definition at line 75 of file ChoosableFromVarSetFilter.dcl.h.


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