CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/ElectroWeakAnalysis/ZMuMu/python/ZMuMuGolden_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 import copy
00004 
00005 ###################################################
00006 #              muons for ZMuMu                    #    
00007 ###################################################
00008 
00009 goodGlobalMuons = cms.EDFilter("MuonViewRefSelector",
00010   src = cms.InputTag("muons"),
00011   cut = cms.string('isGlobalMuon = 1 & isTrackerMuon = 1 &  pt > 20 & abs(eta)<2.1 & isolationR03().sumPt<3.0 & abs(globalTrack().dxy)<0.2 & globalTrack().hitPattern().numberOfValidTrackerHits>10'),
00012   filter = cms.bool(True)                                
00013 )
00014 
00015 ###################################################
00016 #              combiner module                    #    
00017 ###################################################
00018 
00019 zmmCands = cms.EDFilter("CandViewShallowCloneCombiner",
00020     checkCharge = cms.bool(True),
00021     cut = cms.string('mass > 60 & mass<120 &  charge=0'),
00022     decay = cms.string("goodGlobalMuons@+ goodGlobalMuons@-")
00023 )
00024 
00025 
00026 # dimuon filter
00027 dimuonsFilter = cms.EDFilter("CandViewCountFilter",
00028     src = cms.InputTag("zmmCands"),
00029     minNumber = cms.uint32(1)
00030 )
00031 
00032 ### trigger filter: selection of the events which have fired the HLT trigger path given. You may want to use it or to duisegard at all add a trigger match or not....
00033 
00034 
00035 
00036 import HLTrigger.HLTfilters.hltHighLevel_cfi
00037 
00038 dimuonsHLTFilter = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
00039 # Add this to access 8E29 menu
00040 dimuonsHLTFilter.TriggerResultsTag = cms.InputTag("TriggerResults","","HLT")
00041 # for 1E31 menu
00042 #dimuonsHLTFilter.HLTPaths = ["HLT_Mu9", "HLT_DoubleMu3"]
00043 dimuonsHLTFilter.HLTPaths = ["HLT_Mu9"]
00044 
00045 
00046 
00047 
00048 ##################################################
00049 ###    trigger mathching, optional         #######
00050 ##################################################
00051 
00052 zSelection = cms.PSet(
00053 ## cut already implemented, but one could add more (e.g. massMin, massMax,... change the pt or eta cut....)
00054     cut = cms.string("charge = 0 & daughter(0).pt > 20 & daughter(1).pt > 20 & abs(daughter(0).eta)<2.1 & abs(daughter(1).eta)<2.1 & mass > 60"),
00055     )
00056 
00057 
00058 ##ZMuMu: at least one HLT trigger match
00059 goodZToMuMuAtLeast1HLT = cms.EDFilter(
00060     "ZGoldenSelectorAndFilter",
00061     zSelection,
00062     TrigTag = cms.InputTag("TriggerResults::HLT"),
00063     triggerEvent = cms.InputTag( "hltTriggerSummaryAOD::HLT" ),
00064     src = cms.InputTag("zmmCands"),
00065     condition =cms.string("atLeastOneMatched"),
00066     hltPath = cms.string("HLT_Mu9"),
00067     L3FilterName= cms.string("hltSingleMu9L3Filtered9"),
00068     maxDPtRel = cms.double( 1.0 ),
00069     maxDeltaR = cms.double( 0.2 ),
00070     filter = cms.bool(True) 
00071 )
00072 
00073 
00074 
00075 
00076 ewkZMuMuGoldenSequence = cms.Sequence(
00077     goodGlobalMuons 
00078 # one may want to disregard the HLT filter
00079     # * dimuonsHLTFilter   
00080     * zmmCands 
00081     * dimuonsFilter 
00082 # one may want to disregard the HLT matching
00083     # * goodZToMuMuAtLeast1HLT 
00084 )
00085 
00086