DAS  3.0
Das Analysis System
Weight

Description

Mimics a pair<double,int>, where the double contains a weight (either gen or rec level, for events, jets, photons, etc.), and the int an index. For bin-to-bin correlated (uncorrelated) uncertainties, it should always be 0 (correspond to the index of the bin containing the corrections). This allows to handle the decorrelations coming from independent stat in different bins.

A few operators are overloaded so that the weight may be used just as a floating number.

#include <Weight.h>

Public Member Functions

 operator double () const
 
Weightoperator= (const double v)
 
 operator double () const
 
Weightoperator= (const double v)
 

Public Attributes

double v = 1
 
int i = 0
 

Member Function Documentation

◆ operator double() [1/2]

operator double ( ) const
inline
20 { return v; }

◆ operator double() [2/2]

operator double ( ) const
inline
20 { return v; }

◆ operator=() [1/2]

Weight& operator= ( const double  v)
inline
21 { this->v = v; return *this; }

◆ operator=() [2/2]

Weight& operator= ( const double  v)
inline
21 { this->v = v; return *this; }

Member Data Documentation

◆ i

int i = 0

correlation index

◆ v

double v = 1

value


The documentation for this struct was generated from the following file:
Darwin::Physics::Weight::v
double v
value
Definition: Weight.h:18