RAPIDO
Repeatable Analysis Programming for Interpretability, Durability, and Organization
|
#include <cutflow.h>
Public Member Functions | |
LambdaCut (std::string new_name, std::function< bool()> new_evaluate_lambda) | |
LambdaCut (std::string new_name, std::function< bool()> new_evaluate_lambda, std::function< double()> new_weight_lambda) | |
LambdaCut * | clone (std::string new_name) |
bool | evaluate () |
double | weight () |
![]() | |
Cut (std::string new_name) | |
virtual | ~Cut () |
void | print () |
bool | getResult () |
double | getWeight () |
Public Attributes | |
std::function< bool()> | evaluate_lambda |
std::function< double()> | weight_lambda |
![]() | |
std::string | name |
Cut * | parent |
Cut * | right |
Cut * | left |
int | n_pass |
int | n_fail |
double | n_pass_weighted |
double | n_fail_weighted |
Utilities::RunningStat | runtimes |
Object that represents a single cut in an analysis with functionality defined in lambda functions
LambdaCut::LambdaCut | ( | std::string | new_name, |
std::function< bool()> | new_evaluate_lambda ) |
LambadCut object constructor (assumes weight == 1.0)
new_name | new cut name |
new_evaluate_lambda | lambda function that evaluates new cut conditional logic |
LambdaCut::LambdaCut | ( | std::string | new_name, |
std::function< bool()> | new_evaluate_lambda, | ||
std::function< double()> | new_weight_lambda ) |
LambdaCut object constructor
new_name | new cut name |
new_evaluate_lambda | lambda function that evaluates new cut conditional logic |
new_weight_lambda | lambda function that computes event weight |
|
virtual |
Create a copy of this cut object
new_name | name of cut copy |
Reimplemented from Cut.
|
virtual |
|
virtual |
std::function<bool()> LambdaCut::evaluate_lambda |
Lambda function that evaluates conditional logic (i.e. the cut itself)
std::function<double()> LambdaCut::weight_lambda |
Lambda function that computes event weight