From 8f005832cabc6030de965d01775f4bafc2c1df48 Mon Sep 17 00:00:00 2001
From: Tomas Dado <tomas.dado@cern.ch>
Date: Mon, 10 Feb 2020 13:57:03 +0100
Subject: [PATCH] Fixing typo in AnalysisTop configuration

---
 .../xAOD/TopConfiguration/Root/ConfigurationSettings.cxx    | 2 +-
 .../TopPhys/xAOD/TopConfiguration/Root/TopConfig.cxx        | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/PhysicsAnalysis/TopPhys/xAOD/TopConfiguration/Root/ConfigurationSettings.cxx b/PhysicsAnalysis/TopPhys/xAOD/TopConfiguration/Root/ConfigurationSettings.cxx
index 06676b2e6fba..fae278001f31 100644
--- a/PhysicsAnalysis/TopPhys/xAOD/TopConfiguration/Root/ConfigurationSettings.cxx
+++ b/PhysicsAnalysis/TopPhys/xAOD/TopConfiguration/Root/ConfigurationSettings.cxx
@@ -562,7 +562,7 @@ namespace top {
     registerParameter("DemandPrimaryVertex", "Wether at least one primary vertex in event is required. Default True. For debugging purposes only!", "True");
 
     registerParameter("KillExperimental", "Disable some specific experimental feature.", " ");
-    registerParameter("RedifineMCMCMap", "Dictionary for translating the shower names from TopDataPreparation. Format: \"shower1:shower2,shower3:shower4\".", " ");
+    registerParameter("RedefineMCMCMap", "Dictionary for translating the shower names from TopDataPreparation. Format: \"shower1:shower2,shower3:shower4\".", " ");
   }
 
   ConfigurationSettings* ConfigurationSettings::get() {
diff --git a/PhysicsAnalysis/TopPhys/xAOD/TopConfiguration/Root/TopConfig.cxx b/PhysicsAnalysis/TopPhys/xAOD/TopConfiguration/Root/TopConfig.cxx
index ef2b23f8028c..2862ae0aeeda 100644
--- a/PhysicsAnalysis/TopPhys/xAOD/TopConfiguration/Root/TopConfig.cxx
+++ b/PhysicsAnalysis/TopPhys/xAOD/TopConfiguration/Root/TopConfig.cxx
@@ -1324,14 +1324,14 @@ namespace top {
     m_bTagSystsExcludedFromEV = settings->value("BTaggingSystExcludedFromEV");
 
     // Set translatio ndictionary for MCMC maps
-    if (settings->value("RedifineMCMCMap") != " ") {
+    if (settings->value("RedefineMCMCMap") != " ") {
       std::vector<std::string> tmp;
-      tokenize(settings->value("RedifineMCMCMap"), tmp, ",");
+      tokenize(settings->value("RedefineMCMCMap"), tmp, ",");
       for (const std::string& dictionaries : tmp) {
         std::vector<std::string> dictionary;
         tokenize(dictionaries, dictionary, ":");
         if (dictionary.size() != 2) {
-          throw std::invalid_argument{"Wrong input argument for RedifineMCMCMap. Expected format is: \"shower1:shower2,shower3:shower4\""};
+          throw std::invalid_argument{"Wrong input argument for RedefineMCMCMap. Expected format is: \"shower1:shower2,shower3:shower4\""};
         }
 
         m_showerMCMCtranslator.insert({dictionary.at(0), dictionary.at(1)});
-- 
GitLab