Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subjets in PAT btag example #6500

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
154 changes: 87 additions & 67 deletions PhysicsTools/PatAlgos/test/patTuple_addBTagging_cfg.py
Expand Up @@ -11,80 +11,100 @@
## to the event content
from PhysicsTools.PatAlgos.tools.jetTools import addJetCollection

# b-tag discriminators
btagDiscriminators = [
'pfJetBProbabilityBJetTags'
,'pfJetProbabilityBJetTags'
,'jetBProbabilityBJetTags'
,'jetProbabilityBJetTags'
,'positiveOnlyJetBProbabilityBJetTags'
,'positiveOnlyJetProbabilityBJetTags'
,'negativeOnlyJetBProbabilityBJetTags'
,'negativeOnlyJetProbabilityBJetTags'
,'pfTrackCountingHighPurBJetTags'
,'pfTrackCountingHighEffBJetTags'
,'trackCountingHighPurBJetTags'
,'trackCountingHighEffBJetTags'
,'negativeTrackCountingHighEffBJetTags'
,'negativeTrackCountingHighPurBJetTags'
,'pfSimpleSecondaryVertexHighEffBJetTags'
,'pfSimpleSecondaryVertexHighPurBJetTags'
,'simpleSecondaryVertexHighEffBJetTags'
,'simpleSecondaryVertexHighPurBJetTags'
,'negativeSimpleSecondaryVertexHighEffBJetTags'
,'negativeSimpleSecondaryVertexHighPurBJetTags'
,'pfCombinedSecondaryVertexBJetTags'
,'combinedSecondaryVertexBJetTags'
,'positiveCombinedSecondaryVertexBJetTags'
,'negativeCombinedSecondaryVertexBJetTags'
,'simpleInclusiveSecondaryVertexHighEffBJetTags'
,'simpleInclusiveSecondaryVertexHighPurBJetTags'
,'negativeSimpleInclusiveSecondaryVertexHighEffBJetTags'
,'negativeSimpleInclusiveSecondaryVertexHighPurBJetTags'
,'doubleSecondaryVertexHighEffBJetTags'
,'combinedInclusiveSecondaryVertexBJetTags'
,'positiveCombinedInclusiveSecondaryVertexBJetTags'
,'negativeCombinedInclusiveSecondaryVertexBJetTags'
,'pfCombinedInclusiveSecondaryVertexV2BJetTags'
,'combinedInclusiveSecondaryVertexV2BJetTags'
,'positiveCombinedInclusiveSecondaryVertexV2BJetTags'
,'negativeCombinedInclusiveSecondaryVertexV2BJetTags'
,'combinedSecondaryVertexMVABJetTags'
,'softPFMuonBJetTags'
,'softPFMuonByPtBJetTags'
,'softPFMuonByIP3dBJetTags'
,'softPFMuonByIP2dBJetTags'
,'positiveSoftPFMuonBJetTags'
,'positiveSoftPFMuonByPtBJetTags'
,'positiveSoftPFMuonByIP3dBJetTags'
,'positiveSoftPFMuonByIP2dBJetTags'
,'negativeSoftPFMuonBJetTags'
,'negativeSoftPFMuonByPtBJetTags'
,'negativeSoftPFMuonByIP3dBJetTags'
,'negativeSoftPFMuonByIP2dBJetTags'
,'softPFElectronBJetTags'
,'softPFElectronByPtBJetTags'
,'softPFElectronByIP3dBJetTags'
,'softPFElectronByIP2dBJetTags'
,'positiveSoftPFElectronBJetTags'
,'positiveSoftPFElectronByPtBJetTags'
,'positiveSoftPFElectronByIP3dBJetTags'
,'positiveSoftPFElectronByIP2dBJetTags'
,'negativeSoftPFElectronBJetTags'
,'negativeSoftPFElectronByPtBJetTags'
,'negativeSoftPFElectronByIP3dBJetTags'
,'negativeSoftPFElectronByIP2dBJetTags'
,'combinedMVABJetTags'
,'positiveCombinedMVABJetTags'
,'negativeCombinedMVABJetTags'
]

# uncomment the following lines to add ak4PFJets with new b-tags to your PAT output
addJetCollection(
process,
labelName = 'AK4PF',
jetSource = cms.InputTag('ak4PFJets'),
jetCorrections = ('AK4PF', cms.vstring(['L1FastJet', 'L2Relative', 'L3Absolute']), 'Type-2'), # FIXME: Use proper JECs, as soon as available
btagDiscriminators = [
'pfJetBProbabilityBJetTags'
,'pfJetProbabilityBJetTags'
,'jetBProbabilityBJetTags'
,'jetProbabilityBJetTags'
,'positiveOnlyJetBProbabilityBJetTags'
,'positiveOnlyJetProbabilityBJetTags'
,'negativeOnlyJetBProbabilityBJetTags'
,'negativeOnlyJetProbabilityBJetTags'
,'pfTrackCountingHighPurBJetTags'
,'pfTrackCountingHighEffBJetTags'
,'trackCountingHighPurBJetTags'
,'trackCountingHighEffBJetTags'
,'negativeTrackCountingHighEffBJetTags'
,'negativeTrackCountingHighPurBJetTags'
,'pfSimpleSecondaryVertexHighEffBJetTags'
,'pfSimpleSecondaryVertexHighPurBJetTags'
,'simpleSecondaryVertexHighEffBJetTags'
,'simpleSecondaryVertexHighPurBJetTags'
,'negativeSimpleSecondaryVertexHighEffBJetTags'
,'negativeSimpleSecondaryVertexHighPurBJetTags'
,'pfCombinedSecondaryVertexBJetTags'
,'combinedSecondaryVertexBJetTags'
,'positiveCombinedSecondaryVertexBJetTags'
,'negativeCombinedSecondaryVertexBJetTags'
,'simpleInclusiveSecondaryVertexHighEffBJetTags'
,'simpleInclusiveSecondaryVertexHighPurBJetTags'
,'negativeSimpleInclusiveSecondaryVertexHighEffBJetTags'
,'negativeSimpleInclusiveSecondaryVertexHighPurBJetTags'
,'doubleSecondaryVertexHighEffBJetTags'
,'combinedInclusiveSecondaryVertexBJetTags'
,'positiveCombinedInclusiveSecondaryVertexBJetTags'
,'negativeCombinedInclusiveSecondaryVertexBJetTags'
,'pfCombinedInclusiveSecondaryVertexV2BJetTags'
,'combinedInclusiveSecondaryVertexV2BJetTags'
,'positiveCombinedInclusiveSecondaryVertexV2BJetTags'
,'negativeCombinedInclusiveSecondaryVertexV2BJetTags'
,'combinedSecondaryVertexMVABJetTags'
,'softPFMuonBJetTags'
,'softPFMuonByPtBJetTags'
,'softPFMuonByIP3dBJetTags'
,'softPFMuonByIP2dBJetTags'
,'positiveSoftPFMuonBJetTags'
,'positiveSoftPFMuonByPtBJetTags'
,'positiveSoftPFMuonByIP3dBJetTags'
,'positiveSoftPFMuonByIP2dBJetTags'
,'negativeSoftPFMuonBJetTags'
,'negativeSoftPFMuonByPtBJetTags'
,'negativeSoftPFMuonByIP3dBJetTags'
,'negativeSoftPFMuonByIP2dBJetTags'
,'softPFElectronBJetTags'
,'softPFElectronByPtBJetTags'
,'softPFElectronByIP3dBJetTags'
,'softPFElectronByIP2dBJetTags'
,'positiveSoftPFElectronBJetTags'
,'positiveSoftPFElectronByPtBJetTags'
,'positiveSoftPFElectronByIP3dBJetTags'
,'positiveSoftPFElectronByIP2dBJetTags'
,'negativeSoftPFElectronBJetTags'
,'negativeSoftPFElectronByPtBJetTags'
,'negativeSoftPFElectronByIP3dBJetTags'
,'negativeSoftPFElectronByIP2dBJetTags'
,'combinedMVABJetTags'
,'positiveCombinedMVABJetTags'
,'negativeCombinedMVABJetTags'
],
)
btagDiscriminators = btagDiscriminators
)
process.patJetsAK4PF.addTagInfos = True

# uncomment the following lines to add subjets of pruned ca8PFJetsCHS with new b-tags to your PAT output
addJetCollection(
process,
labelName = 'CA8PFCHSPrunedSubjets',
jetSource = cms.InputTag('ca8PFJetsCHSPruned','SubJets'),
jetCorrections = ('AK4PFchs', cms.vstring(['L1FastJet', 'L2Relative', 'L3Absolute']), 'Type-2'), # FIXME: Use proper JECs, as soon as available
algo = 'CA',
rParam = 0.8,
btagDiscriminators = btagDiscriminators,
explicitJTA = True,
svClustering = True,
fatJets = cms.InputTag("ca8PFJetsCHS"),
groomedFatJets = cms.InputTag("ca8PFJetsCHSPruned"),
)
process.patJetsCA8PFCHSPrunedSubjets.addTagInfos = True

## JetID works only with RECO input for the CaloTowers (s. below for 'process.source.fileNames')
#process.patJets.addJetID=True
#process.load("RecoJets.JetProducers.ak4JetID_cfi")
Expand Down