Namespace: Htxs

namespace htxs

namespace used for HTXS related functions

Functions

ROOT::RDF::RNode ggHNNLOWeights(ROOT::RDF::RNode df, const std::string &weight_name, const std::string &rootfilename, const std::string &generator, const std::string &htxs_pth, const std::string &htxs_njets)

Function to derive the ggH NNLO weights.

Parameters:
  • df – the input dataframe

  • weight_name – Name of the derived weight in the dataframe.

  • rootfilename – Path to the rootfile containing the weight graphs. Corresponding cutoffs are hardcoded in this function.

  • generator – Generator that was used to simulate the ggH sample, either powheg or amcatnlo.

  • htxs_pth – Name of the column with pt(H) from the htxs module.

  • htxs_njets – Name of the column with the number of jets from the htxs module.

Returns:

a dataframe with the weight column included

ROOT::RDF::RNode ggH_WG1_uncertainties(ROOT::RDF::RNode df, const std::vector<std::string> &weight_names, const std::string &htxs_flag, const std::string &htxs_pth, const std::string &htxs_njets)

Function to derive the WG1 ggH uncertainty weights.

Parameters:
  • df – the input dataframe

  • weight_names – Names of the derived weight in the dataframe in the order given by the WG1 macro.

  • htxs_flag – Name of the column with the htxs stage1 (NOT 1.1, 1.2 or later!) flag.

  • htxs_pth – Name of the column with pt(H) from the htxs module.

  • htxs_njets – Name of the column with the number of jets from the htxs module.

Returns:

a dataframe with the weight column included.

ROOT::RDF::RNode qqH_WG1_uncertainties(ROOT::RDF::RNode df, const std::vector<std::string> &weight_names, const std::string &htxs_flag, const size_t &idx = 0)

Function to derive the WG1 qqH uncertainty weights. The application is explicitly restricted to qqH events according to the STXS flag such that e.g. VH samples can be run with this but VHlep events obtain a weight of 1.0.

Parameters:
  • df – the input dataframe

  • weight_names – Names of the derived weight in the dataframe in the order given by the WG1 macro.

  • htxs_flag – Name of the column with the fine htxs stage1.1 flag. module.

  • idx – initial uncertainty index. It is 0 by default and should not be set by the user. The parameter is needed for the recursive operation of this function.

Returns:

a dataframe with the weight columns included.