Page MenuHomeHEPForge

No OneTemporary

diff --git a/include/RHEJ/Rivet_Analysis.hh b/include/RHEJ/Rivet_Analysis.hh
index e0b5fee..992c68e 100644
--- a/include/RHEJ/Rivet_Analysis.hh
+++ b/include/RHEJ/Rivet_Analysis.hh
@@ -1,57 +1,59 @@
/** \file Rivet_Analysis.hh
- * \brief A custom analysis that calles multiple rivet analyses
+ * \brief A custom analysis that calles multiple rivet analyses
*/
+#pragma once
+
#include <memory>
#include <string>
#include <utility>
#include "RHEJ/Analysis.hh"
#include "RHEJ/HepMCInterface.hh"
namespace RHEJ {
class Event;
}
namespace Rivet {
class AnalysisHandler;
}
namespace YAML {
class Node;
}
namespace RHEJ {
/**
* @brief Rivet analysis which can be called as a normal rHEJ analysis
* @details In the input file both "analysis" (list of rivet analysis to be called)
* and "output" (prefix for the .yoda files)
*/
class Rivet_Analysis: public RHEJ::Analysis {
public:
static std::unique_ptr<Analysis> create(YAML::Node const & config);
Rivet_Analysis(YAML::Node const & config);
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_;
/** @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_;
};
}
diff --git a/include/RHEJ/resummation_jet_momenta.hh b/include/RHEJ/resummation_jet_momenta.hh
index b3bfe8f..fc8face 100644
--- a/include/RHEJ/resummation_jet_momenta.hh
+++ b/include/RHEJ/resummation_jet_momenta.hh
@@ -1,20 +1,21 @@
/** \file resummation_jet_momenta.hh
* \brief Contains the functions which can calculate the resummed jet momenta
*/
+#pragma once
#include "RHEJ/utility.hh"
namespace RHEJ{
/**
* \brief Calculate the resummation jet momenta
* @param p_born Born Jet Momenta
* @param qperp Sum of non-jet Parton Transverse Momenta
* @returns Resummation Jet Momenta
*/
std::vector<fastjet::PseudoJet> resummation_jet_momenta(
std::vector<fastjet::PseudoJet> const & p_born,
fastjet::PseudoJet const & qperp
);
}

File Metadata

Mime Type
text/x-diff
Expires
Mon, Jan 20, 9:13 PM (21 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4242423
Default Alt Text
(2 KB)

Event Timeline