RAPIDO
Repeatable Analysis Programming for Interpretability, Durability, and Organization
Loading...
Searching...
No Matches
Cut Class Reference

#include <cutflow.h>

Inheritance diagram for Cut:
LambdaCut

Public Member Functions

 Cut (std::string new_name)
 
virtual ~Cut ()
 
virtual Cutclone (std::string new_name)
 
void print ()
 
virtual bool evaluate ()
 
bool getResult ()
 
virtual double weight ()
 
double getWeight ()
 

Public Attributes

std::string name
 
Cutparent
 
Cutright
 
Cutleft
 
int n_pass
 
int n_fail
 
double n_pass_weighted
 
double n_fail_weighted
 
Utilities::RunningStat runtimes
 

Detailed Description

Object that represents a single cut in an analysis

Constructor & Destructor Documentation

◆ Cut()

Cut::Cut ( std::string new_name)

Cut object constructor

Parameters
new_namenew cut name
Returns
none

◆ ~Cut()

Cut::~Cut ( )
virtual

Cut object destructor

Returns
none

Member Function Documentation

◆ clone()

Cut * Cut::clone ( std::string new_name)
virtual

Create a copy of this cut object

Parameters
new_namename of cut copy
Returns
pointer to a copy of this cut object

Reimplemented in LambdaCut.

◆ evaluate()

bool Cut::evaluate ( )
virtual

Evaluate cut logic

Returns
passed/failed (true/false)

Reimplemented in LambdaCut.

◆ getResult()

bool Cut::getResult ( )

Get result for this cut (runs Cut::evaluate); catches exceptions and prints cut name

Returns
whether cut has passed or failed

◆ getWeight()

double Cut::getWeight ( )

Get even weight for this cut (on top of previous cut weights); catches exceptions and prints cut name

Returns
product(event weight, parent weight, grandparent weight, ...)

◆ print()

void Cut::print ( )

Print cut object properties

Returns
none

◆ weight()

double Cut::weight ( )
virtual

Get even weight for this cut only

Returns
event weight

Reimplemented in LambdaCut.

Member Data Documentation

◆ left

Cut* Cut::left

Pointer to next cut to evaluate if this cut evaluates to false

◆ n_fail

int Cut::n_fail

Number of events that fail cut

◆ n_fail_weighted

double Cut::n_fail_weighted

Weighted number of events that fail cut

◆ n_pass

int Cut::n_pass

Number of events that pass cut

◆ n_pass_weighted

double Cut::n_pass_weighted

Weighted number of events that pass cut

◆ name

std::string Cut::name

Unique name of cut

◆ parent

Cut* Cut::parent

Pointer to parent cut

◆ right

Cut* Cut::right

Pointer to next cut to evaluate if this cut evaluates to true

◆ runtimes

Utilities::RunningStat Cut::runtimes

RunningStat object for cut runtimes


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