From 725de16b81eaf1c9317c07303b1b20549f7a5c1e Mon Sep 17 00:00:00 2001
From: "Ewelina.Maria.Lobodzinska" <ewelina.maria.lobodzinska@cern.ch>
Date: Thu, 9 Sep 2021 17:30:12 +0200
Subject: [PATCH] GeneratorFilters : correct the units

---
 Generators/GeneratorFilters/src/DiBjetFilter.cxx     | 10 +++++-----
 Generators/GeneratorFilters/src/MultiBjetFilter.cxx  |  6 +++---
 Generators/GeneratorFilters/src/WZtoLeptonFilter.cxx |  6 +++---
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/Generators/GeneratorFilters/src/DiBjetFilter.cxx b/Generators/GeneratorFilters/src/DiBjetFilter.cxx
index 65929f92ab50..ad55a5d31292 100644
--- a/Generators/GeneratorFilters/src/DiBjetFilter.cxx
+++ b/Generators/GeneratorFilters/src/DiBjetFilter.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
 */
 
 // -------------------------------------------------------------
@@ -33,11 +33,11 @@ DiBjetFilter::DiBjetFilter(const std::string& name, ISvcLocator* pSvcLocator)
 {
   //--------------------------------------------------------------------------    
   // Local Member Data:-
-  declareProperty("LeadJetPtMin",m_leadJet_ptMin=0/Gaudi::Units::GeV);
-  declareProperty("LeadJetPtMax",m_leadJet_ptMax=50000/Gaudi::Units::GeV);
-  declareProperty("BottomPtMin",m_bottomPtMin=5.0/Gaudi::Units::GeV);
+  declareProperty("LeadJetPtMin",m_leadJet_ptMin=0*Gaudi::Units::GeV);
+  declareProperty("LeadJetPtMax",m_leadJet_ptMax=50000*Gaudi::Units::GeV);
+  declareProperty("BottomPtMin",m_bottomPtMin=5.0*Gaudi::Units::GeV);
   declareProperty("BottomEtaMax",m_bottomEtaMax=3.0);
-  declareProperty("JetPtMin",m_jetPtMin=15.0/Gaudi::Units::GeV);
+  declareProperty("JetPtMin",m_jetPtMin=15.0*Gaudi::Units::GeV);
   declareProperty("JetEtaMax",m_jetEtaMax=2.7);
   declareProperty("DeltaRFromTruth",m_deltaRFromTruth=0.3);
   declareProperty("TruthContainerName",m_TruthJetContainerName="AntiKt4TruthJets");
diff --git a/Generators/GeneratorFilters/src/MultiBjetFilter.cxx b/Generators/GeneratorFilters/src/MultiBjetFilter.cxx
index 2c291b7b2a9f..0edb4a44565e 100644
--- a/Generators/GeneratorFilters/src/MultiBjetFilter.cxx
+++ b/Generators/GeneratorFilters/src/MultiBjetFilter.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
 */
 // This is a general-purpose multi-b-jet filter. It can cut on:
 //    - Multiplicity of b-jets (both min and max can be specified)
@@ -32,9 +32,9 @@ MultiBjetFilter::MultiBjetFilter(const std::string& name, ISvcLocator* pSvcLocat
   declareProperty("NBJetsMax", m_nBJetsMax = -1); // Negative number means no cut
   declareProperty("LeadJetPtMin", m_leadJet_ptMin = 0);
   declareProperty("LeadJetPtMax", m_leadJet_ptMax = -1); // Negative number means no cut
-  declareProperty("BottomPtMin", m_bottomPtMin = 5.0/Gaudi::Units::GeV);
+  declareProperty("BottomPtMin", m_bottomPtMin = 5.0*Gaudi::Units::GeV);
   declareProperty("BottomEtaMax", m_bottomEtaMax = 3.0);
-  declareProperty("JetPtMin", m_jetPtMin = 15.0/Gaudi::Units::GeV);
+  declareProperty("JetPtMin", m_jetPtMin = 15.0*Gaudi::Units::GeV);
   declareProperty("JetEtaMax", m_jetEtaMax = 2.7);
   declareProperty("DeltaRFromTruth", m_deltaRFromTruth = 0.3);
   declareProperty("TruthContainerName", m_TruthJetContainerName = "AntiKt4TruthJets");
diff --git a/Generators/GeneratorFilters/src/WZtoLeptonFilter.cxx b/Generators/GeneratorFilters/src/WZtoLeptonFilter.cxx
index 8b5dba559189..f9bb0d9a6f3b 100644
--- a/Generators/GeneratorFilters/src/WZtoLeptonFilter.cxx
+++ b/Generators/GeneratorFilters/src/WZtoLeptonFilter.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
 */
 
 #include "GaudiKernel/PhysicalConstants.h"
@@ -75,8 +75,8 @@ StatusCode WZtoLeptonFilter::filterFinalize() {
                "0 for more leptons ( difficult to recon ) : " << m_reconeffi << "\n" <<
                "Etacut_electron : " << m_Eta_e << "\n"                               <<
                "Etacut_muon     : " << m_Eta_mu << "\n"                              <<
-               "Ptcut_electron (GeV) : " << m_Pt_e/Gaudi::Units::GeV << "\n"                       <<
-               "Ptcut_muon           : " << m_Pt_mu/Gaudi::Units::GeV);
+               "Ptcut_electron (GeV) : " << m_Pt_e*Gaudi::Units::GeV << "\n"                       <<
+               "Ptcut_muon           : " << m_Pt_mu*Gaudi::Units::GeV);
 
   if (m_AthenaCalls == 0) {
     ATH_MSG_INFO(" ERROR, Your filter is not interfaced/called at all " << "################   WZtoLeptonFilter Finished  ##############");
-- 
GitLab