HEJ 2.2.2
High energy resummation for hadron colliders
|
This class converts the Events into HepMC::GenEvents. More...
#include <HepMC2Interface.hh>
Public Member Functions | |
HepMC2Interface (LHEF::HEPRUP const &) | |
HepMC::GenEvent | operator() (Event const &event, int weight_index=-1) |
main function to convert an event into HepMC::GenEvent More... | |
void | set_central (HepMC::GenEvent &out_ev, Event const &event, int weight_index=-1) |
Sets the central value from event to out_ev . More... | |
void | set_xs_scale (double scale) |
Set the ratio (cross section) / (sum of event weights) More... | |
Protected Member Functions | |
HepMC::GenEvent | init_event (Event const &event) const |
initialise generic event infomrations (not central weights) More... | |
This class converts the Events into HepMC::GenEvents.
The output is depended on the HepMC version HEJ is compiled with, both HepMC 2 and HepMC 3 are supported. If HEJ 2 is compiled without HepMC calling this interface will throw an error.
This interface will also keep track of the cross section of all the events that being fed into it.
HEJ::HepMC2Interface::HepMC2Interface | ( | LHEF::HEPRUP const & | ) |
|
protected |
initialise generic event infomrations (not central weights)
event | Event to convert |
HepMC::GenEvent HEJ::HepMC2Interface::operator() | ( | Event const & | event, |
int | weight_index = -1 |
||
) |
main function to convert an event into HepMC::GenEvent
event | Event to convert |
weight_index | optional selection of specific weight (negative value gives central weight) |
void HEJ::HepMC2Interface::set_central | ( | HepMC::GenEvent & | out_ev, |
Event const & | event, | ||
int | weight_index = -1 |
||
) |
Sets the central value from event
to out_ev
.
out_ev | HepMC::GenEvent to write to |
event | Event to convert |
weight_index | optional selection of specific weight (negative value gives "central") |
This overwrites the central value of out_ev
.
void HEJ::HepMC2Interface::set_xs_scale | ( | double | scale | ) |
Set the ratio (cross section) / (sum of event weights)