DAS  3.0
Das Analysis System
Weight

Description

Generic entry weight, including a correlation bit.

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)
 
 Weight (double v=1, int i=0)
 
 operator double () const
 
Weightoperator= (const double v)
 
 Weight (double v=1, int i=0)
 

Public Attributes

double v
 
int i
 

Constructor & Destructor Documentation

◆ Weight() [1/2]

Weight ( double  v = 1,
int  i = 0 
)
inline
24 : v(v), i(i) { }

◆ Weight() [2/2]

Weight ( double  v = 1,
int  i = 0 
)
inline
24 : v(v), i(i) { }

Member Function Documentation

◆ operator double() [1/2]

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

◆ operator double() [2/2]

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Member Data Documentation

◆ i

int i

correlation index

◆ v

double v

value


The documentation for this struct was generated from the following file:
Darwin::Physics::Weight::i
int i
correlation index
Definition: Weight.h:21
Darwin::Physics::Weight::v
double v
value
Definition: Weight.h:20