From d1b2caeee06b779ac4c8e20c9f01841f2b9196e7 Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 3 Jun 2015 18:57:24 +0200 Subject: [PATCH 1/2] ../python/hltHiggsPostProcessors_cff.py --- HLTriggerOffline/Higgs/python/hltHiggsValidator_cfi.py | 10 +++++++++- HLTriggerOffline/Higgs/src/HLTHiggsSubAnalysis.cc | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/HLTriggerOffline/Higgs/python/hltHiggsValidator_cfi.py b/HLTriggerOffline/Higgs/python/hltHiggsValidator_cfi.py index f6aead75d6a08..36a0c1ec575d1 100644 --- a/HLTriggerOffline/Higgs/python/hltHiggsValidator_cfi.py +++ b/HLTriggerOffline/Higgs/python/hltHiggsValidator_cfi.py @@ -4,7 +4,7 @@ hltHiggsValidator = cms.EDAnalyzer("HLTHiggsValidator", hltProcessName = cms.string("HLT"), - analysis = cms.vstring("HWW", "HZZ", "Hgg", "Htaunu", "H2tau", "VBFHbb_0btag", "VBFHbb_1btag", "VBFHbb_2btag", "ZnnHbb","DoubleHinTaus","HiggsDalitz","X4b","TTHbbej","AHttH"), + analysis = cms.vstring("HWW", "HZZ", "Hgg", "Htaunu", "H2tau", "VBFHbb_0btag", "VBFHbb_1btag", "VBFHbb_2btag", "ZnnHbb","DoubleHinTaus","HiggsDalitz","X4b","TTHbbej","AHttH","WHToENuBB"), histDirectory = cms.string("HLT/Higgs"), # -- The instance name of the reco::GenParticles collection @@ -332,4 +332,12 @@ ## -- Analysis specific cuts minCandidates = cms.uint32(6), ), + WHToENuBB = cms.PSet( + hltPathsToCheck = cms.vstring( + "HLT_Ele27_WPLoose_Gsf_WHbbBoost_v", + ), + recElecLabel = cms.string("gedGsfElectrons"), + recJetLabel = cms.string("ak4PFJetsCHS"), + minCandidates = cms.uint32(1), + ), ) diff --git a/HLTriggerOffline/Higgs/src/HLTHiggsSubAnalysis.cc b/HLTriggerOffline/Higgs/src/HLTHiggsSubAnalysis.cc index 40941f9a5ddda..c71943cdda528 100644 --- a/HLTriggerOffline/Higgs/src/HLTHiggsSubAnalysis.cc +++ b/HLTriggerOffline/Higgs/src/HLTHiggsSubAnalysis.cc @@ -744,7 +744,8 @@ const std::vector HLTHiggsSubAnalysis::getObjectsType(const std::s // Check if it is needed this object for this trigger if( ! TString(hltPath).Contains(objTypeStr) ) { - if( (objtriggernames[i] == EVTColContainer::PFJET && TString(hltPath).Contains("CSV") ) || // fix for ZnnHbb PFJET + if( (objtriggernames[i] == EVTColContainer::PFJET && TString(hltPath).Contains("WHbbBoost") ) || // fix for HLT_Ele27_WPLoose_Gsf_WHbbBoost_v + (objtriggernames[i] == EVTColContainer::PFJET && TString(hltPath).Contains("CSV") ) || // fix for ZnnHbb PFJET (objtriggernames[i] == EVTColContainer::PFMET && TString(hltPath).Contains("MHT")) ) // fix for ZnnHbb PFMET objsType.insert(objtriggernames[i]); else if (objtriggernames[i] == EVTColContainer::PHOTON && TString(hltPath).Contains("Diphoton") ) objsType.insert(objtriggernames[i]); //case of the New Diphoton paths From 503a579a6057613aab7df2c8060712bc236d0184 Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 3 Jun 2015 18:57:39 +0200 Subject: [PATCH 2/2] ../python/hltHiggsPostProcessors_cff.py --- .../Higgs/python/hltHiggsPostProcessors_cff.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/HLTriggerOffline/Higgs/python/hltHiggsPostProcessors_cff.py b/HLTriggerOffline/Higgs/python/hltHiggsPostProcessors_cff.py index ce40738febf0f..ee6f2cacca553 100644 --- a/HLTriggerOffline/Higgs/python/hltHiggsPostProcessors_cff.py +++ b/HLTriggerOffline/Higgs/python/hltHiggsPostProcessors_cff.py @@ -285,7 +285,18 @@ def get_reco_strings(strings): hltHiggsPostX4b.subDirs = ['HLT/Higgs/X4b'] hltHiggsPostX4b.efficiencyProfile = efficiency_strings +#Specific plots for WH -> ev + bb +efficiency_strings_WHToENuBB = list(efficiency_strings_TTHbbej) +#add the summary plots +for an in _config.analysis: + for trig in triggers: + efficiency_strings_WHToENuBB.append("Eff_HtDist_"+an+"_gen_"+trig+" ' Efficiency of "+trig+" vs sum pT of jets ; sum pT of jets ' HtDist_"+an+"_gen_"+trig+" HtDist_"+an+"_gen") + +efficiency_strings_WHToENuBB.extend(get_reco_strings(efficiency_strings_WHToENuBB)) +hltHiggsPostWHToENuBB = hltHiggsPostProcessor.clone() +hltHiggsPostWHToENuBB.subDirs = ['HLT/Higgs/WHToENuBB'] +hltHiggsPostWHToENuBB.efficiencyProfile = efficiency_strings_WHToENuBB hltHiggsPostProcessors = cms.Sequence( hltHiggsPostHWW+ @@ -301,7 +312,8 @@ def get_reco_strings(strings): hltHiggsPostZnnHbb+ hltHiggsPostDoubleHinTaus+ hltHiggsPostHiggsDalitz+ - hltHiggsPostX4b + hltHiggsPostX4b+ + hltHiggsPostWHToENuBB )