Skip to content

Commit

Permalink
Merge pull request #5449 from cms-btv-pog/PATJetBTagDiscriminatorsUpd…
Browse files Browse the repository at this point in the history
…ate_from-CMSSW_7_2_0_pre6

Added combinedMVABJetTags and removed combinedSecondaryVertexMVABJetTags from reco sequence, added bugfix for pfTagInfos, updated PAT/miniAOD configs: Forward port from 7_2_X to 7_3_X
  • Loading branch information
nclopezo committed Sep 29, 2014
2 parents 17bc297 + 4b97fc6 commit c41466c
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 50 deletions.
5 changes: 0 additions & 5 deletions DQMOffline/RecoB/python/bTagCommon_cff.py
Expand Up @@ -88,11 +88,6 @@
label = cms.InputTag("combinedSecondaryVertexBJetTags"),
folder = cms.string("CSV")
),
cms.PSet(
bTagGenericAnalysisBlock,
label = cms.InputTag("combinedSecondaryVertexMVABJetTags"),
folder = cms.string("CSVMVA")
),
cms.PSet(
bTagGenericAnalysisBlock,
label = cms.InputTag("ghostTrackBJetTags"),
Expand Down
1 change: 0 additions & 1 deletion DQMOffline/RecoB/test/compare.C
Expand Up @@ -37,7 +37,6 @@ void drawAll()
algos.push_back("simpleSecondaryVertexHighEffBJetTags");
algos.push_back("simpleSecondaryVertexHighPurBJetTags");
algos.push_back("combinedSecondaryVertexBJetTags");
algos.push_back("combinedSecondaryVertexMVABJetTags");
algos.push_back("ghostTrackBJetTags");
algos.push_back("softMuonBJetTags");
algos.push_back("softMuonNoIPBJetTags");
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/PatAlgos/python/recoLayer0/bTagging_cff.py
Expand Up @@ -77,7 +77,7 @@
, 'doubleSecondaryVertexHighEffBJetTags' : ['inclusiveSecondaryVertexFinderFilteredTagInfos']
, 'combinedInclusiveSecondaryVertexBJetTags' : ['impactParameterTagInfos', 'inclusiveSecondaryVertexFinderTagInfos']
, 'combinedInclusiveSecondaryVertexPositiveBJetTags' : ['impactParameterTagInfos', 'inclusiveSecondaryVertexFinderTagInfos']
#, 'combinedMVABJetTags' : ['impactParameterTagInfos', 'inclusiveSecondaryVertexFinderTagInfos', 'softPFMuonsTagInfos', 'softPFElectronsTagInfos']
, 'combinedMVABJetTags' : ['impactParameterTagInfos', 'inclusiveSecondaryVertexFinderTagInfos', 'softPFMuonsTagInfos', 'softPFElectronsTagInfos']
, 'positiveCombinedMVABJetTags' : ['impactParameterTagInfos', 'inclusiveSecondaryVertexFinderTagInfos', 'softPFMuonsTagInfos', 'softPFElectronsTagInfos']
, 'negativeCombinedMVABJetTags' : ['impactParameterTagInfos', 'inclusiveSecondaryVertexFinderTagInfos', 'softPFMuonsTagInfos', 'softPFElectronsTagInfos']
#, 'combinedSecondaryVertexSoftPFLeptonV1BJetTags' : ['impactParameterTagInfos', 'secondaryVertexTagInfos', 'softPFMuonsTagInfos', 'softPFElectronsTagInfos']
Expand Down
11 changes: 6 additions & 5 deletions PhysicsTools/PatAlgos/test/miniAOD/example_addJet.py
Expand Up @@ -33,11 +33,12 @@
jetCorrections = ('AK5PFchs', cms.vstring(['L1FastJet', 'L2Relative', 'L3Absolute']), 'Type-2'),
btagDiscriminators = [ 'combinedSecondaryVertexBJetTags' ]
)
process.patJetPartonMatchPatJetsAK5PFCHS.matched = "prunedGenParticles"
process.patJetPartons.src = "prunedGenParticles"
process.patJetPartons.skipFirstN = cms.uint32(0) # do not skip first 6 particles, we already pruned some!
process.patJetPartons.acceptNoDaughters = cms.bool(True) # as we drop intermediate stuff, we need to accept quarks with no siblings
process.patJetCorrFactorsPatJetsAK5PFCHS.primaryVertices = "offlineSlimmedPrimaryVertices"
process.patJetPartonMatchAK5PFCHS.matched = "prunedGenParticles"
process.patJetPartons.particles = "prunedGenParticles"
process.patJetPartonsLegacy.src = "prunedGenParticles" # if using legacy jet flavour (not used by default)
process.patJetPartonsLegacy.skipFirstN = cms.uint32(0) # do not skip first 6 particles, we already pruned some!
process.patJetPartonsLegacy.acceptNoDaughters = cms.bool(True) # as we drop intermediate stuff, we need to accept quarks with no siblings
process.patJetCorrFactorsAK5PFCHS.primaryVertices = "offlineSlimmedPrimaryVertices"

#recreate tracks and pv for btagging
process.load('PhysicsTools.PatAlgos.slimming.unpackedTracksAndVertices_cfi')
Expand Down
7 changes: 4 additions & 3 deletions PhysicsTools/PatAlgos/test/miniAOD/example_ei.py
Expand Up @@ -80,9 +80,10 @@
process.patJetGenJetMatchAK4PFCHS.matched = "slimmedGenJets"
process.patJetPartonMatchAK4PFCHS.matched = "prunedGenParticles"
process.patJetPartonMatchAK4PF.matched = "prunedGenParticles"
process.patJetPartons.particles = "prunedGenParticles"
process.patJetPartons.skipFirstN = cms.uint32(0) # do not skip first 6 particles, we already pruned some!
process.patJetPartons.acceptNoDaughters = cms.bool(True) # as we drop intermediate stuff, we need to accept quarks with no siblings
process.patJetPartons.particles = "prunedGenParticles"
process.patJetPartonsLegacy.src = "prunedGenParticles" # if using legacy jet flavour (not used by default)
process.patJetPartonsLegacy.skipFirstN = cms.uint32(0) # do not skip first 6 particles, we already pruned some!
process.patJetPartonsLegacy.acceptNoDaughters = cms.bool(True) # as we drop intermediate stuff, we need to accept quarks with no siblings

#adjust PV
process.patJetCorrFactorsAK4PFCHS.primaryVertices = "offlineSlimmedPrimaryVertices"
Expand Down
3 changes: 2 additions & 1 deletion PhysicsTools/PatAlgos/test/patTuple_addBTagging_cfg.py
Expand Up @@ -32,6 +32,7 @@
,'simpleSecondaryVertexHighPurBJetTags'
,'simpleSecondaryVertexNegativeHighEffBJetTags'
,'simpleSecondaryVertexNegativeHighPurBJetTags'
,'pfCombinedSecondaryVertexBJetTags'
,'combinedSecondaryVertexBJetTags'
,'combinedSecondaryVertexPositiveBJetTags'
,'combinedInclusiveSecondaryVertexV2BJetTags'
Expand Down Expand Up @@ -68,7 +69,7 @@
,'doubleSecondaryVertexHighEffBJetTags'
,'combinedInclusiveSecondaryVertexBJetTags'
,'combinedInclusiveSecondaryVertexPositiveBJetTags'
#,'combinedMVABJetTags'
,'combinedMVABJetTags'
,'positiveCombinedMVABJetTags'
,'negativeCombinedMVABJetTags'
],
Expand Down
24 changes: 12 additions & 12 deletions RecoBTag/Configuration/python/RecoBTag_EventContent_cff.py
Expand Up @@ -15,7 +15,6 @@
'keep *_simpleSecondaryVertexHighEffBJetTags_*_*',
'keep *_simpleSecondaryVertexHighPurBJetTags_*_*',
'keep *_combinedSecondaryVertexBJetTags_*_*',
'keep *_combinedSecondaryVertexMVABJetTags_*_*',
'keep *_combinedInclusiveSecondaryVertexV2BJetTags_*_*',
'keep *_ghostTrackBJetTags_*_*',
'keep *_softPFMuonsTagInfos_*_*',
Expand All @@ -26,9 +25,10 @@
'keep *_softMuonBJetTags_*_*',
'keep *_softMuonByIP3dBJetTags_*_*',
'keep *_softMuonByPtBJetTags_*_*',
'keep *_pfImpactParameterTagInfos_*_*',
'keep *_pfSecondaryVertexTagInfos_*_*',
'keep *_pfCombinedSecondaryVertexBJetTags_*_*'
'keep *_combinedMVABJetTags_*_*',
'keep *_pfImpactParameterTagInfos_*_*',
'keep *_pfSecondaryVertexTagInfos_*_*',
'keep *_pfCombinedSecondaryVertexBJetTags_*_*'
)
)
#RECO content
Expand All @@ -46,7 +46,6 @@
'keep *_simpleSecondaryVertexHighEffBJetTags_*_*',
'keep *_simpleSecondaryVertexHighPurBJetTags_*_*',
'keep *_combinedSecondaryVertexBJetTags_*_*',
'keep *_combinedSecondaryVertexMVABJetTags_*_*',
'keep *_combinedInclusiveSecondaryVertexV2BJetTags_*_*',
'keep *_ghostTrackBJetTags_*_*',
'keep *_softPFMuonsTagInfos_*_*',
Expand All @@ -57,9 +56,10 @@
'keep *_softMuonBJetTags_*_*',
'keep *_softMuonByIP3dBJetTags_*_*',
'keep *_softMuonByPtBJetTags_*_*',
'keep *_pfImpactParameterTagInfos_*_*',
'keep *_pfSecondaryVertexTagInfos_*_*',
'keep *_pfCombinedSecondaryVertexBJetTags_*_*'
'keep *_combinedMVABJetTags_*_*',
'keep *_pfImpactParameterTagInfos_*_*',
'keep *_pfSecondaryVertexTagInfos_*_*',
'keep *_pfCombinedSecondaryVertexBJetTags_*_*'
)
)
#AOD content
Expand All @@ -77,19 +77,19 @@
'keep *_simpleSecondaryVertexHighEffBJetTags_*_*',
'keep *_simpleSecondaryVertexHighPurBJetTags_*_*',
'keep *_combinedSecondaryVertexBJetTags_*_*',
'keep *_combinedSecondaryVertexMVABJetTags_*_*',
'keep *_combinedInclusiveSecondaryVertexV2BJetTags_*_*',
'keep *_ghostTrackBJetTags_*_*',
# 'keep *_btagSoftElectrons_*_*',
## 'keep *_softElectronCands_*_*',
## 'keep *_softPFElectrons_*_*',
# 'keep *_softElectronCands_*_*',
# 'keep *_softPFElectrons_*_*',
# 'keep *_softElectronTagInfos_*_*',
'keep *_softPFElectronBJetTags_*_*',
'keep *_softPFMuonBJetTags_*_*',
# 'keep *_softMuonTagInfos_*_*',
'keep *_softMuonBJetTags_*_*',
'keep *_softMuonByIP3dBJetTags_*_*',
'keep *_softMuonByPtBJetTags_*_*',
'keep *_pfCombinedSecondaryVertexBJetTags_*_*'
'keep *_combinedMVABJetTags_*_*',
'keep *_pfCombinedSecondaryVertexBJetTags_*_*'
)
)
36 changes: 17 additions & 19 deletions RecoBTag/Configuration/python/RecoBTag_cff.py
Expand Up @@ -19,29 +19,27 @@
secondaryVertexTagInfos *
( simpleSecondaryVertexHighEffBJetTags +
simpleSecondaryVertexHighPurBJetTags +
combinedSecondaryVertexBJetTags
+ combinedSecondaryVertexMVABJetTags
combinedSecondaryVertexBJetTags
)
+ inclusiveSecondaryVertexFinderTagInfos *
combinedInclusiveSecondaryVertexV2BJetTags

+ ghostTrackVertexTagInfos *
ghostTrackBJetTags
) +
+ inclusiveSecondaryVertexFinderTagInfos *
combinedInclusiveSecondaryVertexV2BJetTags


softPFMuonsTagInfos*
softPFMuonBJetTags *
softPFElectronsTagInfos*
softPFElectronBJetTags *
+ ghostTrackVertexTagInfos *
ghostTrackBJetTags
) +

#new candidate model, with PF inputs
pfImpactParameterTagInfos *
pfSecondaryVertexTagInfos *
pfCombinedSecondaryVertexBJetTags
# soft lepton tag infos and algos
softPFMuonsTagInfos *
softPFMuonBJetTags
+ softPFElectronsTagInfos *
softPFElectronBJetTags
)

# overall combined taggers
# * combinedMVABJetTags
* combinedMVABJetTags

# new candidate model, with PF inputs
+ pfImpactParameterTagInfos *
pfSecondaryVertexTagInfos *
pfCombinedSecondaryVertexBJetTags
)
2 changes: 1 addition & 1 deletion RecoBTag/ImpactParameter/python/pfImpactParameter_cfi.py
Expand Up @@ -14,7 +14,7 @@
useTrackQuality = cms.bool(False),
maximumChiSquared = cms.double(5.0),
#this is candidate specific
jets = cms.InputTag("ak4PFJets"),
jets = cms.InputTag("ak4PFJetsCHS"),
candidates = cms.InputTag("particleFlow"),
maxDeltaR= cms.double(0.4),

Expand Down
1 change: 0 additions & 1 deletion Validation/RecoB/test/GridValidation/compare.C
Expand Up @@ -70,7 +70,6 @@ TGraphErrors * drawAll()
algos.push_back("jetBProbabilityBJetTags");
algos.push_back("simpleSecondaryVertexBJetTags");
algos.push_back("combinedSecondaryVertexBJetTags");
algos.push_back("combinedSecondaryVertexMVABJetTags");
algos.push_back("softMuonBJetTags");
algos.push_back("softMuonByIP3dBJetTags");
algos.push_back("softMuonByPtBJetTags");
Expand Down
1 change: 0 additions & 1 deletion Validation/RecoB/test/compare.C
Expand Up @@ -70,7 +70,6 @@ TGraphErrors * drawAll()
algos.push_back("jetBProbabilityBJetTags");
algos.push_back("simpleSecondaryVertexBJetTags");
algos.push_back("combinedSecondaryVertexBJetTags");
algos.push_back("combinedSecondaryVertexMVABJetTags");
algos.push_back("softMuonBJetTags");
algos.push_back("softMuonByIP3dBJetTags");
algos.push_back("softMuonByPtBJetTags");
Expand Down

0 comments on commit c41466c

Please sign in to comment.