10#include <tracking/trackFindingCDC/filters/base/SloppyFilter.dcl.h>
12#include <framework/core/ModuleParamList.templateDetails.h>
21 namespace TrackFindingCDC {
23 template<
class AFilter>
26 Super::exposeParameters(moduleParamList, prefix);
29 "Only accept every <sloppinessFactor>th instance "
30 "that would normally pass the filter.",
34 template<
class AFilter>
39 if (std::isnan(response)) {
41 if (randomNumber != 0) {
39 if (std::isnan(response)) {
…}
The Module parameter list class.
unsigned int m_param_sloppinessFactor
Parameter : The prescaling of the false items returning true.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the set of parameters of the filter to the module parameter list.
Weight operator()(const typename Super::Object &object) override
Reject an item if the truth variable is 0 or in some fractions of the events, else accept it.
typename Super::Object Object
Type of the handled object.
Weight operator()(const Object &object) override
Reject an item if the truth variable is 0, else accept it.
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
Abstract base class for different kinds of events.