DAS  3.0
Das Analysis System
AbstractEventabstract

Description

Generic event class for both gen and rec levels, essentially providing access to the weights via DAS::Uncertainties::Variation.

#include <Event.h>

+ Inheritance diagram for AbstractEvent:
+ Collaboration diagram for AbstractEvent:

Public Member Functions

double Weight (const Uncertainties::Variation &v) const
 

Public Attributes

Weights weights
 

Protected Member Functions

virtual std::string_view weight_group () const =0
 
 AbstractEvent ()=default
 
virtual ~AbstractEvent ()=default
 

Constructor & Destructor Documentation

◆ AbstractEvent()

AbstractEvent ( )
protecteddefault

◆ ~AbstractEvent()

virtual ~AbstractEvent ( )
protectedvirtualdefault

Member Function Documentation

◆ Weight()

double Weight ( const Uncertainties::Variation v) const
inline

< weight

26  {
27  if (v.group == weight_group()) {
28  const DAS::Weight& w = weights.at(v.index);
29  if (w.i == v.bit) return w;
30  }
31  return weights.front();
32  }

◆ weight_group()

virtual std::string_view weight_group ( ) const
protectedpure virtual

Implemented in RecEvent, and GenEvent.

Member Data Documentation

◆ weights

Weights weights

e.g. cross section normalisation


The documentation for this class was generated from the following file:
DAS::AbstractEvent::weights
Weights weights
e.g. cross section normalisation
Definition: Event.h:23
DAS::JetEnergy::w
static const float w
Definition: common.h:47
DAS::AbstractEvent::weight_group
virtual std::string_view weight_group() const =0
DAS::Weight
Definition: Weight.h:16