Loading [MathJax]/extensions/tex2jax.js
Darwin  1.0
Event loop based prototype framework
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Eventabstract

Description

Abstract structure for events in data and MC.

#include <Objects.h>

+ Inheritance diagram for Event:
+ Collaboration diagram for Event:

Public Member Functions

virtual float weight () const =0
 
virtual void clear ()
 
 Event ()
 
virtual ~Event ()=default
 

Public Attributes

std::vector< float > weights
 

Constructor & Destructor Documentation

◆ Event()

Event ( )
16 : weights(1,1) { }

◆ ~Event()

virtual ~Event ( )
virtualdefault

Member Function Documentation

◆ clear()

void clear ( )
virtual

resets all members to the same values as in the constructor

Reimplemented in RecEvent, and GenEvent.

11 {
12  weights.resize(1);
13  weights.front() = 1;
14 }

◆ weight()

virtual float weight ( ) const
pure virtual

access to weight, using iWgt in daughter classes

Implemented in RecEvent, and GenEvent.

Member Data Documentation

◆ weights

std::vector<float> weights

The documentation for this struct was generated from the following files:
Darwin::Physics::Event::weights
std::vector< float > weights
Definition: Objects.h:16