Loading [MathJax]/extensions/tex2jax.js
hej is hosted by Hepforge, IPPP Durham
HEJ  2.3.0
High energy resummation for hadron colliders
CombinedEventWriter.hh
Go to the documentation of this file.
1 
8 #pragma once
9 
10 #include <memory>
11 #include <string_view>
12 #include <vector>
13 
14 #include "HEJ/EventWriter.hh"
15 
16 namespace LHEF {
17  class HEPRUP;
18 }
19 
20 namespace HEJ {
21  class Event;
22  struct OutputFile;
23 
26  public:
28 
35  std::vector<OutputFile> const & outfiles,
36  LHEF::HEPRUP const & heprup
37  );
39 
47  std::vector<OutputFile> const & outfiles,
48  LHEF::HEPRUP const & heprup,
49  std::string_view config
50  );
52 
54  void write(Event const & /*ev*/) override;
55 
57  void set_xs_scale(double scale) override;
58 
61  void finish() override;
62 
63  private:
64  std::vector<std::unique_ptr<EventWriter>> writers_;
65  };
66 
67 } // namespace HEJ
Header file for the EventWriter interface.
Write event output to zero or more output files.
Definition: CombinedEventWriter.hh:25
void write(Event const &) override
Write one event to all output files.
CombinedEventWriter(std::vector< OutputFile > const &outfiles, LHEF::HEPRUP const &heprup)
Constructor.
~CombinedEventWriter() override
void finish() override
CombinedEventWriter(std::vector< OutputFile > const &outfiles, LHEF::HEPRUP const &heprup, std::string_view config)
Constructor.
void set_xs_scale(double scale) override
Set the ratio (cross section) / (sum of event weights)
Pure abstract base class for event writers.
Definition: EventWriter.hh:16
An event with clustered jets.
Definition: Event.hh:51
Main HEJ 2 Namespace.
Definition: mainpage.dox:1
Definition: Analysis.hh:14