Page MenuHomeHEPForge

No OneTemporary

diff --git a/include/RHEJ/RivetAnalysis.hh b/include/RHEJ/RivetAnalysis.hh
index c5f0983..76711a7 100644
--- a/include/RHEJ/RivetAnalysis.hh
+++ b/include/RHEJ/RivetAnalysis.hh
@@ -1,71 +1,71 @@
/** \file
* \brief Reversed HEJ interface to rivet analyses
*/
#pragma once
#include <memory>
#include <string>
-#include <utility>
+#include <vector>
#include "RHEJ/Analysis.hh"
#include "RHEJ/HepMCInterface.hh"
namespace RHEJ {
class Event;
}
namespace Rivet {
class AnalysisHandler;
}
namespace YAML {
class Node;
}
namespace RHEJ {
/**
* @brief Class representing a Rivet analysis
*
* This class inherits from Analysis and can therefore be used
* like any other reversed HEJ analysis.
*/
class RivetAnalysis: public RHEJ::Analysis {
public:
static std::unique_ptr<Analysis> create(YAML::Node const & config);
//! Constructor
/**
* @param config Configuration parameters
*
* config["analysis"] should be the name of a single Rivet analysis or
* a list of Rivet analyses. config["output"] is the prefix for
* the .yoda output files.
*/
RivetAnalysis(YAML::Node const & config);
//! Pass an event to the underlying Rivet analysis
void fill(RHEJ::Event const & event, RHEJ::Event const &) override;
bool pass_cuts(RHEJ::Event const &, RHEJ::Event const &) override
{return true;} //< no additional cuts are applied
void finalise() override;
private:
std::vector<std::string> analyses_names_;
const std::string output_name_;
/// struct to organise the infos per rivet run/scale setting
struct rivet_info {
std::unique_ptr<Rivet::AnalysisHandler> handler;
std::string name;
RHEJ::HepMCInterface hepmc;
};
std::vector<rivet_info> rivet_runs_;
/**
* \internal
* @brief Calculates the scale variation from the first event for the output file
* @note Name is wrong if multiple scale functions are choosen
* @TODO is there a better way of finding the scale factor?
*/
void init(RHEJ::Event const & event);
bool first_event_;
};
}

File Metadata

Mime Type
text/x-diff
Expires
Mon, Jan 20, 9:15 PM (23 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4242446
Default Alt Text
(2 KB)

Event Timeline