-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new PatJet collection with needed TagInfos
- Loading branch information
Seth
committed
Mar 21, 2017
1 parent
8b9e30b
commit 43526a0
Showing
2 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
# Need to add pfImpactParameterTagInfos to the pat jets --> make personal patJet collection | ||
from PhysicsTools.PatAlgos.producersLayer1.jetProducer_cfi import _patJets as patJets | ||
patJetsBDHadron = patJets.clone( | ||
tagInfoSources = cms.VInputTag(cms.InputTag('pfImpactParameterTagInfos')), | ||
addTagInfos = cms.bool(True) | ||
) | ||
|
||
selectedPatJetsBDHadron = cms.EDFilter("PATJetSelector", | ||
src = cms.InputTag("patJetsBDHadron"), | ||
cut = cms.string("pt > 10.") | ||
) | ||
|
||
|
||
# my analyzer | ||
from Validation.RecoB.BDHadronTrackMonitoring_cfi import * | ||
BDHadronTrackMonitoringAnalyze.PatJetSource = cms.InputTag('selectedPatJets') | ||
BDHadronTrackMonitoringAnalyze.PatJetSource = cms.InputTag('selectedPatJetsBDHadron')#'selectedPatJets') | ||
|
||
|
||
|
||
bdHadronTrackValidationSeq = cms.Sequence(BDHadronTrackMonitoringAnalyze) | ||
bdHadronTrackValidationSeq = cms.Sequence(patJetsBDHadron * selectedPatJetsBDHadron * BDHadronTrackMonitoringAnalyze) | ||
|
||
bdHadronTrackPostProcessor = cms.Sequence(BDHadronTrackMonitoringHarvest) |