Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:31:08

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from PhysicsTools.PatAlgos.selectionLayer1.muonSelector_cfi import selectedPatMuons
0004 from EgammaAnalysis.ElectronTools.electronRegressionEnergyProducer_cfi import eleRegressionEnergy
0005 from EgammaAnalysis.ElectronTools.calibratedPatElectrons_cfi import calibratedPatElectrons
0006 from PhysicsTools.PatAlgos.selectionLayer1.electronSelector_cfi import selectedPatElectrons
0007 from PhysicsTools.PatAlgos.selectionLayer1.jetSelector_cfi import selectedPatJets
0008 
0009 # Step 1
0010 
0011 selectedMuons = selectedPatMuons.clone(
0012   src = cms.InputTag( 'patMuons' )
0013 , cut = '' # muonCut
0014 )
0015 
0016 preSignalMuons = selectedPatMuons.clone(
0017   src = cms.InputTag( 'selectedMuons' )
0018 , cut = '' # signalMuonCut
0019 )
0020 
0021 signalMuons = cms.EDProducer(
0022   "MuonSelectorVertex"
0023 , muonSource   = cms.InputTag( 'preSignalMuons' )
0024 , vertexSource = cms.InputTag( 'offlinePrimaryVertices' )
0025 , maxDZ        = cms.double( 999. ) # muonVertexMaxDZ
0026 )
0027 
0028 standAloneSignalMuonFilter = cms.EDFilter(
0029   "PATCandViewCountFilter"
0030 , src       = cms.InputTag( 'signalMuons' )
0031 , minNumber = cms.uint32( 1 )
0032 , maxNumber = cms.uint32( 1 )
0033 )
0034 
0035 # Step 2
0036 
0037 standAloneLooseMuonVetoFilter = cms.EDFilter(
0038   "PATCandViewCountFilter"
0039 , src       = cms.InputTag( 'selectedMuons' )
0040 , minNumber = cms.uint32( 0 )
0041 , maxNumber = cms.uint32( 1 )
0042 )
0043 
0044 # Step 3
0045 
0046 electronsWithRegression = eleRegressionEnergy.clone(
0047   inputElectronsTag = cms.InputTag( 'patElectrons' )
0048 , rhoCollection     = cms.InputTag( 'fixedGridRhoFastjetAll' )
0049 , vertexCollection  = cms.InputTag( 'offlinePrimaryVertices' )
0050 )
0051 calibratedElectrons = calibratedPatElectrons.clone(
0052   inputPatElectronsTag = cms.InputTag( 'electronsWithRegression' )
0053 , inputDataset         = 'Summer12'
0054 )
0055 
0056 selectedElectrons = selectedPatElectrons.clone(
0057   src = cms.InputTag( 'patElectrons' )
0058 , cut = '' # electronCut
0059 )
0060 
0061 standAloneElectronVetoFilter = cms.EDFilter(
0062   "PATCandViewCountFilter"
0063 , src       = cms.InputTag( 'selectedElectrons' )
0064 , minNumber = cms.uint32( 0 )
0065 , maxNumber = cms.uint32( 0 )
0066 )
0067 
0068 # Step 4
0069 
0070 selectedJets = selectedPatJets.clone(
0071   src = cms.InputTag( 'patJets' )
0072 , cut = '' # jetCut
0073 )
0074 
0075 signalVeryTightJets = selectedPatJets.clone(
0076   src = cms.InputTag( 'selectedJets' )
0077 , cut = '' # veryTightJetCut
0078 )
0079 
0080 standAloneSignalVeryTightJetsFilter = cms.EDFilter(
0081   "PATCandViewCountFilter"
0082 , src       = cms.InputTag( 'signalVeryTightJets' )
0083 , minNumber = cms.uint32( 1 )
0084 , maxNumber = cms.uint32( 99 )
0085 )
0086 
0087 signalTightJets = selectedPatJets.clone(
0088   src = cms.InputTag( 'selectedJets' )
0089 , cut = '' # tightJetCut
0090 )
0091 
0092 standAloneSignalTightJetsFilter = cms.EDFilter(
0093   "PATCandViewCountFilter"
0094 , src       = cms.InputTag( 'signalTightJets' )
0095 , minNumber = cms.uint32( 2 )
0096 , maxNumber = cms.uint32( 99 )
0097 )
0098 
0099 signalLooseJets = selectedPatJets.clone(
0100   src = cms.InputTag( 'selectedJets' )
0101 , cut = '' # looseJetCut
0102 )
0103 
0104 standAloneSignalLooseJetsFilter = cms.EDFilter(
0105   "PATCandViewCountFilter"
0106 , src       = cms.InputTag( 'signalLooseJets' )
0107 , minNumber = cms.uint32( 3 )
0108 , maxNumber = cms.uint32( 99 )
0109 )
0110 
0111 # Step 5
0112 
0113 signalVeryLooseJets = selectedPatJets.clone(
0114   src = cms.InputTag( 'selectedJets' )
0115 , cut = '' # veryLooseJetCut
0116 )
0117 
0118 standAloneSignalVeryLooseJetsFilter = cms.EDFilter(
0119   "PATCandViewCountFilter"
0120 , src       = cms.InputTag( 'signalVeryLooseJets' )
0121 , minNumber = cms.uint32( 4 )
0122 , maxNumber = cms.uint32( 99 )
0123 )
0124 
0125 # Step 6
0126 
0127 selectedBTagJets = selectedPatJets.clone(
0128   src = cms.InputTag( 'selectedJets' )
0129 , cut = '' # btagCut
0130 )
0131 
0132 standAloneSignalBTagsFilter = cms.EDFilter(
0133   "PATCandViewCountFilter"
0134 , src       = cms.InputTag( 'selectedBTagJets' )
0135 , minNumber = cms.uint32( 2 )
0136 , maxNumber = cms.uint32( 99 )
0137 )