CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
triggerMatcherToHLTDebug_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
7 
8 triggerMatcherToHLTDebug = cms.EDProducer("TriggerMatcherToHLTDebug",
9  tags = cms.InputTag("muons"),
10  l1s = cms.InputTag("hltL1extraParticles"),
11  L2Muons_Collection=cms.InputTag("hltL2MuonCandidates"),
12  L2Seeds_Collection=cms.InputTag("hltL2MuonSeeds"),
13  L3Seeds_Collection=cms.InputTag("hltL3TrajectorySeed"),
14  L3TkTracks_Collection=cms.InputTag("hltL3TkTracksFromL2"),
15  L3Muons_Collection=cms.InputTag("hltL3MuonCandidates"),
16  BeamSpotTag = cms.InputTag("hltOfflineBeamSpot"),
17 
18  l1matcherConfig = cms.PSet(
19  #useTrack = cms.string('global'),
20  #useState = cms.string('outermost'),
21  useTrack = cms.string("tracker"), # 'none' to use Candidate P4; or 'tracker', 'muon', 'global'
22  useState = cms.string("atVertex"), # 'innermost' and 'outermost' require the TrackExtra
23  useSimpleGeometry = cms.bool(True),
24  ),
25  deltaR = cms.double(0.3),
26 
27  #FilteringL1
28  MinL1Quality = cms.int32( 1 ),
29 
30  #associationMap
31  SeedMapTag = cms.InputTag( "hltL2Muons" ),
32 
33 
34 
35  #FilteringL2
36  #PreviousCandTag_L2 = cms.InputTag( "hltL1SingleMu3L1Filtered0" ),
37  MinN_L2 = cms.int32( 1 ),
38  MaxEta_L2 = cms.double( 2.5 ),
39  MinNhits_L2 = cms.int32( 0 ),
40  MaxDr_L2 = cms.double( 9999.0 ),
41  MaxDz_L2 = cms.double( 9999.0 ),
42  MinPt_L2 = cms.double( 7.0 ),
43  NSigmaPt_L2 = cms.double( 0.0 ),
44 
45  #PreviousCandTag_L3 = cms.InputTag( "hltSingleMu5L2Filtered4" ),
46  MinN_L3 = cms.int32( 1 ),
47  MaxEta_L3 = cms.double( 2.5 ),
48  MinNhits_L3 = cms.int32( 0 ),
49  MaxDr_L3 = cms.double( 2.0 ),
50  MaxDz_L3 = cms.double( 9999.0 ),
51  MinPt_L3 = cms.double( 9.0 ),
52  NSigmaPt_L3 = cms.double( 0.0 ),
53 )
54 
55 def addUserData(patMuonProducer, matcherLabel='triggerMatcherToHLTDebug'):
56  patMuonProducer.userData.userInts.src += [
57  cms.InputTag(matcherLabel,"propagatesToM2"),
58  cms.InputTag(matcherLabel,"hasL1Particle"),
59  cms.InputTag(matcherLabel,"hasL1Filtered"),
60  cms.InputTag(matcherLabel,"hasL2Seed"),
61  cms.InputTag(matcherLabel,"hasL2Muon"),
62  cms.InputTag(matcherLabel,"hasL2MuonFiltered"),
63  cms.InputTag(matcherLabel,"hasL3Seed"),
64  cms.InputTag(matcherLabel,"hasL3Track"),
65  cms.InputTag(matcherLabel,"hasL3Muon"),
66  cms.InputTag(matcherLabel,"hasL3MuonFiltered"),
67  ]
68  patMuonProducer.userData.userCands.src += [
69  cms.InputTag(matcherLabel,"l1Candidate"),
70  cms.InputTag(matcherLabel,"l2Candidate"),
71  cms.InputTag(matcherLabel,"l3Candidate"),
72  ]
73