test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
patRefSel_refMuJets_cfi.py
Go to the documentation of this file.
2 
5 
6 ### Muons
7 
8 intermediatePatMuons = selectedPatMuons.clone(
9  src = cms.InputTag( 'selectedPatMuons' )
10 , cut = '' # signalMuonCut
11 )
12 goodPatMuons = cms.EDProducer(
13  "MuonSelectorVertex"
14 , muonSource = cms.InputTag( 'intermediatePatMuons' )
15 , vertexSource = cms.InputTag( 'offlinePrimaryVertices' )
16 , maxDZ = cms.double( 999. ) # muonVertexMaxDZ
17 )
18 
19 step1 = cms.EDFilter(
20  "PATCandViewCountFilter"
21 , src = cms.InputTag( 'goodPatMuons' )
22 , minNumber = cms.uint32( 1 )
23 , maxNumber = cms.uint32( 1 )
24 )
25 
26 step2 = countPatMuons.clone(
27  maxNumber = 1 # includes the signal muon
28 )
29 
30 ### Jets
31 
32 veryLoosePatJets = selectedPatJets.clone(
33  src = 'selectedPatJets'
34 , cut = '' # veryLooseJetCut
35 )
36 loosePatJets = selectedPatJets.clone(
37  src = 'veryLoosePatJets'
38 , cut = '' # looseJetCut
39 )
40 tightPatJets = selectedPatJets.clone(
41  src = 'loosePatJets'
42 , cut = '' # tightJetCut
43 )
44 
45 step4a = cms.EDFilter(
46  "PATCandViewCountFilter"
47 , src = cms.InputTag( 'tightPatJets' )
48 , minNumber = cms.uint32( 1 )
49 , maxNumber = cms.uint32( 999999 )
50 )
51 step4b = step4a.clone(
52  minNumber = 2
53 )
54 step4cTight = step4a.clone(
55  minNumber = 3
56 )
57 step4cLoose = step4a.clone(
58  src = 'loosePatJets'
59 , minNumber = 3
60 )
61 step5 = step4a.clone(
62  src = 'veryLoosePatJets'
63 , minNumber = 4
64 )
65 
66 ### Electrons
67 
68 step3 = countPatElectrons.clone( maxNumber = 0 )
69