hej is hosted by Hepforge, IPPP Durham
HEJ 2 2.0
High energy resummation for hadron colliders
Loading...
Searching...
No Matches
HEJ::HepMCInterface Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ HepMCInterface()

HEJ::HepMCInterface::HepMCInterface ( )

Member Function Documentation

◆ add_variation()

void HEJ::HepMCInterface::add_variation ( HepMC::GenEvent &  out_ev,
std::vector< EventParameters > const &  variations 
)

Add the event variations to out_ev.

◆ init_kinematics()

HepMC::GenEvent HEJ::HepMCInterface::init_kinematics ( Event const &  event)

initialise the event kinematics (everything but the weights)

Parameters
eventEvent to convert
weight_indexoptional selection of specific weight (negative value gives central weight)

◆ operator()()

HepMC::GenEvent HEJ::HepMCInterface::operator() ( Event const &  event,
ssize_t  weight_index = -1 
)

main function to convert an event into HepMC::GenEvent

Parameters
eventEvent to convert
weight_indexoptional selection of specific weight (negative value gives central weight)

◆ set_central()

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.

Parameters
out_evHepMC::GenEvent to write to
eventEvent to convert
weight_indexoptional selection of specific weight (negative value gives "central")

The documentation for this class was generated from the following file: