Belle II Software development
|
A filter that records variables form given objects. More...
#include <UnionRecordingFilter.dcl.h>
Public Types | |
using | Object = typename AFilter::Object |
Type of the object to be analysed. | |
Public Member Functions | |
UnionRecording (std::unique_ptr< AFilterFactory > filterFactory, const std::string &defaultRootFileName="records.root", const std::string &defaultTreeName="records") | |
Constructor of the filter. | |
~UnionRecording () | |
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. | |
virtual std::vector< std::string > | getValidVarSetNames () const |
Getter for the list of valid names of concrete variable sets. | |
virtual std::vector< std::string > | getValidFilterNames () const |
Getter for the names of valid filters. | |
virtual std::unique_ptr< AVarSet > | createVarSet (const std::string &name) const |
Create a variable set for the given name. | |
const std::vector< std::string > & | getVarSetNames () const |
Splits the comma separated variable names list into a vector of names. | |
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 dysfunctional 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 = Recording< AFilter > |
Type of the super class. | |
using | AFilterFactory = FilterFactory< AFilter > |
Type of the factory used to produce FilterVarSets to be add to the recording. | |
using | AVarSet = BaseVarSet< Object > |
Type of the factory used to produce FilterVarSets to be add to the recording. | |
Private Attributes | |
std::vector< std::string > | m_param_varSetNames |
List of varsets that should be recorded. | |
std::string | m_param_skim = "" |
Name of the filter to selected to objects to be record. | |
std::unique_ptr< AFilterFactory > | m_filterFactory |
FilterFactory. | |
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. | |
A filter that records variables form given objects.
It may record native varsets and/or weights from other filters.
Definition at line 33 of file UnionRecordingFilter.dcl.h.
|
private |
Type of the factory used to produce FilterVarSets to be add to the recording.
Definition at line 40 of file UnionRecordingFilter.dcl.h.
|
private |
Type of the factory used to produce FilterVarSets to be add to the recording.
Definition at line 48 of file UnionRecordingFilter.dcl.h.
using Object = typename AFilter::Object |
Type of the object to be analysed.
Definition at line 44 of file UnionRecordingFilter.dcl.h.
Type of the super class.
Definition at line 37 of file UnionRecordingFilter.dcl.h.
UnionRecording | ( | std::unique_ptr< AFilterFactory > | filterFactory, |
const std::string & | defaultRootFileName = "records.root" , |
||
const std::string & | defaultTreeName = "records" |
||
) |
Constructor of the filter.
Definition at line 35 of file UnionRecordingFilter.icc.h.
|
virtual |
Create a variable set for the given name.
Reimplemented in UnionRecordingAxialSegmentPairFilter, UnionRecordingFacetFilter, UnionRecordingSegmentPairFilter, UnionRecordingSegmentPairRelationFilter, UnionRecordingTrackRelationFilter, UnionRecordingClusterFilter, UnionRecordingFacetRelationFilter, and UnionRecordingSegmentRelationFilter.
Definition at line 121 of file UnionRecordingFilter.icc.h.
|
override |
Expose the set of parameters of the filter to the module parameter list.
Definition at line 47 of file UnionRecordingFilter.icc.h.
|
protectedinherited |
Getter for the skim filter to select objects to be recorded.
Definition at line 98 of file RecordingFilter.icc.h.
|
virtual |
Getter for the names of valid filters.
Definition at line 104 of file UnionRecordingFilter.icc.h.
|
virtual |
Getter for the list of valid names of concrete variable sets.
Reimplemented in UnionRecordingAxialSegmentPairFilter, UnionRecordingFacetFilter, UnionRecordingSegmentPairFilter, UnionRecordingSegmentPairRelationFilter, UnionRecordingTrackRelationFilter, UnionRecordingClusterFilter, UnionRecordingFacetRelationFilter, and UnionRecordingSegmentRelationFilter.
Definition at line 91 of file UnionRecordingFilter.icc.h.
|
protectedinherited |
Getter for the set of variables.
Definition at line 80 of file FilterOnVarSet.icc.h.
const std::vector< std::string > & getVarSetNames |
Splits the comma separated variable names list into a vector of names.
Definition at line 142 of file UnionRecordingFilter.icc.h.
|
override |
Initialize the recorder before event processing.
Create the skimming filter
Create and add the concrete varsets from the varset parameter.
Definition at line 67 of file UnionRecordingFilter.icc.h.
|
overrideinherited |
Checks if any variables need Monte Carlo information.
Definition at line 49 of file FilterOnVarSet.icc.h.
|
finalinherited |
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 dysfunctional afterwards.
Definition at line 75 of file FilterOnVarSet.icc.h.
|
protectedinherited |
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.
|
overrideinherited |
Initialize the recorder after event processing.
Definition at line 74 of file RecordingFilter.icc.h.
|
private |
Definition at line 85 of file UnionRecordingFilter.dcl.h.
|
privateinherited |
Returns Weight when this filter is called.
Definition at line 88 of file RecordingFilter.dcl.h.
|
privateinherited |
Name of the ROOT file to which shall be written.
Definition at line 82 of file RecordingFilter.dcl.h.
|
private |
Name of the filter to selected to objects to be record.
Definition at line 82 of file UnionRecordingFilter.dcl.h.
|
privateinherited |
Name of Tree to be written.
Definition at line 85 of file RecordingFilter.dcl.h.
|
private |
List of varsets that should be recorded.
Definition at line 79 of file UnionRecordingFilter.dcl.h.
|
privateinherited |
Recorder to write all variable sets of the encountered objects.
Definition at line 79 of file RecordingFilter.dcl.h.
|
privateinherited |
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.