Loading [MathJax]/extensions/tex2jax.js
hej is hosted by Hepforge, IPPP Durham
HEJ  2.3.0
High energy resummation for hadron colliders
HepMC2Interface.hh
Go to the documentation of this file.
1 
8 #pragma once
9 
10 #include <array>
11 #include <cstddef>
12 
13 #include "HEJ/PDG_codes.hh"
14 
15 namespace HepMC {
16  class GenCrossSection;
17  class GenEvent;
18 }
19 
20 namespace LHEF {
21  class HEPRUP;
22 }
23 
24 namespace HEJ {
25  class Event;
27 
37  public:
38  HepMC2Interface(LHEF::HEPRUP const & /*heprup*/);
47  int weight_index = -1);
58  void set_central(HepMC::GenEvent & out_ev, Event const & event,
59  int weight_index = -1);
60 
62  void set_xs_scale(double scale);
63 
64  protected:
70  HepMC::GenEvent init_event(Event const & event) const;
71 
72  private:
73  std::array<ParticleID,2> beam_particle_{};
74  std::array<double,2> beam_energy_{};
75  std::size_t event_count_;
76  double tot_weight_;
77  double tot_weight2_;
78  double xs_scale_ = 1.;
79  HepMC::GenCrossSection cross_section() const;
80  };
81 } // namespace HEJ
Contains the Particle IDs of all relevant SM particles.
An event with clustered jets.
Definition: Event.hh:51
This class converts the Events into HepMC::GenEvents.
Definition: HepMC2Interface.hh:36
HepMC2Interface(LHEF::HEPRUP const &)
void set_xs_scale(double scale)
Set the ratio (cross section) / (sum of event weights)
void set_central(HepMC::GenEvent &out_ev, Event const &event, int weight_index=-1)
Sets the central value from event to out_ev.
HepMC::GenEvent init_event(Event const &event) const
initialise generic event infomrations (not central weights)
HepMC::GenEvent operator()(Event const &event, int weight_index=-1)
main function to convert an event into HepMC::GenEvent
typename HepMCVersion< V >::GenEvent GenEvent
Definition: HepMCInterface_common.hh:37
Main HEJ 2 Namespace.
Definition: mainpage.dox:1
Definition: HepMC2Interface.hh:15
Definition: Analysis.hh:14