10#include <tracking/trackFindingCDC/filters/base/FilterOnVarSet.dcl.h>
12#include <tracking/trackFindingCDC/utilities/MayBePtr.h>
14#include <tracking/trackFindingCDC/numerics/Weight.h>
24 class ModuleParamList;
26 namespace TrackFindingCDC {
33 template<
class AFilter>
42 using Object =
typename AFilter::Object;
50 Recording(std::unique_ptr<AVarSet> varSet,
51 const std::string& defaultRootFileName =
"records.root",
52 const std::string& defaultTreeName =
"records");
95 template<
class AVarSet>
108 explicit RecordingFilter(
const std::string& defaultRootFileName =
"records.root",
109 const std::string& defaultTreeName =
"records");
The Module parameter list class.
Object Object
Object type from which variables shall be extracted.
Filter adapter to make a filter work on a set of variables.
Convience template to create a recording filter for a set of variables.
typename AVarSet::Object Object
Type of the object to be analysed.
~RecordingFilter()
Default destructor.
Filter adapter to make a filter work on a set of variables and record the observed instances on invok...
Weight m_param_returnWeight
Returns Weight when this filter is called.
void initialize() override
Initialize the recorder before event processing.
void terminate() override
Initialize the recorder after event processing.
std::string m_param_rootFileName
Name of the ROOT file to which shall be written.
Weight operator()(const Object &obj) final
Function to evaluate the cluster for its backgroundness.
~Recording()
Default destructor.
MayBePtr< AFilter > getSkimFilter() const
Getter for the skim filter to select objects to be recorded.
std::unique_ptr< AFilter > m_skimFilter
Skimming filter to select a subset of objects to be recorded.
typename AFilter::Object Object
Type of the object to be analysed.
void setSkimFilter(std::unique_ptr< AFilter > skimFilter)
Setter for the skim filter to select objects to be recorded.
std::string m_param_treeName
Name of Tree to be written.
std::unique_ptr< Recorder > m_recorder
Recorder to write all variable sets of the encountered objects.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the set of parameters of the filter to the module parameter list.
Abstract base class for different kinds of events.