DAS  3.0
Das Analysis System
AbstractEventabstract

Description

Generic event class for both generator and detector levels. Most notably, it provides access to the weights via Darwin::Physics::Variation.

#include <Event.h>

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

Public Member Functions

double Weight (const Variation &v) const
 
virtual void clear ()=0
 
double Weight (const Variation &v) const
 
virtual void clear ()=0
 

Public Attributes

Weights weights = {{1.,0}}
 

Protected Member Functions

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

Constructor & Destructor Documentation

◆ AbstractEvent() [1/2]

AbstractEvent ( )
protecteddefault

◆ ~AbstractEvent() [1/2]

virtual ~AbstractEvent ( )
protectedvirtualdefault

◆ AbstractEvent() [2/2]

AbstractEvent ( )
protecteddefault

◆ ~AbstractEvent() [2/2]

virtual ~AbstractEvent ( )
protectedvirtualdefault

Member Function Documentation

◆ clear() [1/2]

virtual void clear ( )
pure virtual

Implemented in RecEvent, RecEvent, GenEvent, and GenEvent.

◆ clear() [2/2]

virtual void clear ( )
pure virtual

Implemented in RecEvent, RecEvent, GenEvent, and GenEvent.

◆ Weight() [1/2]

double Weight ( const Variation v) const
inline

< weight

29  {
30  if (v.Group() == weight_group()) {
31  namespace DP = Darwin::Physics;
32  const DP::Weight& w = weights.at(v.Index());
33  if (w.i == v.Bit()) return w;
34  }
35  return weights.front();
36  }

◆ Weight() [2/2]

double Weight ( const Variation v) const
inline

< weight

29  {
30  if (v.Group() == weight_group()) {
31  namespace DP = Darwin::Physics;
32  const DP::Weight& w = weights.at(v.Index());
33  if (w.i == v.Bit()) return w;
34  }
35  return weights.front();
36  }

◆ weight_group() [1/2]

virtual std::string_view weight_group ( ) const
protectedpure virtual

Implemented in RecEvent, RecEvent, GenEvent, and GenEvent.

◆ weight_group() [2/2]

virtual std::string_view weight_group ( ) const
protectedpure virtual

Implemented in RecEvent, RecEvent, GenEvent, and GenEvent.

Member Data Documentation

◆ weights

Weights weights = {{1.,0}}

e.g. cross section normalisation


The documentation for this class was generated from the following file:
Darwin::Physics::Weight
Definition: Weight.h:17
DAS::JetEnergy::w
static const float w
Definition: common.h:51
Darwin::Physics::AbstractEvent::weight_group
virtual std::string_view weight_group() const =0
Darwin::Physics::AbstractEvent::weights
Weights weights
e.g. cross section normalisation
Definition: Event.h:26
Darwin::Physics
Everything what concerns physics analysis directly.
Definition: darwin.h:23