hej is hosted by Hepforge, IPPP Durham
HEJ 2  2.0
High energy resummation for hadron colliders
HepMCWriter.hh
Go to the documentation of this file.
1 
9 #pragma once
10 
11 #include <memory>
12 #include <string>
13 
14 #include "HEJ/EventWriter.hh"
15 
16 namespace LHEF {
17  class HEPRUP;
18 }
19 
20 namespace HEJ{
21  class Event;
22 
24 
33  class HepMCWriter: public EventWriter{
34  public:
36 
40  HepMCWriter(std::string const & file, LHEF::HEPRUP heprup);
41  ~HepMCWriter() override = default;
42 
44  void write(Event const & ev) override;
45 
46  private:
47  struct HepMCWriterImpl;
48  struct HepMCWriterImplDeleter {
49  void operator()(HepMCWriterImpl* p);
50  };
51 
52  std::unique_ptr<HepMCWriterImpl, HepMCWriterImplDeleter> impl_;
53  };
54 
55 }
Header file for the EventWriter interface.
Definition: Event.hh:84
This is an event writer specifically for HepMC output.
Definition: HepMCWriter.hh:33
HepMCWriter(std::string const &file, LHEF::HEPRUP heprup)
Constructor.
~HepMCWriter() override=default
void write(Event const &ev) override
Write an event to the output file.
@ p
Definition: PDG_codes.hh:70
Main HEJ 2 Namespace.
Definition: mainpage.dox:1
Definition: CombinedEventWriter.hh:17
Pure abstract base class for event writers.
Definition: EventWriter.hh:14