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

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

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

◆ HepMC2Interface()

HEJ::HepMC2Interface::HepMC2Interface ( LHEF::HEPRUP const &  )

Member Function Documentation

◆ init_event()

HepMC::GenEvent HEJ::HepMC2Interface::init_event ( Event const &  event) const
protected

initialise generic event infomrations (not central weights)

Parameters
eventEvent to convert

◆ operator()()

HepMC::GenEvent HEJ::HepMC2Interface::operator() ( Event const &  event,
int  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::HepMC2Interface::set_central ( HepMC::GenEvent &  out_ev,
Event const &  event,
int  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")

This overwrites the central value of out_ev.

◆ set_xs_scale()

void HEJ::HepMC2Interface::set_xs_scale ( double  scale)

Set the ratio (cross section) / (sum of event weights)


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