test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonAssociatorByHits_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 muonAssociatorByHitsCommonParameters = cms.PSet(
5  dumpInputCollections = cms.untracked.bool(False),
6  #
7  #....... general input parameters
8  #
9  # include invalid muon hits
10  includeZeroHitMuons = cms.bool(True),
11  #
12  # accept to match only tracker/muon stub of globalMuons
13  acceptOneStubMatchings = cms.bool(True),
14  #
15  # switches to be set according to the input Track collection
16  UseTracker = cms.bool(True),
17  UseMuon = cms.bool(True),
18  #
19  # cuts for the muon stub
20  AbsoluteNumberOfHits_muon = cms.bool(False),
21  NHitCut_muon = cms.uint32(0),
22  EfficiencyCut_muon = cms.double(0.),
23  PurityCut_muon = cms.double(0.),
24  #
25  # cuts for the tracker stub
26  AbsoluteNumberOfHits_track = cms.bool(False),
27  NHitCut_track = cms.uint32(0),
28  EfficiencyCut_track = cms.double(0.),
29  PurityCut_track = cms.double(0.),
30  #
31  # switches for the tracker stub
32  UsePixels = cms.bool(True),
33  UseGrouped = cms.bool(True),
34  UseSplitting = cms.bool(True),
35  ThreeHitTracksAreSpecial = cms.bool(False),
36  #
37  # for DT Hit associator
38  crossingframe = cms.bool(False),
39  simtracksTag = cms.InputTag("g4SimHits"),
40  simtracksXFTag = cms.InputTag("mix","g4SimHits"),
41  #
42  DTsimhitsTag = cms.InputTag("g4SimHits","MuonDTHits"),
43  DTsimhitsXFTag = cms.InputTag("mix","g4SimHitsMuonDTHits"),
44  DTdigiTag = cms.InputTag("simMuonDTDigis"),
45  DTdigisimlinkTag = cms.InputTag("simMuonDTDigis"),
46  DTrechitTag = cms.InputTag("dt1DRecHits"),
47  #
48  dumpDT = cms.bool(False),
49  links_exist = cms.bool(True),
50  associatorByWire = cms.bool(False),
51  #
52  # for CSC Hit associator
53  CSCsimHitsTag = cms.InputTag("g4SimHits","MuonCSCHits"),
54  CSCsimHitsXFTag = cms.InputTag("mix","g4SimHitsMuonCSCHits"),
55  CSClinksTag = cms.InputTag("simMuonCSCDigis","MuonCSCStripDigiSimLinks"),
56  CSCwireLinksTag = cms.InputTag("simMuonCSCDigis","MuonCSCWireDigiSimLinks"),
57  #
58  # for RPC Hit associator
59  RPCsimhitsTag = cms.InputTag("g4SimHits","MuonRPCHits"),
60  RPCsimhitsXFTag = cms.InputTag("mix","g4SimHitsMuonRPCHits"),
61  RPCdigisimlinkTag = cms.InputTag("simMuonRPCDigis","RPCDigiSimLink"),
62  #
63  # for GEM Hit associator
64  useGEMs = cms.bool(False),
65  GEMsimhitsTag = cms.InputTag("g4SimHits","MuonGEMHits"),
66  GEMsimhitsXFTag = cms.InputTag("mix","g4SimHitsMuonGEMHits"),
67  GEMdigisimlinkTag = cms.InputTag("simMuonGEMDigis","GEM"),
68  #
69  # for Tracker Hit associator
70  #
71  associatePixel = cms.bool(True),
72  associateStrip = cms.bool(True),
73  pixelSimLinkSrc = cms.InputTag("simSiPixelDigis"),
74  stripSimLinkSrc = cms.InputTag("simSiStripDigis"),
75  associateRecoTracks = cms.bool(True),
76  #
77  ROUList = cms.vstring('TrackerHitsTIBLowTof',
78  'TrackerHitsTIBHighTof',
79  'TrackerHitsTIDLowTof',
80  'TrackerHitsTIDHighTof',
81  'TrackerHitsTOBLowTof',
82  'TrackerHitsTOBHighTof',
83  'TrackerHitsTECLowTof',
84  'TrackerHitsTECHighTof',
85  'TrackerHitsPixelBarrelLowTof',
86  'TrackerHitsPixelBarrelHighTof',
87  'TrackerHitsPixelEndcapLowTof',
88  'TrackerHitsPixelEndcapHighTof'),
89  #
90  # to associate to reco::Muon segments (3.5.X only)
91  inputDTRecSegment4DCollection = cms.InputTag("dt4DSegments"),
92  inputCSCSegmentCollection = cms.InputTag("cscSegments"),
93 )
94 
95 
96 from Configuration.StandardSequences.Eras import eras
97 if eras.fastSim.isChosen():
98 #if True:
99  obj = muonAssociatorByHitsCommonParameters
100  obj.simtracksTag = "famosSimHits"
101  obj.DTsimhitsTag = "MuonSimHits:MuonDTHits"
102  obj.CSCsimHitsTag = "MuonSimHits:MuonCSCHits"
103  obj.RPCsimhitsTag = "MuonSimHits:MuonRPCHits"
104  obj.simtracksXFTag = "mix:famosSimHits"
105  obj.DTsimhitsXFTag = "mix:MuonSimHitsMuonDTHits"
106  obj.CSCsimHitsXFTag = "mix:MuonSimHitsMuonCSCHits"
107  obj.RPCsimhitsXFTag = "mix:MuonSimHitsMuonRPCHits"
108  obj.ROUList = ['famosSimHitsTrackerHits']
109 
110 
111 muonAssociatorByHits = cms.EDProducer("MuonAssociatorEDProducer",
112  # COMMON CONFIGURATION
113  muonAssociatorByHitsCommonParameters,
114  # for Muon Track association
115  #
116  # input collections
117  #
118  # ... reco::Track collection
119  # tracksTag = cms.InputTag("standAloneMuons"),
120  # tracksTag = cms.InputTag("standAloneMuons","UpdatedAtVtx"),
121  # tracksTag = cms.InputTag("standAloneSETMuons"),
122  # tracksTag = cms.InputTag("standAloneSETMuons","UpdatedAtVtx"),
123  # tracksTag = cms.InputTag("cosmicMuons"),
124  tracksTag = cms.InputTag("globalMuons"),
125  # tracksTag = cms.InputTag("tevMuons","firstHit"),
126  # tracksTag = cms.InputTag("tevMuons","picky"),
127  # tracksTag = cms.InputTag("globalSETMuons"),
128  # tracksTag = cms.InputTag("globalCosmicMuons"),
129  # tracksTag = cms.InputTag("generalTracks"),
130  # tracksTag = cms.InputTag("ctfWithMaterialTracksP5LHCNavigation"),
131  # tracksTag = cms.InputTag("hltL2Muons"),
132  # tracksTag = cms.InputTag("hltL2Muons","UpdatedAtVtx"),
133  # tracksTag = cms.InputTag("hltL3Muons")
134  # tracksTag = cms.InputTag("hltL3Muons","L2Seeded")
135  # tracksTag = cms.InputTag("hltL3TkTracksFromL2")
136  #
137  # ... TrackingParticle collection
138  tpTag = cms.InputTag("mix","MergedTrackTruth"),
139  ignoreMissingTrackCollection = cms.untracked.bool(False),
140 )
141 
142