CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/HLTrigger/HLTanalyzers/python/OpenHLT_BJet_cff.py

Go to the documentation of this file.
00001 ### Open-HLT includes, modules and paths for b-jet
00002 import copy
00003 import FWCore.ParameterSet.Config as cms
00004 
00005 from HLTrigger.HLTanalyzers.HLT_FULL_cff import *
00006 
00007 ### lifetime-based b-tag OpenHLT ######################################
00008 # L1 filter is skipped
00009 # L2 reco sequence is common to all paths, and taken from the global table
00010 # L2.5 and L3 sequences are rewritten to bypass selectors and filters
00011 
00012 # L2.5 reco modules
00013 
00014 ###### Use corrected jets same as 5E32 Menu
00015 BJetinputjetCollection="hltCaloJetCorrected"
00016 
00017 openHltBLifetimeL25Associator = copy.deepcopy(hltBLifetimeL25AssociatorSingleTop)
00018 openHltBLifetimeL25Associator.jets = cms.InputTag(BJetinputjetCollection)
00019 
00020 openHltBLifetimeL25TagInfos = copy.deepcopy(hltBLifetimeL25TagInfosSingleTop)
00021 openHltBLifetimeL25TagInfos.jetTracks = cms.InputTag("openHltBLifetimeL25Associator")
00022 
00023 openHltBLifetimeL25BJetTags = copy.deepcopy(hltBLifetimeL25BJetTagsSingleTop)
00024 openHltBLifetimeL25BJetTags.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL25TagInfos"))
00025 
00026 ###### Use corrected jets with L1FastJet PU subtraction
00027 BJetinputjetCollectionL1FastJet="hltCaloJetL1FastJetCorrected"
00028 
00029 openHltBLifetimeL25AssociatorL1FastJet = copy.deepcopy(hltBLifetimeL25AssociatorSingleTop)
00030 openHltBLifetimeL25AssociatorL1FastJet.jets = cms.InputTag(BJetinputjetCollectionL1FastJet)
00031 
00032 openHltBLifetimeL25TagInfosL1FastJet = copy.deepcopy(hltBLifetimeL25TagInfosSingleTop)
00033 openHltBLifetimeL25TagInfosL1FastJet.jetTracks = cms.InputTag("openHltBLifetimeL25AssociatorL1FastJet")
00034 
00035 openHltBLifetimeL25BJetTagsL1FastJet = copy.deepcopy(hltBLifetimeL25BJetTagsSingleTop)
00036 openHltBLifetimeL25BJetTagsL1FastJet.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL25TagInfosL1FastJet"))
00037 
00038 
00039 ###### Use PFJets
00040 BJetinputpfjetCollection="hltAntiKT5PFJets"
00041 
00042 
00043 # Modules specific to Single Track TC
00044 hltESPTrackCounting3D1st = cms.ESProducer( "TrackCountingESProducer",
00045                                            appendToDataLabel = cms.string( "" ),
00046                                            nthTrack = cms.int32( 1 ),
00047                                            impactParameterType = cms.int32( 0 ),
00048                                            deltaR = cms.double( -1.0 ),
00049                                            maximumDecayLength = cms.double( 5.0 ),
00050                                            maximumDistanceToJetAxis = cms.double( 0.07 ),
00051                                            trackQualityClass = cms.string( "any" )
00052                                         )
00053 
00054 
00055 hltBLifetimeL25BJetTagsSingleTrack = cms.EDProducer( "JetTagProducer",
00056                                                      jetTagComputer = cms.string( "hltESPTrackCounting3D1st" ),
00057                                                      tagInfos = cms.VInputTag( 'hltBLifetimeL25TagInfosSingleTop' )
00058                                                      )
00059 
00060 
00061 hltBLifetimeL3BJetTagsSingleTrack = cms.EDProducer( "JetTagProducer",
00062                                                     jetTagComputer = cms.string( "hltESPTrackCounting3D1st" ),
00063                                                     tagInfos = cms.VInputTag( 'hltBLifetimeL3TagInfosSingleTop' )
00064                                                     )
00065 
00066 hltBLifetimeL25BJetTagsSingleTrackL1FastJet = cms.EDProducer( "JetTagProducer",
00067                                                      jetTagComputer = cms.string( "hltESPTrackCounting3D1st" ),
00068                                                      tagInfos = cms.VInputTag( 'openHltBLifetimeL25TagInfosL1FastJet' )
00069                                                      )
00070 
00071 
00072 hltBLifetimeL3BJetTagsSingleTrackL1FastJet = cms.EDProducer( "JetTagProducer",
00073                                                     jetTagComputer = cms.string( "hltESPTrackCounting3D1st" ),
00074                                                     tagInfos = cms.VInputTag( 'openHltBLifetimeL3TagInfosL1FastJet' )
00075                                                     )
00076 
00077 # Single Track TC
00078 openHltBLifetimeL25BJetTagsSingleTrack = copy.deepcopy(hltBLifetimeL25BJetTagsSingleTrack)
00079 openHltBLifetimeL25BJetTagsSingleTrack.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL25TagInfos"))
00080 
00081 openHltBLifetimeL25BJetTagsSingleTrackL1FastJet = copy.deepcopy(hltBLifetimeL25BJetTagsSingleTrackL1FastJet)
00082 openHltBLifetimeL25BJetTagsSingleTrackL1FastJet.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL25TagInfos"))
00083 
00084 
00085 
00086 
00087 # L2.5 reco sequence for lifetime tagger
00088 OpenHLTBLifetimeL25recoSequence = cms.Sequence(
00089         HLTDoLocalPixelSequence +
00090         HLTRecopixelvertexingSequence +
00091         openHltBLifetimeL25Associator +
00092         openHltBLifetimeL25TagInfos +
00093         openHltBLifetimeL25AssociatorL1FastJet +
00094         openHltBLifetimeL25TagInfosL1FastJet +
00095         openHltBLifetimeL25BJetTagsSingleTrack +
00096         openHltBLifetimeL25BJetTagsSingleTrackL1FastJet +
00097         openHltBLifetimeL25BJetTags +
00098         openHltBLifetimeL25BJetTagsL1FastJet )
00099 
00100 # L3 reco modules
00101 openHltBLifetimeRegionalPixelSeedGenerator = copy.deepcopy(hltBLifetimeRegionalPixelSeedGeneratorSingleTop)
00102 openHltBLifetimeRegionalPixelSeedGenerator.RegionFactoryPSet.RegionPSet.JetSrc = cms.InputTag(BJetinputjetCollection)
00103 
00104 openHltBLifetimeRegionalCkfTrackCandidates = copy.deepcopy(hltBLifetimeRegionalCkfTrackCandidatesSingleTop)
00105 openHltBLifetimeRegionalCkfTrackCandidates.src = cms.InputTag("openHltBLifetimeRegionalPixelSeedGenerator")
00106 
00107 openHltBLifetimeRegionalCtfWithMaterialTracks = copy.deepcopy(hltBLifetimeRegionalCtfWithMaterialTracksSingleTop)
00108 openHltBLifetimeRegionalCtfWithMaterialTracks.src = cms.InputTag("openHltBLifetimeRegionalCkfTrackCandidates")
00109 
00110 openHltBLifetimeL3Associator = copy.deepcopy(hltBLifetimeL3AssociatorSingleTop)
00111 openHltBLifetimeL3Associator.jets   = cms.InputTag(BJetinputjetCollection)
00112 openHltBLifetimeL3Associator.tracks = cms.InputTag("openHltBLifetimeRegionalCtfWithMaterialTracks")
00113 
00114 openHltBLifetimeL3TagInfos = copy.deepcopy(hltBLifetimeL3TagInfosSingleTop)
00115 openHltBLifetimeL3TagInfos.jetTracks = cms.InputTag("openHltBLifetimeL3Associator")
00116 
00117 openHltBLifetimeL3BJetTags = copy.deepcopy(hltBLifetimeL3BJetTagsSingleTop)
00118 openHltBLifetimeL3BJetTags.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL3TagInfos"))
00119 
00120 # L1FastJet
00121 openHltBLifetimeRegionalPixelSeedGeneratorL1FastJet = copy.deepcopy(hltBLifetimeRegionalPixelSeedGeneratorSingleTop)
00122 openHltBLifetimeRegionalPixelSeedGeneratorL1FastJet.RegionFactoryPSet.RegionPSet.JetSrc = cms.InputTag(BJetinputjetCollectionL1FastJet)
00123 
00124 openHltBLifetimeRegionalCkfTrackCandidatesL1FastJet = copy.deepcopy(hltBLifetimeRegionalCkfTrackCandidatesSingleTop)
00125 openHltBLifetimeRegionalCkfTrackCandidatesL1FastJet.src = cms.InputTag("openHltBLifetimeRegionalPixelSeedGeneratorL1FastJet")
00126 
00127 openHltBLifetimeRegionalCtfWithMaterialTracksL1FastJet = copy.deepcopy(hltBLifetimeRegionalCtfWithMaterialTracksSingleTop)
00128 openHltBLifetimeRegionalCtfWithMaterialTracksL1FastJet.src = cms.InputTag("openHltBLifetimeRegionalCkfTrackCandidatesL1FastJet")
00129 
00130 openHltBLifetimeL3AssociatorL1FastJet = copy.deepcopy(hltBLifetimeL3AssociatorSingleTop)
00131 openHltBLifetimeL3AssociatorL1FastJet.jets   = cms.InputTag(BJetinputjetCollectionL1FastJet)
00132 openHltBLifetimeL3AssociatorL1FastJet.tracks = cms.InputTag("openHltBLifetimeRegionalCtfWithMaterialTracksL1FastJet")
00133 
00134 openHltBLifetimeL3TagInfosL1FastJet = copy.deepcopy(hltBLifetimeL3TagInfosSingleTop)
00135 openHltBLifetimeL3TagInfosL1FastJet.jetTracks = cms.InputTag("openHltBLifetimeL3AssociatorL1FastJet")
00136 
00137 openHltBLifetimeL3BJetTagsL1FastJet = copy.deepcopy(hltBLifetimeL3BJetTagsSingleTop)
00138 openHltBLifetimeL3BJetTagsL1FastJet.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL3TagInfosL1FastJet"))
00139 
00140 #PF jets
00141 openHltBLifetimeL3AssociatorPF = copy.deepcopy(hltBLifetimeL3AssociatorSingleTop)
00142 openHltBLifetimeL3AssociatorPF.jets   = cms.InputTag(BJetinputpfjetCollection)
00143 openHltBLifetimeL3AssociatorPF.tracks = cms.InputTag("hltIter4Merged")
00144 openHltBLifetimeL3AssociatorPF.pvSrc = cms.InputTag("hltPixelVertices")
00145 
00146 openHltBLifetimeL3TagInfosPF = copy.deepcopy(hltBLifetimeL3TagInfosSingleTop)
00147 openHltBLifetimeL3TagInfosPF.jetTracks = cms.InputTag("openHltBLifetimeL3AssociatorPF")
00148 
00149 openHltBLifetimeL3BJetTagsPF = copy.deepcopy(hltBLifetimeL3BJetTagsSingleTop)
00150 openHltBLifetimeL3BJetTagsPF.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL3TagInfosPF"))
00151 
00152 # Single Track TC
00153 openHltBLifetimeL3BJetTagsSingleTrack = copy.deepcopy(hltBLifetimeL3BJetTagsSingleTrack)
00154 openHltBLifetimeL3BJetTagsSingleTrack.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL3TagInfos"))
00155 
00156 openHltBLifetimeL3BJetTagsSingleTrackL1FastJet = copy.deepcopy(hltBLifetimeL3BJetTagsSingleTrackL1FastJet)
00157 openHltBLifetimeL3BJetTagsSingleTrackL1FastJet.tagInfos = cms.VInputTag(cms.InputTag("openHltBLifetimeL3TagInfosL1FastJet"))
00158 
00159 # L3 reco sequence for lifetime tagger
00160 OpenHLTBLifetimeL3recoSequence = cms.Sequence(
00161     HLTDoLocalPixelSequence +
00162     HLTRecopixelvertexingSequence +
00163     HLTDoLocalStripSequence +
00164     HLTPFReconstructionSequence +
00165     openHltBLifetimeRegionalPixelSeedGenerator +
00166     openHltBLifetimeRegionalCkfTrackCandidates +
00167     openHltBLifetimeRegionalCtfWithMaterialTracks +
00168     openHltBLifetimeRegionalPixelSeedGeneratorL1FastJet +
00169     openHltBLifetimeRegionalCkfTrackCandidatesL1FastJet +
00170     openHltBLifetimeRegionalCtfWithMaterialTracksL1FastJet +
00171     openHltBLifetimeL3Associator +
00172     openHltBLifetimeL3TagInfos +
00173     openHltBLifetimeL3AssociatorL1FastJet +
00174     openHltBLifetimeL3TagInfosL1FastJet +
00175     openHltBLifetimeL3AssociatorPF +
00176     openHltBLifetimeL3TagInfosPF +
00177     openHltBLifetimeL3BJetTagsSingleTrack +
00178     openHltBLifetimeL3BJetTagsSingleTrackL1FastJet +
00179     openHltBLifetimeL3BJetTags +
00180     openHltBLifetimeL3BJetTagsL1FastJet +
00181     openHltBLifetimeL3BJetTagsPF )
00182 
00183 ### soft-muon-based b-tag OpenHLT (ideal, start up, and performance meas.) ####
00184 # L1 filter is skipped
00185 # L2 reco sequence is common to all paths, and taken from the global table
00186 # L2.5 and L3 sequences are rewritten to bypass selectors and filters
00187 
00188 openHltBSoftmuonL25TagInfos = copy.deepcopy(hltBSoftMuonDiJet20L25TagInfos)
00189 openHltBSoftmuonL25TagInfos.jets = cms.InputTag(BJetinputjetCollection)
00190 
00191 #### BTagMu paths make use of SoftMuonByDR both at L2.5 and L3
00192 openHltBSoftmuonL25BJetTags = copy.deepcopy(hltBSoftMuonDiJet20L25BJetTagsByDR)
00193 openHltBSoftmuonL25BJetTags.tagInfos = cms.VInputTag(cms.InputTag("openHltBSoftmuonL25TagInfos"))
00194 
00195 openHltBSoftmuonL3TagInfos = copy.deepcopy(hltBSoftMuonDiJet20Mu5SelL3TagInfos)
00196 openHltBSoftmuonL3TagInfos.jets = cms.InputTag(BJetinputjetCollection)
00197 openHltBSoftmuonL3TagInfos.leptons = cms.InputTag("hltL3Muons")  #Feed the entire L3Muons not the filtered ones
00198 
00199 #### BTagMu paths make use of SoftMuonByDR both at L2.5 and L3
00200 openHltBPerfMeasL3BJetTags = copy.deepcopy(hltBSoftMuonDiJet20Mu5SelL3BJetTagsByDR)
00201 openHltBPerfMeasL3BJetTags.tagInfos = cms.VInputTag(cms.InputTag("openHltBSoftmuonL3TagInfos"))
00202 
00203 # L1FastJet
00204 
00205 openHltBSoftmuonL25TagInfosL1FastJet = copy.deepcopy(hltBSoftMuonDiJet20L25TagInfos)
00206 openHltBSoftmuonL25TagInfosL1FastJet.jets = cms.InputTag(BJetinputjetCollectionL1FastJet)
00207 
00208 #### BTagMu paths make use of SoftMuonByDR both at L2.5 and L3
00209 openHltBSoftmuonL25BJetTagsL1FastJet = copy.deepcopy(hltBSoftMuonDiJet20L25BJetTagsByDR)
00210 openHltBSoftmuonL25BJetTagsL1FastJet.tagInfos = cms.VInputTag(cms.InputTag("openHltBSoftmuonL25TagInfosL1FastJet"))
00211 
00212 openHltBSoftmuonL3TagInfosL1FastJet = copy.deepcopy(hltBSoftMuonDiJet20Mu5SelL3TagInfos)
00213 openHltBSoftmuonL3TagInfosL1FastJet.jets = cms.InputTag(BJetinputjetCollectionL1FastJet)
00214 openHltBSoftmuonL3TagInfosL1FastJet.leptons = cms.InputTag("hltL3Muons")  #Feed the entire L3Muons not the filtered ones
00215 
00216 #### BTagMu paths make use of SoftMuonByDR both at L2.5 and L3
00217 openHltBPerfMeasL3BJetTagsL1FastJet = copy.deepcopy(hltBSoftMuonDiJet20Mu5SelL3BJetTagsByDR)
00218 openHltBPerfMeasL3BJetTagsL1FastJet.tagInfos = cms.VInputTag(cms.InputTag("openHltBSoftmuonL3TagInfosL1FastJet"))
00219 
00220 
00221 
00222 OpenHLTBSoftMuonL25recoSequence = cms.Sequence(
00223     HLTL2muonrecoNocandSequence +
00224     openHltBSoftmuonL25TagInfos +
00225     openHltBSoftmuonL25TagInfosL1FastJet +
00226     openHltBSoftmuonL25BJetTags +
00227     openHltBSoftmuonL25BJetTagsL1FastJet )
00228 
00229 OpenHLTBSoftMuonL3recoSequence = cms.Sequence(
00230     HLTL3muonrecoNocandSequence +
00231     openHltBSoftmuonL3TagInfos +
00232     openHltBSoftmuonL3TagInfosL1FastJet +
00233     openHltBPerfMeasL3BJetTags +
00234     openHltBPerfMeasL3BJetTagsL1FastJet )
00235     
00236