![]() |
Belle II Software release-09-00-03
|
Filter adapter to make a filter work on a set of variables and record the observed instances on invokation. More...
#include <RecordingFilter.dcl.h>


Public Types | |
| using | Object = typename AFilter::Object |
| Type of the object to be analysed. | |
Public Member Functions | |
| Recording (std::unique_ptr< AVarSet > varSet, const std::string &defaultRootFileName="records.root", const std::string &defaultTreeName="records") | |
| Constructor of the filter. | |
| ~Recording () | |
| Default destructor. | |
| void | exposeParameters (ModuleParamList *moduleParamList, const std::string &prefix) override |
| Expose the set of parameters of the filter to the module parameter list. | |
| void | initialize () override |
| Initialize the recorder before event processing. | |
| void | terminate () override |
| Initialize the recorder after event processing. | |
| Weight | operator() (const Object &obj) final |
| Function to evaluate the cluster for its backgroundness. | |
| 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 disfunctional afterwards. | |
Protected Member Functions | |
| MayBePtr< AFilter > | getSkimFilter () const |
| Getter for the skim filter to select objects to be recorded. | |
| void | setSkimFilter (std::unique_ptr< AFilter > skimFilter) |
| Setter for the skim filter to select objects to be recorded. | |
| 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 = OnVarSet< AFilter > |
| Type of the base class. | |
| using | AVarSet = BaseVarSet< Object > |
| Type of the var set interface to be used. | |
Private Attributes | |
| std::unique_ptr< Recorder > | m_recorder |
| Recorder to write all variable sets of the encountered objects. | |
| std::string | m_param_rootFileName |
| Name of the ROOT file to which shall be written. | |
| std::string | m_param_treeName |
| Name of Tree to be written. | |
| Weight | m_param_returnWeight |
| Returns Weight when this filter is called. | |
| std::unique_ptr< AFilter > | m_skimFilter = nullptr |
| Skimming filter to select a subset of objects to be recorded. | |
| std::unique_ptr< AVarSet > | m_varSet |
| Instance of the variable set to be used in the filter. | |
Filter adapter to make a filter work on a set of variables and record the observed instances on invokation.
Definition at line 34 of file RecordingFilter.dcl.h.
|
private |
Type of the var set interface to be used.
Definition at line 46 of file RecordingFilter.dcl.h.
| using Object = typename AFilter::Object |
Type of the object to be analysed.
Definition at line 42 of file RecordingFilter.dcl.h.
Type of the base class.
Definition at line 38 of file RecordingFilter.dcl.h.
| Recording | ( | std::unique_ptr< AVarSet > | varSet, |
| const std::string & | defaultRootFileName = "records.root", |
||
| const std::string & | defaultTreeName = "records" |
||
| ) |
Constructor of the filter.
Definition at line 30 of file RecordingFilter.icc.h.
|
override |
Expose the set of parameters of the filter to the module parameter list.
Definition at line 44 of file RecordingFilter.icc.h.
|
protected |
Getter for the skim filter to select objects to be recorded.
Definition at line 98 of file RecordingFilter.icc.h.
|
protectedinherited |
Getter for the set of variables.
Definition at line 80 of file FilterOnVarSet.icc.h.
|
override |
Initialize the recorder before event processing.
Definition at line 64 of file RecordingFilter.icc.h.
|
overrideinherited |
Checks if any variables need Monte Carlo information.
Definition at line 49 of file FilterOnVarSet.icc.h.
|
final |
Function to evaluate the cluster for its backgroundness.
Definition at line 82 of file RecordingFilter.icc.h.
|
inherited |
Steal the set of variables form this filter - filter becomes disfunctional afterwards.
Definition at line 75 of file FilterOnVarSet.icc.h.
|
protected |
Setter for the skim filter to select objects to be recorded.
Definition at line 104 of file RecordingFilter.icc.h.
|
protectedinherited |
Setter for the set of variables.
Definition at line 86 of file FilterOnVarSet.icc.h.
|
override |
Initialize the recorder after event processing.
Definition at line 74 of file RecordingFilter.icc.h.
|
private |
Returns Weight when this filter is called.
Definition at line 88 of file RecordingFilter.dcl.h.
|
private |
Name of the ROOT file to which shall be written.
Definition at line 82 of file RecordingFilter.dcl.h.
|
private |
Name of Tree to be written.
Definition at line 85 of file RecordingFilter.dcl.h.
|
private |
Recorder to write all variable sets of the encountered objects.
Definition at line 79 of file RecordingFilter.dcl.h.
|
private |
Skimming filter to select a subset of objects to be recorded.
Definition at line 91 of file RecordingFilter.dcl.h.
|
privateinherited |
Instance of the variable set to be used in the filter.
Definition at line 71 of file FilterOnVarSet.dcl.h.