rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
Rivet::MergeDistance Struct Reference

#include <CentralityBinner.hh>

Static Public Member Functions

static double dist (double cestLo, double cestHi, double weight, double clo, double chi, double, double)
 

Detailed Description

The sole purpose of the MergeDistance class is to provide a "distance" for a potential merging of two neighboring bins in a CentralityBinner.

Member Function Documentation

◆ dist()

static double Rivet::MergeDistance::dist ( double  cestLo,
double  cestHi,
double  weight,
double  clo,
double  chi,
double  ,
double   
)
inlinestatic

This function should return a generalized distance between two adjecent centrality bins to be merged. CentralityBinner will always try to merge bins with the smallest distance. cestLo and are the lower and upper edges of resulting bin. weight is the resulting sum of event weights in the bin. centLo and centHi are the lower and upper prcentile limits where the two bins currently resides. The two last arguments are the total number of events in the two bins and the total number of previous mergers repectively.


The documentation for this struct was generated from the following file: