hej is hosted by Hepforge, IPPP Durham
HEJ  2.1.4
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 
61  protected:
67  HepMC::GenEvent init_event(Event const & event) const;
68 
69  private:
70  std::array<ParticleID,2> beam_particle_{};
71  std::array<double,2> beam_energy_{};
72  std::size_t event_count_;
73  double tot_weight_;
74  double tot_weight2_;
75  HepMC::GenCrossSection cross_section() const;
76  };
77 } // namespace HEJ
Contains the Particle IDs of all relevant SM particles.
An event with clustered jets.
Definition: Event.hh:47
This class converts the Events into HepMC::GenEvents.
Definition: HepMC2Interface.hh:36
HepMC2Interface(LHEF::HEPRUP const &)
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