From 0542ad0178a007abe5c9fa470db9c7f229df240f Mon Sep 17 00:00:00 2001 From: kkotov Date: Tue, 22 Nov 2016 17:41:42 +0100 Subject: [PATCH 1/2] HI CaloParams added --- L1Trigger/L1TCommon/interface/Tools.h | 2 +- .../python/L1TCaloParamsOnline_cfi.py | 2 +- .../src/L1TCaloParamsOnlineProd.cc | 25 +++++++++++++++---- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/L1Trigger/L1TCommon/interface/Tools.h b/L1Trigger/L1TCommon/interface/Tools.h index 5e086eb06c418..76473c0733588 100644 --- a/L1Trigger/L1TCommon/interface/Tools.h +++ b/L1Trigger/L1TCommon/interface/Tools.h @@ -25,7 +25,7 @@ template varType convertVariable(const std::string& aVar) catch (std::exception& e) { std::map hexnums; - std::string strHexNums("0123456789ABCDEF"); + std::string strHexNums("0123456789ABCDEFabcdef"); for(unsigned int i=0; i())/2); paramsHelper.setTauNeighbourThreshold((conf["leptonTowerThreshold"].getValue())/2); paramsHelper.setJetSeedThreshold((conf["jetSeedThreshold"].getValue())/2); + paramsHelper.setJetBypassPUS(conf["jetBypassPileUpSub"].getValue()); //these are bools in onlineDB + paramsHelper.setEgBypassEGVetos(conf["egammaBypassCuts"].getValue()); //these are bools in onlineDB + paramsHelper.setEgHOverEcutBarrel(conf["egammaHOverECut_iEtaLT15"].getValue()); + paramsHelper.setEgHOverEcutEndcap(conf["egammaHOverECut_iEtaGTEq15"].getValue()); + // Currently not used // paramsHelper.setEgPileupTowerThresh((conf["pileUpTowerThreshold"].getValue())); // Currently not used // paramsHelper.setTauPileupTowerThresh((conf["pileUpTowerThreshold"].getValue())); @@ -100,13 +113,15 @@ readCaloLayer2OnlineSettings(l1t::CaloParamsHelper& paramsHelper, std::map()); etSumEtaMax.push_back(conf["ETMET_maxTowerEta"].getValue()); etSumEtaMax.push_back(conf["HTMHT_maxJetEta"].getValue()); + etSumEtaMax.push_back(conf["towerCountMaxEta"].getValue()); - etSumEtThresh.push_back(0); // ETT tower threshold + etSumEtThresh.push_back(conf["ET_towerThreshold"].getValue()); // ETT tower threshold etSumEtThresh.push_back(conf["HT_jetThreshold"].getValue()); - etSumEtThresh.push_back(0); // ETM tower threshold + etSumEtThresh.push_back(conf["MET_towerThreshold"].getValue()); // ETM tower threshold etSumEtThresh.push_back(conf["MHT_jetThreshold"].getValue()); + etSumEtThresh.push_back(conf["ET_towerThreshold"].getValue()); - for (uint i=0; i<4; ++i) { + for (uint i=0; i<5; ++i) { paramsHelper.setEtSumEtaMax(i, etSumEtaMax.at(i)); paramsHelper.setEtSumEtThreshold(i, etSumEtThresh.at(i)); } From b51e61d31b063798fa92763fc6c68c40fa31ff21 Mon Sep 17 00:00:00 2001 From: kkotov Date: Tue, 22 Nov 2016 17:45:57 +0100 Subject: [PATCH 2/2] Resorting back to the standard v3_3_HI static python, that should have everything by the time this PR is merged --- .../L1TConfigProducers/python/L1TCaloParamsOnline_cfi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/L1TriggerConfig/L1TConfigProducers/python/L1TCaloParamsOnline_cfi.py b/L1TriggerConfig/L1TConfigProducers/python/L1TCaloParamsOnline_cfi.py index dea1d7f45350c..7668b6535e4d3 100644 --- a/L1TriggerConfig/L1TConfigProducers/python/L1TCaloParamsOnline_cfi.py +++ b/L1TriggerConfig/L1TConfigProducers/python/L1TCaloParamsOnline_cfi.py @@ -1,7 +1,7 @@ import FWCore.ParameterSet.Config as cms #from L1Trigger.L1TCalorimeter.caloStage2Params_cfi import * -from L1Trigger.L1TCalorimeter.caloStage2Params_2016_v3_3_HI_towEta27_cfi import * +from L1Trigger.L1TCalorimeter.caloStage2Params_2016_v3_3_HI_cfi import * L1TCaloParamsOnlineProd = cms.ESProducer("L1TCaloParamsOnlineProd", onlineAuthentication = cms.string('.'),