hej
is hosted by
Hepforge
,
IPPP Durham
HEJ
2.2.2
High energy resummation for hadron colliders
Loading...
Searching...
No Matches
include
HEJ
HepMC2Interface.hh
Go to the documentation of this file.
1
8
#pragma once
9
10
#include <array>
11
#include <cstddef>
12
13
#include "
HEJ/PDG_codes.hh
"
14
15
namespace
HepMC
{
16
class
GenCrossSection;
17
class
GenEvent;
18
}
19
20
namespace
LHEF
{
21
class
HEPRUP;
22
}
23
24
namespace
HEJ
{
25
class
Event;
27
36
class
HepMC2Interface
{
37
public
:
38
HepMC2Interface
(LHEF::HEPRUP
const
&
/*heprup*/
);
46
HepMC::GenEvent
operator()
(
Event
const
& event,
47
int
weight_index = -1);
58
void
set_central
(HepMC::GenEvent & out_ev,
Event
const
& event,
59
int
weight_index = -1);
60
62
void
set_xs_scale
(
double
scale);
63
64
protected
:
70
HepMC::GenEvent
init_event
(
Event
const
& event)
const
;
71
72
private
:
73
std::array<ParticleID,2> beam_particle_{};
74
std::array<double,2> beam_energy_{};
75
std::size_t event_count_;
76
double
tot_weight_;
77
double
tot_weight2_;
78
double
xs_scale_ = 1.;
79
HepMC::GenCrossSection cross_section()
const
;
80
};
81
}
// namespace HEJ
PDG_codes.hh
Contains the Particle IDs of all relevant SM particles.
HEJ::Event
An event with clustered jets.
Definition:
Event.hh:51
HEJ::HepMC2Interface
This class converts the Events into HepMC::GenEvents.
Definition:
HepMC2Interface.hh:36
HEJ::HepMC2Interface::HepMC2Interface
HepMC2Interface(LHEF::HEPRUP const &)
HEJ::HepMC2Interface::set_xs_scale
void set_xs_scale(double scale)
Set the ratio (cross section) / (sum of event weights)
HEJ::HepMC2Interface::set_central
void set_central(HepMC::GenEvent &out_ev, Event const &event, int weight_index=-1)
Sets the central value from event to out_ev.
HEJ::HepMC2Interface::init_event
HepMC::GenEvent init_event(Event const &event) const
initialise generic event infomrations (not central weights)
HEJ::HepMC2Interface::operator()
HepMC::GenEvent operator()(Event const &event, int weight_index=-1)
main function to convert an event into HepMC::GenEvent
HEJ
Main HEJ 2 Namespace.
Definition:
mainpage.dox:1
HepMC
Definition:
HepMC2Interface.hh:15
LHEF
Definition:
Analysis.hh:14
Generated by
1.9.5