Namespace: Topreco

namespace topreco

Functions

ROOT::RDF::RNode LeptonSelection(ROOT::RDF::RNode df, const std::string &str_n_loose_mu, const std::string &str_n_loose_el, const std::string &str_n_tight_mu, const std::string &str_n_tight_el, const std::string &str_tight_muons_mask, const std::string &str_tight_electrons_mask, const std::string &str_n_antitight_mu, const std::string &str_n_antitight_el, const std::string &str_antitight_muons_mask, const std::string &str_antitight_electrons_mask, const std::string &str_mu_pt, const std::string &str_mu_eta, const std::string &str_mu_phi, const std::string &str_mu_mass, const std::string &str_mu_charge, const std::string &str_el_pt, const std::string &str_el_eta, const std::string &str_el_detasc, const std::string &str_el_phi, const std::string &str_el_mass, const std::string &str_el_charge, const std::string &str_n_loose_lep, const std::string &str_n_tight_lep, const std::string &str_n_antitight_lep, const std::string &str_is_mu, const std::string &str_is_el, const std::string &str_is_iso, const std::string &str_lep_p4, const std::string &str_lep_sceta, const std::string &str_lep_charge, const std::string &str_mu_index, const std::string &str_el_index)

Function to create columns for isolated and antiisolated leptons quantities, as used for a semileptonic top selection.

Parameters:
  • df[in] The input dataframe.

  • str_n_loose_mu[in] Name of the column containing the number of loose muons.

  • str_n_loose_el[in] Name of the column containing the number of loose electrons.

  • str_n_tight_mu[in] Name of the column containing the number of tight muons.

  • str_n_tight_el[in] Name of the column containing the number of tight electrons.

  • str_tight_muons_mask[in] Name of the column containing the mask for tight muons.

  • str_tight_electrons_mask[in] Name of the column containing the mask for tight electrons.

  • str_n_antitight_mu[in] Name of the column containing the number of antitight muons.

  • str_n_antitight_el[in] Name of the column containing the number of antitight electrons.

  • str_antitight_muons_mask[in] Name of the column containing the mask for antitight muons.

  • str_antitight_electrons_mask[in] Name of the column containing the mask for antitight electrons.

  • str_mu_pt[in] Name of the column for the muon pT in nanoAOD.

  • str_mu_eta[in] Name of the column for the muon eta in nanoAOD.

  • str_mu_phi[in] Name of the column for the muon phi in nanoAOD.

  • str_mu_mass[in] Name of the column for the muon mass in nanoAOD.

  • str_mu_charge[in] Name of the column for the muon charge in nanoAOD.

  • str_el_pt[in] Name of the column for the electron pT in nanoAOD.

  • str_el_eta[in] Name of the column for the electron eta in nanoAOD.

  • str_el_detasc[in] Name of the column for the electron delta eta eta_sc in nanoAOD.

  • str_el_phi[in] Name of the column for the electron phi in nanoAOD.

  • str_el_mass[in] Name of the column for the electron mass in nanoAOD.

  • str_el_charge[in] Name of the column for the electron charge in nanoAOD.

  • str_n_loose_lep[out] Name of the output column for the number of loose leptons.

  • str_n_tight_lep[out] Name of the output column for the number of tight leptons.

  • str_n_antitight_lep[out] Name of the output column for the number of antitight leptons.

  • str_is_mu[out] Name of the output column for a muon flag (tight and antitight).

  • str_is_el[out] Name of the output column for an electron flag (tight and antitight).

  • str_is_iso[out] Name of the output column for an isolation flag (muon and electron).

  • str_lep_p4[out] Name of the output column for the lepton four-momenta.

  • str_lep_sceta[out] Name of the output column for the lepton supercluster eta.

  • str_lep_charge[out] Name of the output column for the lepton charge.

  • str_mu_index[out] Name of the output column for the muon index with respect to the nanoAOD input branches.

  • str_el_index[out] Name of the output column for the electron index with respect to the nanoAOD input branches.

Returns:

A dataframe containing the new columns.

double rad_py(double x, double lep_px)
double min_fplus(double *par)
double min_fminus(double *par)
void fcn_plus(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag)
void fcn_minus(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag)
ROOT::RDF::RNode ReconstructLeptonicW(ROOT::RDF::RNode df, const std::string &str_lep_p4, const std::string &str_met_p4, const std::string &str_wlep_p4)

Function to reconstruct a leptonic W boson based on mass constraints and a numerical quadratic equation solver.

Parameters:
  • df[in] The input dataframe.

  • str_lep_p4[in] Name of the column containing the lepton four-momenta.

  • str_met_p4[in] Name of the column containing the missing transverse momentum four-momenta.

  • str_wlep_p4[out] Name of the output column for reconstructed W boson four-momenta.

Returns:

A dataframe containing the new columns.

ROOT::RDF::RNode JetSelection(ROOT::RDF::RNode df, const int &njets, const int &nbjets, const std::string &str_good_jets_mask, const std::string &str_good_bjets_mask)

Selects events with a given number of jets and b-jets.

Parameters:
  • df[in] The input dataframe.

  • njets[in] The number of jets to select.

  • nbjets[in] The number of b-jets to select.

  • str_good_jets_mask[in] The name of the column containing the mask for good jets.

  • str_good_bjets_mask[in] The name of the column containing the mask for good b-jets.

Returns:

A new dataframe containing the selected events.

ROOT::RDF::RNode TopReco(ROOT::RDF::RNode df, const std::string &str_wlep_p4, const std::string &str_n_nonbjets, const std::string &str_nonbjet_p4_1, const std::string &str_nonbjet_btag_1, const std::string &str_nonbjet_p4_2, const std::string &str_nonbjet_btag_2, const std::string &str_n_bjets, const std::string &str_bjet_p4_1, const std::string &str_bjet_btag_1, const std::string &str_bjet_p4_2, const std::string &str_bjet_btag_2, const std::string &str_is_reco, const std::string &str_is_jjb, const std::string &str_is_jjbb, const std::string &str_is_jjjb, const std::string &str_is_jjjbb, const std::string &str_reco_p4s, const std::string &str_top_p4, const std::string &str_tb_p4, const std::string &str_sb_p4)

Function to reconstruct a leptonic top quark from a b jet and a W boson based on the number of jets and b jets in the event.

Parameters:
  • df[in] The input dataframe.

  • str_wlep_p4[in] Name of the column containing the W boson four-momenta.

  • str_n_nonbjets[in] Name of the column containing the number of untagged jets in the event.

  • str_nonbjet_p4_1[in] Name of the column containing the hardest untagged jet four-momenta.

  • str_nonbjet_btag_1[in] Name of the column containing the hardest untagged jet b tagging score.

  • str_nonbjet_p4_2[in] Name of the column containing the second hardest untagged jet four-momenta.

  • str_nonbjet_btag_2[in] Name of the column containing the second hardest untagged jet b tagging score.

  • str_n_bjets[in] Name of the column containing the number of b-tagged jets in the event.

  • str_bjet_p4_1[in] Name of the column containing the hardest b-tagged jet four-momenta.

  • str_bjet_btag_1[in] Name of the column containing the hardest b-tagged jet b tagging score.

  • str_bjet_p4_2[in] Name of the column containing the second hardest b-tagged jet four-momenta.

  • str_bjet_btag_2[in] Name of the column containing the second hardest b-tagged jet b tagging score.

  • str_is_reco[out] Name of the output column for the flag if the top quark is reconstructable.

  • str_is_jjb[out] Name of the output column for the flag if the event falls into the 2j1b category.

  • str_is_jjbb[out] Name of the output column for the flag if the event falls into the 2j2b category.

  • str_is_jjjb[out] Name of the output column for the flag if the event falls into the 3j1b category.

  • str_is_jjjbb[out] Name of the output column for the flag if the event falls into the 3j2b category.

  • str_reco_p4s[out] Name of the output column for the vector of reconstructed particles four-momenta.

  • str_top_p4[out] Name of the output column for the reconstructed top quark four-momenta.

  • str_tb_p4[out] Name of the output column for the reconstructed b quark (top quark decay) four-momenta.

  • str_sb_p4[out] Name of the output column for the reconstructed b quark (top quark production) four-momenta.

Returns:

A dataframe containing the new columns.

ROOT::RDF::RNode DNNQuantities(ROOT::RDF::RNode df, const std::string &str_is_reco, const std::string &str_lep_p4, const std::string &str_met_p4, const std::string &str_wlep_p4, const std::string &str_nonbjet_p4_1, const std::string &str_nonbjet_btag_1, const std::string &str_nonbjet_p4_2, const std::string &str_nonbjet_btag_2, const std::string &str_bjet_p4_1, const std::string &str_bjet_btag_1, const std::string &str_bjet_p4_2, const std::string &str_bjet_btag_2, const std::string &str_top_p4, const std::string &str_tb_p4, const std::string &str_sb_p4, const std::string &str_good_jetslowpt_mask, const std::string &str_jet_pt, const std::string &str_jet_eta, const std::string &str_jet_phi, const std::string &str_jet_mass, const std::string &str_dphi_top_b1, const std::string &str_deta_top_sb, const std::string &str_dphi_b1_b2, const std::string &str_deta_lep_b1, const std::string &str_m_lep_b2, const std::string &str_pt_b1_b2, const std::string &str_costhetastar, const std::string &str_sumht, const std::string &str_wolfram, const std::string &str_deta_topb2_b1)

Function to create additional variables useful in a DNN training

Parameters:
  • df[in] The input dataframe.

  • str_is_reco[in] The name of the column containing the flag if a top quark was reconstructed.

  • str_lep_p4[in] The name of the column containing the lepton four-momenta.

  • str_met_p4[in] The name of the column containing the missing transverse momentum four-momenta.

  • str_wlep_p4[in] The name of the column containing the W boson four-momenta.

  • str_nonbjet_p4_1[in] The name of the column containing the hardest untagged jet four-momenta.

  • str_nonbjet_btag_1[in] The name of the column containing the hardest untagged jet b tagging score.

  • str_nonbjet_p4_2[in] The name of the column containing the second hardest untagged jet four-momenta.

  • str_nonbjet_btag_2[in] The name of the column containing the second hardest untagged jet b tagging score.

  • str_bjet_p4_1[in] The name of the column containing the hardest b-tagged jet four-momenta.

  • str_bjet_btag_1[in] The name of the column containing the hardest b-tagged jet b tagging score.

  • str_bjet_p4_2[in] The name of the column containing the second hardest b-tagged jet four-momenta.

  • str_bjet_btag_2[in] The name of the column containing the second hardest b-tagged jet b tagging score.

  • str_top_p4[in] The name of the column containing the reconstructed top quark four-momenta.

  • str_tb_p4[in] The name of the column containing the reconstructed b quark (top quark decay) four-momenta.

  • str_sb_p4[in] The name of the column containing the reconstructed b quark (top quark production) four-momenta.

  • str_good_jetslowpt_mask[in] The name of the column containing the mask for low pT jets.

  • str_jet_pt[in] The name of the column for the jet pT.

  • str_jet_eta[in] The name of the column for the jet eta.

  • str_jet_phi[in] The name of the column for the jet phi.

  • str_jet_mass[in] The name of the column for the jet mass.

  • str_dphi_top_b1[out] The name of the output column for the delta phi between the reconstructed top quark and the hardest b jet.

  • str_deta_top_sb[out] The name of the output column for the delta eta between the reconstructed top quark and the jet assigned to b quark of the top quark decay.

  • str_dphi_b1_b2[out] The name of the output column for the delta phi between the two b jets.

  • str_deta_lep_b1[out] The name of the output column for the delta eta between the lepton and the hardest b jet.

  • str_m_lep_b2[out] The name of the output column for the invariant mass of the lepton and the second hardest b jet.

  • str_pt_b1_b2[out] The name of the output column for the transverse momentum of the two combined b jets.

  • str_costhetastar[out] The name of the output column for the polarization angle.

  • str_sumht[out] The name of the output column for the sum of Ht.

  • str_wolfram[out] The name of the output column for the third Fox-Wolfram moment.

  • str_deta_topb2_b1[out] The name of the output column for the delta eta between the top quark reconstructed from the second hardest b jet and the hardest b jet.

Returns:

A dataframe containing the new columns.

void sf_from_root_file(TH2D *h, int nbinsx, int nbinsy, float pt, float eta, int var, double *sf)
ROOT::RDF::RNode LeptonScaleFactors(ROOT::RDF::RNode df, const std::string &str_lep_pt, const std::string &str_lep_eta, const std::string &str_lep_sceta, const std::string &str_lep_is_mu, const std::string &str_lep_is_el, const std::string &str_lep_is_iso, const std::string &str_lep_sf_mu_trigger_nom, const std::string &str_lep_sf_mu_trigger_up, const std::string &str_lep_sf_mu_trigger_down, const std::string &str_lep_sf_mu_iso_nom, const std::string &str_lep_sf_mu_iso_up, const std::string &str_lep_sf_mu_iso_down, const std::string &str_lep_sf_mu_id_nom, const std::string &str_lep_sf_mu_id_up, const std::string &str_lep_sf_mu_id_down, const std::string &str_lep_sf_el_trigger_nom, const std::string &str_lep_sf_el_trigger_up, const std::string &str_lep_sf_el_trigger_down, const std::string &str_lep_sf_el_id_nom, const std::string &str_lep_sf_el_id_up, const std::string &str_lep_sf_el_id_down, const std::string &str_lep_sf_el_reco_nom, const std::string &str_lep_sf_el_reco_up, const std::string &str_lep_sf_el_reco_down, const std::string &mu_sf_era, const std::string &mu_trigger_sf_file, const std::string &mu_trigger_sf_file_syst, const std::string &mu_trigger_sf_name, const std::string &mu_trigger_sf_name_syst, const std::string &mu_iso_sf_file, const std::string &mu_iso_sf_file_syst, const std::string &mu_iso_sf_name, const std::string &mu_iso_sf_name_syst, const std::string &mu_sf_file, const std::string &mu_id_sf_name, const std::string &el_sf_era, const std::string &el_trigger_sf_file, const std::string &el_trigger_sf_file_syst, const std::string &el_trigger_sf_name, const std::string &el_trigger_sf_name_syst, const std::string &el_sf_file, const std::string &el_id_sf_name)

Function to add columns for various different lepton scale factors

Parameters:
  • df[in] the input dataframe

  • str_lep_pt[in] name of the column containing the lepton pT

  • str_lep_eta[in] name of the column containing the lepton eta

  • str_lep_sceta[in] name of the column containing the lepton supercluster (electrons only)

  • str_lep_is_mu[in] name of the column containing the flag if the event contains a muon

  • str_lep_is_el[in] name of the column containing the flag if the event contains an electron

  • str_lep_is_iso[in] name of the column containing the flag if the event is (anti-)isolated

  • str_lep_sf_mu_trigger_nom[out] name of the output column for the nominal muon trigger scale factor

  • str_lep_sf_mu_trigger_up[out] name of the output column for the up-shifted muon trigger scale factor

  • str_lep_sf_mu_trigger_down[out] name of the output column for the down-shifted muon trigger scale factor

  • str_lep_sf_mu_iso_nom[out] name of the output column for the nominal muon isolation scale factor

  • str_lep_sf_mu_iso_up[out] name of the output column for the up-shifted muon isolation scale factor

  • str_lep_sf_mu_iso_down[out] name of the output column for the down-shifted muon isolation scale factor

  • str_lep_sf_mu_id_nom[out] name of the output column for the nominal muon ID scale factor

  • str_lep_sf_mu_id_up[out] name of the output column for the up-shifted muon ID scale factor

  • str_lep_sf_mu_id_down[out] name of the output column for the down-shifted muon ID scale factor

  • str_lep_sf_el_trigger_nom[out] name of the output column for the nominal electron trigger scale factor

  • str_lep_sf_el_trigger_up[out] name of the output column for the up-shifted electron trigger scale factor

  • str_lep_sf_el_trigger_down[out] name of the output column for the down-shifted electron trigger scale factor

  • str_lep_sf_el_id_nom[out] name of the output column for the nominal electron ID scale factor

  • str_lep_sf_el_id_up[out] name of the output column for the up-shifted electron ID scale factor

  • str_lep_sf_el_id_down[out] name of the output column for the down-shifted electron ID scale factor

  • str_lep_sf_el_reco_nom[out] name of the output column for the nominal electron reconstruction scale factor

  • str_lep_sf_el_reco_up[out] name of the output column for the up-shifted electron reconstruction scale factor

  • str_lep_sf_el_reco_down[out] name of the output column for the down-shifted electron reconstruction scale factor

  • mu_sf_era[in] name tag for the muon scale factors

  • mu_trigger_sf_file[in] file name for the nominal muon trigger scale factor file

  • mu_trigger_sf_file_syst[in] file name for the shifted muon trigger scale factor file

  • mu_trigger_sf_name[in] name of the nominal muon trigger scale factor in the JSON file

  • mu_trigger_sf_name_syst[in] name of the shifted muon trigger scale factor in the JSON file

  • mu_iso_sf_file[in] file name for the nominal muon isolation scale factor file

  • mu_iso_sf_file_syst[in] file name for the shifted muon isolation scale factor file

  • mu_iso_sf_name[in] name of the nominal muon isolation scale factor in the JSON file

  • mu_iso_sf_name_syst[in] name of the shifted muon isolation scale factor in the JSON file

  • mu_sf_file[in] file name for the MUO POG correction lib file

  • mu_id_sf_name[in] name of the muon ID scale factors

  • el_sf_era[in] name tag for the electron scale factors

  • el_trigger_sf_file[in] file name for the nominal electron trigger scale factor file

  • el_trigger_sf_file_syst[in] file name for the shifted electron trigger scale factor file

  • el_trigger_sf_name[in] name of the nominal electron trigger scale factor in the JSON file

  • el_trigger_sf_name_syst[in] name of the shifted electron trigger scale factor in the JSON file

  • el_sf_file[in] file name for the EGM POG correction lib file

  • el_id_sf_name[in] name of the electron ID scale factors

Returns:

a dataframe containing the new columns

ROOT::RDF::RNode BTagScaleFactors(ROOT::RDF::RNode df, const std::string &str_is_iso, const std::string &str_is_reco, const std::string &str_is_jjb, const std::string &str_is_jjbb, const std::string &str_is_jjjb, const std::string &str_is_jjjbb, const std::string &str_nonbjet_pt_1, const std::string &str_nonbjet_eta_1, const std::string &str_nonbjet_btag_1, const std::string &str_nonbjet_flavor_1, const std::string &str_nonbjet_pt_2, const std::string &str_nonbjet_eta_2, const std::string &str_nonbjet_btag_2, const std::string &str_nonbjet_flavor_2, const std::string &str_bjet_pt_1, const std::string &str_bjet_eta_1, const std::string &str_bjet_btag_1, const std::string &str_bjet_flavor_1, const std::string &str_bjet_pt_2, const std::string &str_bjet_eta_2, const std::string &str_bjet_btag_2, const std::string &str_bjet_flavor_2, const std::string &str_btag_sf_vec, const std::string &str_btagw_nom, const std::string &str_btagw_HFup_corr, const std::string &str_btagw_HFup_uncorr, const std::string &str_btagw_HFdown_corr, const std::string &str_btagw_HFdown_uncorr, const std::string &str_btagw_LFup_corr, const std::string &str_btagw_LFup_uncorr, const std::string &str_btagw_LFdown_corr, const std::string &str_btagw_LFdown_uncorr, const std::string &btag_sf_file, const std::string &btag_corr_algo_HF, const std::string &btag_corr_algo_LF, const std::string &btag_eff_file, const std::string &btag_eff_type, const std::string &btag_wp, const float &max_bjet_eta_sf)

Function to add columns for fixedWP b tagging scale factors based on the event category

Parameters:
  • df[in] The input dataframe

  • str_is_iso[in] Name of the column containing the lepton isolation category

  • str_is_reco[in] Name of the column containing the flag if the event is reconstructable

  • str_is_jjb[in] Name of the column containing the flag if the event falls into the 2j1b category

  • str_is_jjbb[in] Name of the column containing the flag if the event falls into the 2j2b category

  • str_is_jjjb[in] Name of the column containing the flag if the event falls into the 3j1b category

  • str_is_jjjbb[in] Name of the column containing the flag if the event falls into the 3j2b category

  • str_nonbjet_pt_1[in] Name of the column containing the hardest untagged jet pT

  • str_nonbjet_eta_1[in] Name of the column containing the hardest untagged jet eta

  • str_nonbjet_btag_1[in] Name of the column containing the hardest untagged jet b tagging value

  • str_nonbjet_flavor_1[in] Name of the column containing the hardest untagged jet hadron falvor

  • str_nonbjet_pt_2[in] Name of the column containing the second hardest untagged jet pT

  • str_nonbjet_eta_2[in] Name of the column containing the second hardest untagged jet eta

  • str_nonbjet_btag_2[in] Name of the column containing the second hardest untagged jet b tagging value

  • str_nonbjet_flavor_2[in] Name of the column containing the second hardest untagged jet hadron falvor

  • str_bjet_pt_1[in] Name of the column containing the hardest b-tagged jet pT

  • str_bjet_eta_1[in] Name of the column containing the hardest b-tagged jet eta

  • str_bjet_btag_1[in] Name of the column containing the hardest b-tagged jet b tagging value

  • str_bjet_flavor_1[in] Name of the column containing the hardest b-tagged jet hadron falvor

  • str_bjet_pt_2[in] Name of the column containing the second hardest b-tagged jet pT

  • str_bjet_eta_2[in] Name of the column containing the second hardest b-tagged jet eta

  • str_bjet_btag_2[in] Name of the column containing the second hardest b-tagged jet b tagging value

  • str_bjet_flavor_2[in] Name of the column containing the second hardest b-tagged jet hadron falvor

  • str_btag_sf_vec[out] Name of the output column for the vector containing all scale factor variations

  • str_btagw_nom[out] Name of the output column for the nominal scale factor

  • str_btagw_HFup_corr[out] Name of the output column for the HF up-shifted scale factor, correlated fraction among the years

  • str_btagw_HFup_uncorr[out] Name of the output column for the HF up-shifted scale factor, uncorrelated fraction among the years

  • str_btagw_HFdown_corr[out] Name of the output column for the HF down-shifted scale factor, correlated fraction among the years

  • str_btagw_HFdown_uncorr[out] Name of the output column for the HF down-shifted scale factor, uncorrelated fraction among the years

  • str_btagw_LFup_corr[out] Name of the output column for the LF up-shifted scale factor, correlated fraction among the years

  • str_btagw_LFup_uncorr[out] Name of the output column for the LF up-shifted scale factor, uncorrelated fraction among the years

  • str_btagw_LFdown_corr[out] Name of the output column for the LF down-shifted scale factor, correlated fraction among the years

  • str_btagw_LFdown_uncorr[out] Name of the output column for the LF down-shifted scale factor, uncorrelated fraction among the years

  • btag_sf_file[in] File name for the BTV POG correction lib file

  • btag_corr_algo_HF[in] Name of the scale factor method for HF jets

  • btag_corr_algo_LF[in] Name of the scale factor method for LF jets

  • btag_eff_file[in] File name for the b tagging efficiency maps

  • btag_eff_type[in] Type of process for the efficiency map

  • btag_wp[in] B tagging working point

  • max_bjet_eta_sf[in] Maximum abs eta for b jets

Returns:

A dataframe containing the new columns

ROOT::RDF::RNode BTagScaleFactorsGeneric(ROOT::RDF::RNode df, const std::string &str_jet_pt, const std::string &str_jet_eta, const std::string &str_jet_btag, const std::string &str_jet_flavor, const std::string &str_jet_collection, const std::string &str_btag_sf_vec, const std::string &str_btagw_nom, const std::string &str_btagw_HFup_corr, const std::string &str_btagw_HFup_uncorr, const std::string &str_btagw_HFdown_corr, const std::string &str_btagw_HFdown_uncorr, const std::string &str_btagw_LFup_corr, const std::string &str_btagw_LFup_uncorr, const std::string &str_btagw_LFdown_corr, const std::string &str_btagw_LFdown_uncorr, const std::string &btag_sf_file, const std::string &btag_corr_algo_HF, const std::string &btag_corr_algo_LF, const std::string &btag_eff_file, const std::string &btag_eff_type, const std::string &btag_wp, const float &btag_cut, const float &max_bjet_eta_sf)

Function to add columns for fixedWP b tagging scale factors based on a variable number of jets and b-tagged jets.

Parameters:
  • df[in] The input dataframe.

  • str_jet_pt[in] Name of the column containing the vector of jet pT.

  • str_jet_eta[in] Name of the column containing the vector of jet eta.

  • str_jet_btag[in] Name of the column containing the vector of jet b tagging value.

  • str_jet_flavor[in] Name of the column containing the vector of jet hadron flavor.

  • str_jet_collection[in] Name of the column containing the jet collection.

  • str_btag_sf_vec[out] Name of the output column for the vector containing all scale factor variations.

  • str_btagw_nom[out] Name of the output column for the nominal scale factor.

  • str_btagw_HFup_corr[out] Name of the output column for the HF up-shifted scale factor, correlated fraction among the years.

  • str_btagw_HFup_uncorr[out] Name of the output column for the HF up-shifted scale factor, uncorrelated fraction among the years.

  • str_btagw_HFdown_corr[out] Name of the output column for the HF down-shifted scale factor, correlated fraction among the years.

  • str_btagw_HFdown_uncorr[out] Name of the output column for the HF down-shifted scale factor, uncorrelated fraction among the years.

  • str_btagw_LFup_corr[out] Name of the output column for the LF up-shifted scale factor, correlated fraction among the years.

  • str_btagw_LFup_uncorr[out] Name of the output column for the LF up-shifted scale factor, uncorrelated fraction among the years.

  • str_btagw_LFdown_corr[out] Name of the output column for the LF down-shifted scale factor, correlated fraction among the years.

  • str_btagw_LFdown_uncorr[out] Name of the output column for the LF down-shifted scale factor, uncorrelated fraction among the years.

  • btag_sf_file[in] File name for the BTV POG correction lib file.

  • btag_corr_algo_HF[in] Name of the scale factor method for HF jets.

  • btag_corr_algo_LF[in] Name of the scale factor method for LF jets.

  • btag_eff_file[in] File name for the b tagging efficiency maps.

  • btag_eff_type[in] Type of process for the efficiency map.

  • btag_wp[in] B tagging working point name.

  • btag_cut[in] B tagging cut value.

  • max_bjet_eta_sf[in] Maximum abs eta for b jets.

Returns:

A dataframe containing the new columns.