Skip to content

Commit

Permalink
Merge pull request #24958 from mandrenguyen/valFix4Prompt_ppOnAA_104X
Browse files Browse the repository at this point in the history
Bug fixes to Run2_2018_pp_on_AA in EI and DQM
  • Loading branch information
cmsbuild committed Oct 25, 2018
2 parents 974119e + 74d35af commit d388346
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CommonTools/ParticleFlow/python/EITopPAG_cff.py
@@ -1,5 +1,6 @@
import FWCore.ParameterSet.Config as cms

from CommonTools.ParticleFlow.goodOfflinePrimaryVertices_cfi import *
from CommonTools.ParticleFlow.pfMET_cfi import *
from CommonTools.ParticleFlow.pfJets_cff import *
from CommonTools.ParticleFlow.pfTaus_cff import *
Expand Down Expand Up @@ -151,6 +152,7 @@

#EITopPAG = cms.Sequence(
EIsequence = cms.Sequence(
goodOfflinePrimaryVertices +
pfPileUpEI +
pfPileUpJMEEI +
pfNoPileUpEI +
Expand Down
3 changes: 2 additions & 1 deletion DQMOffline/Configuration/python/DQMOffline_cff.py
Expand Up @@ -188,7 +188,8 @@
]))

from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
pp_on_AA_2018.toReplaceWith(DQMOffline, DQMOffline.copyAndExclude([pfTauRunDQMValidation]))
_pfTauRunDQMValidation = cms.Sequence()
pp_on_AA_2018.toReplaceWith(pfTauRunDQMValidation, _pfTauRunDQMValidation)

from PhysicsTools.NanoAOD.nanoDQM_cff import nanoDQM
DQMOfflineNanoAOD = cms.Sequence(nanoDQM)
Expand Down
13 changes: 13 additions & 0 deletions DQMOffline/RecoB/python/dqmAnalyzer_cff.py
Expand Up @@ -10,6 +10,14 @@
#Residual correction will be added inside the c++ code only for data (checking the presence of genParticles collection), not explicit here as this sequence also ran on MC FullSim
bTagPlotsDATA = cms.Sequence(pfDeepCSVDiscriminatorsJetTags * bTagAnalysis)

## customizations for the pp_on_AA eras
from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
(pp_on_XeXe_2017 | pp_on_AA_2018).toModify(bTagAnalysis,
doJEC=False
)


########## MC ############
#Matching
from PhysicsTools.JetMCAlgos.HadronAndPartonSelector_cfi import selectedHadronsAndPartons
Expand Down Expand Up @@ -47,6 +55,11 @@
prebTagSequenceMC = cms.Sequence(ak4GenJetsForPUid*newpatJetGenJetMatch*selectedHadronsAndPartons*myak4JetFlavourInfos*pfDeepCSVDiscriminatorsJetTags)
bTagPlotsMC = cms.Sequence(bTagValidation)

## customizations for the pp_on_AA eras
(pp_on_XeXe_2017 | pp_on_AA_2018).toModify(bTagValidation,
doJEC=False
)

#to run on fullsim in the validation sequence, all histograms produced in the dqmoffline sequence
bTagValidationNoall = bTagValidation.clone(flavPlots="bcl")
bTagPlotsMCbcl = cms.Sequence(bTagValidationNoall)

0 comments on commit d388346

Please sign in to comment.