HEJ 2 2.0
High energy resummation for hadron colliders
|
This class converts the Events into HepMC::GenEvents. More...
#include <HepMCInterface.hh>
Public Member Functions | |
HepMCInterface () | |
HepMC::GenEvent | operator() (Event const &event, ssize_t weight_index=-1) |
main function to convert an event into HepMC::GenEvent More... | |
HepMC::GenEvent | init_kinematics (Event const &event) |
initialise the event kinematics (everything but the weights) More... | |
void | set_central (HepMC::GenEvent &out_ev, Event const &event, ssize_t weight_index=-1) |
Sets the central value from event to out_ev . More... | |
void | add_variation (HepMC::GenEvent &out_ev, std::vector< EventParameters > const &variations) |
Add the event variations to out_ev . 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::HepMCInterface::HepMCInterface | ( | ) |
void HEJ::HepMCInterface::add_variation | ( | HepMC::GenEvent & | out_ev, |
std::vector< EventParameters > const & | variations | ||
) |
Add the event variations
to out_ev
.
HepMC::GenEvent HEJ::HepMCInterface::init_kinematics | ( | Event const & | event | ) |
initialise the event kinematics (everything but the weights)
event | Event to convert |
weight_index | optional selection of specific weight (negative value gives central weight) |
HepMC::GenEvent HEJ::HepMCInterface::operator() | ( | Event const & | event, |
ssize_t | 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::HepMCInterface::set_central | ( | HepMC::GenEvent & | out_ev, |
Event const & | event, | ||
ssize_t | 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") |