HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
MinimalPlotlevelFilter Class Reference

#include <MinimalPlotlevelFilter.h>

+ Inheritance diagram for MinimalPlotlevelFilter:

Public Types

typedef std::function< float(event_type
const &, product_type const &)> 
float_extractor_lambda
 

Public Member Functions

virtual std::string GetFilterId () const override
 
void Init (setting_type const &settings, metadata_type &metadata) override
 
template<typename T >
void RemoveSubstrs (typename std::basic_string< T > &s, char p) const
 
bool EvaluateSubExpression (std::string &expression, event_type const &event, product_type const &product, setting_type const &settings) const
 
virtual bool DoesEventPass (event_type const &event, product_type const &product, setting_type const &settings, metadata_type const &metadata) const override
 

Detailed Description

Filter with lightweight expression parser Required config tag:

  • PlotlevelFilterExpressionQuantities -> List of variable names to be used in expression
  • PlotevelFilterExpression -> Expression to be applied Hint:

Use * for connecting subexpressions with AND

  • You are allowd to use || for OR statements
  • Syntax:
  • Always write [variable] [relation] [static value]
  • You must insert one space between relation signs and value/variable BUT none between * or || (pt_1 < 40||pt_2 > 50)*(mjj > 250)

Member Typedef Documentation

typedef std::function<float(event_type const&, product_type const&)> MinimalPlotlevelFilter::float_extractor_lambda

Member Function Documentation

bool MinimalPlotlevelFilter::DoesEventPass ( event_type const &  event,
product_type const &  product,
setting_type const &  settings,
metadata_type const &  metadata 
) const
overridevirtual
bool MinimalPlotlevelFilter::EvaluateSubExpression ( std::string &  expression,
event_type const &  event,
product_type const &  product,
setting_type const &  settings 
) const
std::string MinimalPlotlevelFilter::GetFilterId ( ) const
overridevirtual
void MinimalPlotlevelFilter::Init ( setting_type const &  settings,
metadata_type &  metadata 
)
override
template<typename T >
void MinimalPlotlevelFilter::RemoveSubstrs ( typename std::basic_string< T > &  s,
char  p 
) const
inline

The documentation for this class was generated from the following files: