Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003
00004 MUON_CUT=("pt > 7 && abs(eta)<2.5 && (isGlobalMuon || isTrackerMuon)")
00005 ELECTRON_CUT=("pt > 10 && abs(eta)<2.5")
00006 DIMUON_CUT=("mass > 40 && daughter(0).pt>20 && daughter(1).pt()>7")
00007 DIELECTRON_CUT=("mass > 40 && daughter(0).pt>20 && daughter(1).pt()>10")
00008 EMU_CUT=("mass > 40 && ((daughter(0).pt>7 && daughter(1).pt()>20) || (daughter(0).pt>20 && daughter(1).pt()>10))")
00009
00010
00011 goodHzzMuons = cms.EDFilter("MuonRefSelector",
00012 src = cms.InputTag("muons"),
00013 cut = cms.string(MUON_CUT)
00014 )
00015 goodHzzElectrons = cms.EDFilter("GsfElectronRefSelector",
00016 src = cms.InputTag("gsfElectrons"),
00017 cut = cms.string(ELECTRON_CUT)
00018 )
00019
00020
00021 diHzzMuons = cms.EDProducer("CandViewShallowCloneCombiner",
00022 decay = cms.string("goodHzzMuons goodHzzMuons"),
00023 checkCharge = cms.bool(False),
00024 cut = cms.string(DIMUON_CUT)
00025 )
00026 diHzzElectrons = cms.EDProducer("CandViewShallowCloneCombiner",
00027 decay = cms.string("goodHzzElectrons goodHzzElectrons"),
00028 checkCharge = cms.bool(False),
00029 cut = cms.string(DIELECTRON_CUT)
00030 )
00031 crossHzzLeptons = cms.EDProducer("CandViewShallowCloneCombiner",
00032 decay = cms.string("goodHzzMuons goodHzzElectrons"),
00033 checkCharge = cms.bool(False),
00034 cut = cms.string(EMU_CUT)
00035 )
00036
00037
00038 diHzzMuonsFilter = cms.EDFilter("CandViewCountFilter",
00039 src = cms.InputTag("diHzzMuons"),
00040 minNumber = cms.uint32(1)
00041 )
00042 diHzzElectronsFilter = cms.EDFilter("CandViewCountFilter",
00043 src = cms.InputTag("diHzzElectrons"),
00044 minNumber = cms.uint32(1)
00045 )
00046 crossHzzLeptonsFilter = cms.EDFilter("CandViewCountFilter",
00047 src = cms.InputTag("crossHzzLeptons"),
00048 minNumber = cms.uint32(1)
00049 )
00050
00051
00052 zzdiMuonSequence = cms.Sequence( goodHzzMuons * diHzzMuons * diHzzMuonsFilter )
00053 zzdiElectronSequence = cms.Sequence( goodHzzElectrons * diHzzElectrons * diHzzElectronsFilter )
00054 zzeleMuSequence = cms.Sequence( goodHzzMuons * goodHzzElectrons * crossHzzLeptons * crossHzzLeptonsFilter )
00055