CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DPGAnalysis/Skims/python/singleMuonSkim_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 #from HLTrigger.HLTfilters.hltHighLevel_cfi import *
00004 #exoticaMuHLT = hltHighLevel
00005 #Define the HLT path to be used.
00006 #exoticaMuHLT.HLTPaths =['HLT_L1MuOpen']
00007 #exoticaMuHLT.TriggerResultsTag = cms.InputTag("TriggerResults","","HLT8E29")
00008 
00009 #Define the HLT quality cut 
00010 #exoticaHLTMuonFilter = cms.EDFilter("HLTSummaryFilter",
00011 #    summary = cms.InputTag("hltTriggerSummaryAOD","","HLT8E29"), # trigger summary
00012 #    member  = cms.InputTag("hltL3MuonCandidates","","HLT8E29"),      # filter or collection                                                                    
00013 #    cut     = cms.string("pt>0"),                     # cut on trigger object
00014 #    minN    = cms.int32(0)                  # min. # of passing objects needed
00015 # )
00016                                
00017 
00018 #Define the Reco quality cut
00019 singleRecoMuonPt20Filter = cms.EDFilter("MuonRefSelector",
00020                                         src = cms.InputTag("muons"),
00021                                         cut = cms.string('pt > 20.0 && abs(eta) < 2.1' ),
00022                                         filter = cms.bool(True),
00023                                         minN    = cms.int32(1) 
00024                                         )
00025 
00026 singleRecoMuonPt15Filter = cms.EDFilter("MuonRefSelector",
00027                                         src = cms.InputTag("muons"),
00028                                         cut = cms.string('pt > 15.0 && abs(eta) < 2.1' ),
00029                                         filter = cms.bool(True),
00030                                         minN    = cms.int32(1)
00031                                         )
00032 
00033 singleRecoMuonPt10Filter = cms.EDFilter("MuonRefSelector",
00034                                         src = cms.InputTag("muons"),
00035                                         cut = cms.string('pt > 10.0 && abs(eta) < 2.1' ),
00036                                         filter = cms.bool(True),
00037                                         minN    = cms.int32(1)
00038                                         )
00039 
00040 singleRecoMuonPt5Filter = cms.EDFilter("MuonRefSelector",
00041                                         src = cms.InputTag("muons"),
00042                                         cut = cms.string('pt > 0.5 && abs(eta) < 2.1 && isGlobalMuon == 1  && abs (track().d0) < 2 ' ),
00043                                         filter = cms.bool(True),
00044                                         minN    = cms.int32(1)
00045                                         )
00046 
00047 
00048 muonSCMerger =  cms.EDFilter("EgammaSuperClusterMerger",
00049                                    src = cms.VInputTag(cms.InputTag('correctedHybridSuperClusters'),
00050                                                        cms.InputTag('correctedMulti5x5SuperClustersWithPreshower'))
00051                                    )
00052 muonSCCands = cms.EDProducer("ConcreteEcalCandidateProducer",
00053                                    src = cms.InputTag("muonSCMerger"),
00054                                    particleType = cms.string('mu+')
00055                                    )
00056 
00057 goodMuonSCs = cms.EDFilter("CandViewRefSelector",
00058                                  src = cms.InputTag("muonSCCands"),
00059                                  cut = cms.string('et > 2.0')
00060                                  )
00061 
00062 muonSCPt5Filter = cms.EDFilter("CandViewCountFilter",
00063                                      src = cms.InputTag("goodMuonSCs"),
00064                                      minNumber = cms.uint32(2)
00065                                      )
00066 
00067 muonEmClusters = cms.Sequence(
00068     muonSCMerger+muonSCCands+goodMuonSCs+muonSCPt5Filter
00069     )
00070 
00071 
00072 #Define group sequence, using HLT/Reco quality cut. 
00073 #singleMuHLTQualitySeq = cms.Sequence()
00074 singleMuPt20RecoQualitySeq = cms.Sequence(
00075     #singleMuHLT+
00076     singleRecoMuonPt20Filter
00077 )
00078 
00079 singleMuPt15RecoQualitySeq = cms.Sequence(
00080     #singleMuHLT+
00081     singleRecoMuonPt15Filter
00082 )
00083 
00084 singleMuPt10RecoQualitySeq = cms.Sequence(
00085     #singleMuHLT+
00086     singleRecoMuonPt10Filter
00087 )
00088 
00089 singleMuPt5RecoQualitySeq = cms.Sequence(
00090         #singleMuHLT+
00091 #    muonEmClusters+
00092         singleRecoMuonPt5Filter
00093         )