Skip to content
Snippets Groups Projects
Commit 62bfc788 authored by Dag Gillberg's avatar Dag Gillberg
Browse files

Remote development of weight constraints

parent ad50f5ad
No related branches found
No related tags found
9 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45419WIP: GNNC tool,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!28528Revert 63f845ae,!27054Atr20369 210,!26342Monopole: Handle fractionally charged particles
...@@ -16,7 +16,8 @@ namespace xAOD { ...@@ -16,7 +16,8 @@ namespace xAOD {
// wether to put constraints on the weights // wether to put constraints on the weights
declareProperty("RequireFinite", m_requireFinite=false); declareProperty("RequireFinite", m_requireFinite=false);
declareProperty("WeightCutOff", m_weightCutOff=-1.0); declareProperty("WeightCutOff", m_weightCutOff=-1.0);
if (m_weightCutOff>0) m_cutOff=true;
// Force modes // Force modes
declareProperty("ForceNNLOPS", m_forceNNLOPS=false); // Run2-default Powheg NNLOPS ggF declareProperty("ForceNNLOPS", m_forceNNLOPS=false); // Run2-default Powheg NNLOPS ggF
declareProperty("ForceVBF", m_forceVBF=false); // Run2-default Powheg VBF declareProperty("ForceVBF", m_forceVBF=false); // Run2-default Powheg VBF
...@@ -201,14 +202,23 @@ namespace xAOD { ...@@ -201,14 +202,23 @@ namespace xAOD {
updateWeight(hw.nominal,hw.nominal); updateWeight(hw.nominal,hw.nominal);
updateWeights(hw.nominal,hw.weight0,hw.alphaS_up,hw.alphaS_dn); updateWeights(hw.nominal,hw.weight0,hw.alphaS_up,hw.alphaS_dn);
updateWeights(hw.nominal,hw.pdf4lhc_unc); updateWeights(hw.nominal,hw.nnpdf30_unc); updateWeights(hw.nominal,hw.pdf4lhc_unc); updateWeights(hw.nominal,hw.nnpdf30_unc);
updateWeights(hw.nominal,hw.qcd); updateWeights(hw.nominal,qcd_nnlops);
updateWeights(hw.nominal,hw.mt_inf,hw.mb_minlo);
updateWeights(hw.nominal,hw.nnpdf30_nlo,hw.nnpdf30_nnlo,hw.mmht2014nlo);
updateWeights(hw.nominal,hw.pdf4lhc_nlo,hw.pdf4lhc_nnlo);
updateWeights(hw.nominal,hw.ct10nlo,hw.ct10nlo_0118);
updateWeights(hw.nominal,hw.ct14nlo,hw.ct14nlo_0118);
updateWeights(hw.nominal,hw.qcd_wg1_mu,hw.qcd_wg1_res);
updateWeights(hw.nominal,hw.qcd_wg1_mig01,hw.qcd_wg1_mig12);
updateWeights(hw.nominal,hw.qcd_wg1_pTH,hw.qcd_wg1_qm);
updateWeights(hw.nominal,hw.qcd_nnlops_nnlo,hw.qcd_nnlops_pow);
} }
void HiggsWeightTool::updateWeight(const double &w_nom, double &w) { void HiggsWeightTool::updateWeight(const double &w_nom, double &w) {
if (m_requireFinite&&!std::isfinite(w)) { w=w_nom;
if (m_cutOff&&w>m_weightCutOff) w=m_weighCutOff;
if (m_cutOff&&w<-m_weightCutOff) w=-m_weighCutOff;
} }
/// Access MC weight for uncertainty propagation /// Access MC weight for uncertainty propagation
/// Note: input kinematics should be HTXS_Higgs_pt, HTXS_Njets_pTjet30, and HTXS_Stage1_Category_pTjet30 /// Note: input kinematics should be HTXS_Higgs_pt, HTXS_Njets_pTjet30, and HTXS_Stage1_Category_pTjet30
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment