DAS  3.0
Das Analysis System
Event.cc File Reference
#include <Event.h>
#include <boost/test/included/unit_test.hpp>
#include <iostream>
+ Include dependency graph for Event.cc:

Macros

#define BOOST_TEST_MODULE   Event
 

Functions

 BOOST_AUTO_TEST_CASE (genevents)
 
 BOOST_AUTO_TEST_CASE (recevents)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Event

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( genevents  )
17 {
18  GenEvent event;
19  BOOST_TEST( event.weights.front() == 1 );
20  BOOST_TEST( event.weights.size () == (size_t) 1 );
21  BOOST_TEST( event.hard_scale == 0 );
22 
23  event.weights.front() = 42;
24 
25  BOOST_TEST( event.weights.front() == 42 );
26 
27  event.clear();
28  BOOST_TEST( event.weights.front() == 1 );
29  BOOST_TEST( event.weights.size () == (size_t) 1 );
30  BOOST_TEST( event.hard_scale == 0 );
31 
32  cout << event << endl;
33 }

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( recevents  )
36 {
37  RecEvent event;
38  BOOST_TEST( event.weights.front() == 1 );
39  BOOST_TEST( event.weights.size () == (size_t) 1 );
40  BOOST_TEST( event.fill == 0 );
41  BOOST_TEST( event.runNo == 0 );
42  BOOST_TEST( event.lumi == 0 );
43  BOOST_TEST( event.evtNo == (unsigned long long) 0 );
44 
45  event.weights.front() = 42;
46 
47  BOOST_TEST( event.weights.front() == 42 );
48 
49  event.clear();
50  BOOST_TEST( event.weights.front() == 1 );
51  BOOST_TEST( event.weights.size () == (size_t) 1 );
52  BOOST_TEST( event.fill == 0 );
53  BOOST_TEST( event.runNo == 0 );
54  BOOST_TEST( event.lumi == 0 );
55  BOOST_TEST( event.evtNo == (unsigned long long) 0 );
56 
57  cout << event << endl;
58 }
BOOST_TEST
BOOST_TEST(gendijet.Rapidity()==1.3573785791881385)
Darwin::Physics::RecEvent::evtNo
unsigned long long evtNo
event number
Definition: Event.h:74
Darwin::Physics::RecEvent::runNo
int runNo
at LHC, typically a 6-digit run number
Definition: Event.h:72
Darwin::Physics::GenEvent
Generic generator-level event.
Definition: Event.h:43
Darwin::Physics::RecEvent
Generic detector-level event.
Definition: Event.h:64
Darwin::Physics::GenEvent::hard_scale
float hard_scale
hard scale, corresponding to pthat in Pythia 8
Definition: Event.h:50
Darwin::Physics::RecEvent::fill
int fill
at LHC, typically a 4-digit number
Definition: Event.h:71
Darwin::Physics::AbstractEvent::weights
Weights weights
e.g. cross section normalisation
Definition: Event.h:26
Darwin::Physics::RecEvent::lumi
int lumi
lumi section (shortest unit time in LHC jargon)
Definition: Event.h:73