Belle II Software development
|
MC Filter Type using a VarSet and the truth variable in it. More...
#include <TruthVarFilter.dcl.h>
Public Types | |
using | Object = typename Super::Object |
Type of the handled object. | |
Public Member Functions | |
TruthVarFilter () | |
Constructor. | |
~TruthVarFilter () | |
Default destructor. | |
Weight | operator() (const Object &object) override |
Reject an item if the truth variable is 0, else accept it. | |
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< AVarSet > | releaseVarSet () && |
Steal the set of variables form this filter - filter becomes dysfunctional afterwards. | |
Protected Member Functions | |
AVarSet & | getVarSet () const |
Getter for the set of variables. | |
void | setVarSet (std::unique_ptr< AVarSet > varSet) |
Setter for the set of variables. | |
Private Types | |
using | Super = ChoosableFromVarSetFilter< ATruthVarSet > |
Type of the base 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< AVarSet > | m_varSet |
Instance of the variable set to be used in the filter. | |
MC Filter Type using a VarSet and the truth variable in it.
Definition at line 20 of file TruthVarFilter.dcl.h.
|
privateinherited |
Type of the variable set.
Definition at line 44 of file ChoosableFromVarSetFilter.dcl.h.
using Object = typename Super::Object |
Type of the handled object.
Definition at line 28 of file TruthVarFilter.dcl.h.
|
private |
Type of the base class.
Definition at line 24 of file TruthVarFilter.dcl.h.
Constructor.
Definition at line 26 of file TruthVarFilter.icc.h.
|
overrideinherited |
Add the parameters of this filter to the given parameter list.
Definition at line 57 of file ChoosableFromVarSetFilter.icc.h.
|
protectedinherited |
Getter for the set of variables.
Definition at line 80 of file FilterOnVarSet.icc.h.
|
overrideinherited |
Initialisation method sets up a reference to the value in the variable set to be returned.
Definition at line 60 of file ChoosableFromVarSetFilter.icc.h.
|
overrideinherited |
Checks if any variables need Monte Carlo information.
Definition at line 49 of file FilterOnVarSet.icc.h.
|
overrideinherited |
Returns the variable with the set requested name from the variable set.
Definition at line 63 of file ChoosableFromVarSetFilter.icc.h.
|
override |
Reject an item if the truth variable is 0, else accept it.
Definition at line 35 of file TruthVarFilter.icc.h.
|
inherited |
Steal the set of variables form this filter - filter becomes dysfunctional afterwards.
Definition at line 75 of file FilterOnVarSet.icc.h.
|
protectedinherited |
Setter for the set of variables.
Definition at line 86 of file FilterOnVarSet.icc.h.
|
privateinherited |
Memory for the name of the variable selected as the return value of the filter.
Definition at line 67 of file ChoosableFromVarSetFilter.dcl.h.
|
privateinherited |
Reference to the location of the value in the variable set to be returned.
Definition at line 70 of file ChoosableFromVarSetFilter.dcl.h.
|
privateinherited |
Instance of the variable set to be used in the filter.
Definition at line 71 of file FilterOnVarSet.dcl.h.