Darwin  1.0
Event loop based prototype framework
RecEvent

Description

Structure for events in data and MC

A priori, in MC, the values for the fill and run numbers are trivial. It is however in principle possible to distribute the MC events in a realistic way to better account for time dependence.

#include <Objects.h>

+ Inheritance diagram for RecEvent:
+ Collaboration diagram for RecEvent:

Public Member Functions

float weight () const final
 
void clear () override
 
 RecEvent ()
 
- Public Member Functions inherited from Event
 Event ()
 
virtual ~Event ()=default
 

Public Attributes

int fill
 
int runNo
 
int lumi
 
unsigned long long evtNo
 
- Public Attributes inherited from Event
std::vector< float > weights
 

Static Public Attributes

static size_t iWgt = 0
 

Constructor & Destructor Documentation

◆ RecEvent()

RecEvent ( )
39 : fill(0), runNo(0), lumi(0), evtNo(0) { }

Member Function Documentation

◆ clear()

void clear ( )
overridevirtual

resets all members to the same values as in the constructor

Reimplemented from Event.

42 {
43  Event::clear();
44  fill = 0;
45  runNo = 0;
46  lumi = 0;
47  evtNo = 0;
48 }

◆ weight()

float weight ( ) const
finalvirtual

uses iWgt internally

Implements Event.

37 { return weights.at(iWgt); }

Member Data Documentation

◆ evtNo

unsigned long long evtNo

event number

◆ fill

int fill

4-digit LHC fill

◆ iWgt

size_t iWgt = 0
static

global index for weight

◆ lumi

int lumi

lumi section

◆ runNo

int runNo

6-digit run number


The documentation for this struct was generated from the following files:
Darwin::Physics::RecEvent::evtNo
unsigned long long evtNo
event number
Definition: Objects.h:46
Darwin::Physics::RecEvent::runNo
int runNo
6-digit run number
Definition: Objects.h:44
Darwin::Physics::RecEvent::lumi
int lumi
lumi section
Definition: Objects.h:45
Darwin::Physics::Event::weights
std::vector< float > weights
Definition: Objects.h:16
Darwin::Physics::RecEvent::iWgt
static size_t iWgt
global index for weight
Definition: Objects.h:41
Darwin::Physics::Event::clear
virtual void clear()
resets all members to the same values as in the constructor
Definition: Objects.cc:10
Darwin::Physics::RecEvent::fill
int fill
4-digit LHC fill
Definition: Objects.h:43