hej is hosted by Hepforge, IPPP Durham
HEJ  2.2.3
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 <vector>
12 
13 #include "HEJ/EventWriter.hh"
14 
15 namespace LHEF {
16  class HEPRUP;
17 }
18 
19 namespace HEJ {
20  class Event;
21  struct OutputFile;
22 
25  public:
27 
34  std::vector<OutputFile> const & outfiles,
35  LHEF::HEPRUP const & heprup
36  );
38 
40  void write(Event const & /*ev*/) override;
41 
43  void set_xs_scale(double scale) override;
44 
47  void finish() override;
48 
49  private:
50  std::vector<std::unique_ptr<EventWriter>> writers_;
51  };
52 
53 } // namespace HEJ
Header file for the EventWriter interface.
Write event output to zero or more output files.
Definition: CombinedEventWriter.hh:24
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
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