rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
Rivet::CentralityBinTraits< T > Struct Template Reference

#include <CentralityBinner.hh>

Static Public Member Functions

static T clone (const T &t)
 Make a clone of the given object.
 
static void add (T &t, const T &o)
 Add the contents of o to t.
 
static void scale (T &t, double f)
 Scale the contents of a given object.
 
static void normalize (T &t, double sumw)
 
static string path (T t)
 Return the path of an AnalysisObject.
 

Detailed Description

template<typename T>
struct Rivet::CentralityBinTraits< T >

This is a traits class describing how to handle object handles by CentralityBinner. The default implementation basically describes what to do with Histo1DPtr.

Member Function Documentation

◆ normalize()

template<typename T>
static void Rivet::CentralityBinTraits< T >::normalize ( T &  t,
double  sumw 
)
inlinestatic

Normalize the AnalysisObject to the sum of weights in a centrality bin.

Referenced by Rivet::CentralityBinner< T, MDist >::estimator(), and Rivet::CentralityBinTraits< vector< T > >::scale().


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