HEJ 2.1.4
High energy resummation for hadron colliders
|
This class converts the Events into HepMC3::GenEvents. More...
#include <HepMC3Interface.hh>
Public Member Functions | |
HepMC3Interface (LHEF::HEPRUP heprup) | |
~HepMC3Interface () | |
HepMC3Interface & | operator= (HepMC3Interface const &other)=default |
HepMC3Interface (HepMC3Interface const &other)=default | |
HepMC3Interface & | operator= (HepMC3Interface &&other)=default |
HepMC3Interface (HepMC3Interface &&other)=default | |
HepMC3::GenEvent | operator() (Event const &event, int weight_index=-1) |
main function to convert an event into HepMC3::GenEvent More... | |
void | set_central (HepMC3::GenEvent &out_ev, Event const &event, int weight_index=-1) |
Sets the central value from event to out_ev . More... | |
std::shared_ptr< HepMC3::GenRunInfo > | run_info () |
Pointer to generic run informations. More... | |
Protected Member Functions | |
HepMC3::GenEvent | init_event (Event const &event) const |
initialise generic event infomrations (not central weights) More... | |
This class converts the Events into HepMC3::GenEvents.
The output is depended on the HepMC3 version HEJ is compiled with, both HepMC3 2 and HepMC3 3 are supported. If HEJ 2 is compiled without HepMC3 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::HepMC3Interface::HepMC3Interface | ( | LHEF::HEPRUP | heprup | ) |
HEJ::HepMC3Interface::~HepMC3Interface | ( | ) |
|
default |
|
default |
|
protected |
initialise generic event infomrations (not central weights)
event | Event to convert |
HepMC3::GenEvent HEJ::HepMC3Interface::operator() | ( | Event const & | event, |
int | weight_index = -1 |
||
) |
main function to convert an event into HepMC3::GenEvent
event | Event to convert |
weight_index | optional selection of specific weight (negative value gives central weight) |
|
default |
|
default |
|
inline |
Pointer to generic run informations.
void HEJ::HepMC3Interface::set_central | ( | HepMC3::GenEvent & | out_ev, |
Event const & | event, | ||
int | weight_index = -1 |
||
) |
Sets the central value from event
to out_ev
.
out_ev | HepMC3::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
.