CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HI_DiJetSkim_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # HLT jet trigger
5 hltJetHI = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
6 hltJetHI.HLTPaths = ["HLT_HIJet50U"]
7 hltJetHI.throw = False
8 hltJetHI.andOr = True
9 
10 # selection of valid vertex
11 primaryVertexFilterForJets = cms.EDFilter("VertexSelector",
12  src = cms.InputTag("hiSelectedVertex"),
13  cut = cms.string("!isFake && abs(z) <= 25 && position.Rho <= 2"),
14  filter = cms.bool(True), # otherwise it won't filter the events
15  )
16 
17 # jet energy correction (L2+L3)
19 icPu5CaloJetsL2L3 = cms.EDProducer('CaloJetCorrectionProducer',
20  src = cms.InputTag('iterativeConePu5CaloJets'),
21  correctors = cms.vstring('ic5CaloL2L3')
22  )
23 
24 # leading jet E_T filter
25 jetEtFilter = cms.EDFilter("EtMinCaloJetCountFilter",
26  src = cms.InputTag("icPu5CaloJetsL2L3"),
27  etMin = cms.double(110.0),
28  minNumber = cms.uint32(1)
29  )
30 
31 # Dijet requirement
32 leadingCaloJet = cms.EDFilter( "LargestEtCaloJetSelector",
33  src = cms.InputTag( "icPu5CaloJetsL2L3" ),
34  filter = cms.bool( False ),
35  maxNumber = cms.uint32( 1 )
36  )
37 
38 goodLeadingJet = cms.EDFilter("CaloJetSelector",
39  src = cms.InputTag("leadingCaloJet"),
40  cut = cms.string("et > 130")
41  )
42 
43 goodSecondJet = cms.EDFilter("CaloJetSelector",
44  src = cms.InputTag("icPu5CaloJetsL2L3"),
45  cut = cms.string("et > 50")
46  )
47 
48 backToBackDijets = cms.EDProducer("CandViewShallowCloneCombiner",
49  checkCharge = cms.bool(False),
50  cut = cms.string('abs(deltaPhi(daughter(0).phi,daughter(1).phi)) > 2.5'),
51  decay = cms.string("goodLeadingJet goodSecondJet")
52  )
53 
54 dijetFilter = cms.EDFilter("CandViewCountFilter",
55  src = cms.InputTag("backToBackDijets"),
56  minNumber = cms.uint32(1)
57  )
58 
59 # dijet skim sequence
60 diJetSkimSequence = cms.Sequence(hltJetHI
61  * primaryVertexFilterForJets
62  * icPu5CaloJetsL2L3
63  * jetEtFilter
64  * leadingCaloJet
65  * goodLeadingJet
66  * goodSecondJet
67  * backToBackDijets
68  * dijetFilter
69  )