CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/HeavyIonsAnalysis/Configuration/python/HI_DiJetSkim_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # HLT jet trigger
00004 import HLTrigger.HLTfilters.hltHighLevel_cfi
00005 hltJetHI = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
00006 hltJetHI.HLTPaths = ["HLT_HIJet50U"]
00007 hltJetHI.throw = False
00008 hltJetHI.andOr = True
00009 
00010 # selection of valid vertex
00011 primaryVertexFilterForJets = cms.EDFilter("VertexSelector",
00012     src = cms.InputTag("hiSelectedVertex"),
00013     cut = cms.string("!isFake && abs(z) <= 25 && position.Rho <= 2"), 
00014     filter = cms.bool(True),   # otherwise it won't filter the events
00015     )
00016 
00017 # jet energy correction (L2+L3)
00018 from JetMETCorrections.Configuration.JetCorrectionServicesAllAlgos_cff import *
00019 icPu5CaloJetsL2L3 = cms.EDProducer('CaloJetCorrectionProducer',
00020     src = cms.InputTag('iterativeConePu5CaloJets'),
00021     correctors = cms.vstring('ic5CaloL2L3')
00022     )
00023 
00024 # leading jet E_T filter
00025 jetEtFilter = cms.EDFilter("EtMinCaloJetCountFilter",
00026     src = cms.InputTag("icPu5CaloJetsL2L3"),
00027     etMin = cms.double(110.0),
00028     minNumber = cms.uint32(1)
00029     )
00030 
00031 # Dijet requirement
00032 leadingCaloJet = cms.EDFilter( "LargestEtCaloJetSelector",
00033     src = cms.InputTag( "icPu5CaloJetsL2L3" ),
00034     filter = cms.bool( False ),
00035     maxNumber = cms.uint32( 1 )
00036     )
00037 
00038 goodLeadingJet = cms.EDFilter("CaloJetSelector",
00039     src = cms.InputTag("leadingCaloJet"),
00040     cut = cms.string("et > 130")
00041     )
00042 
00043 goodSecondJet = cms.EDFilter("CaloJetSelector",
00044     src = cms.InputTag("icPu5CaloJetsL2L3"),
00045     cut = cms.string("et > 50")
00046     )
00047 
00048 backToBackDijets = cms.EDProducer("CandViewShallowCloneCombiner",
00049     checkCharge = cms.bool(False),
00050     cut = cms.string('abs(deltaPhi(daughter(0).phi,daughter(1).phi)) > 2.5'),
00051     decay = cms.string("goodLeadingJet goodSecondJet")
00052     )
00053 
00054 dijetFilter = cms.EDFilter("CandViewCountFilter",
00055     src = cms.InputTag("backToBackDijets"),
00056     minNumber = cms.uint32(1)
00057     )
00058 
00059 # dijet skim sequence
00060 diJetSkimSequence = cms.Sequence(hltJetHI
00061                                  * primaryVertexFilterForJets
00062                                  * icPu5CaloJetsL2L3
00063                                  * jetEtFilter
00064                                  * leadingCaloJet
00065                                  * goodLeadingJet
00066                                  * goodSecondJet
00067                                  * backToBackDijets
00068                                  * dijetFilter
00069                                  )