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 Tracker Hit associator
64  #
65  associatePixel = cms.bool(True),
66  associateStrip = cms.bool(True),
67  pixelSimLinkSrc = cms.InputTag("simSiPixelDigis"),
68  stripSimLinkSrc = cms.InputTag("simSiStripDigis"),
69  associateRecoTracks = cms.bool(True),
70  #
71  ROUList = cms.vstring('TrackerHitsTIBLowTof',
72  'TrackerHitsTIBHighTof',
73  'TrackerHitsTIDLowTof',
74  'TrackerHitsTIDHighTof',
75  'TrackerHitsTOBLowTof',
76  'TrackerHitsTOBHighTof',
77  'TrackerHitsTECLowTof',
78  'TrackerHitsTECHighTof',
79  'TrackerHitsPixelBarrelLowTof',
80  'TrackerHitsPixelBarrelHighTof',
81  'TrackerHitsPixelEndcapLowTof',
82  'TrackerHitsPixelEndcapHighTof'),
83  #
84  # to associate to reco::Muon segments (3.5.X only)
85  inputDTRecSegment4DCollection = cms.InputTag("dt4DSegments"),
86  inputCSCSegmentCollection = cms.InputTag("cscSegments"),
87 )
88 
89 muonAssociatorByHits = cms.EDProducer("MuonAssociatorEDProducer",
90  # COMMON CONFIGURATION
91  muonAssociatorByHitsCommonParameters,
92  # for Muon Track association
93  #
94  # input collections
95  #
96  # ... reco::Track collection
97  # tracksTag = cms.InputTag("standAloneMuons"),
98  # tracksTag = cms.InputTag("standAloneMuons","UpdatedAtVtx"),
99  # tracksTag = cms.InputTag("standAloneSETMuons"),
100  # tracksTag = cms.InputTag("standAloneSETMuons","UpdatedAtVtx"),
101  # tracksTag = cms.InputTag("cosmicMuons"),
102  tracksTag = cms.InputTag("globalMuons"),
103  # tracksTag = cms.InputTag("tevMuons","firstHit"),
104  # tracksTag = cms.InputTag("tevMuons","picky"),
105  # tracksTag = cms.InputTag("globalSETMuons"),
106  # tracksTag = cms.InputTag("globalCosmicMuons"),
107  # tracksTag = cms.InputTag("generalTracks"),
108  # tracksTag = cms.InputTag("ctfWithMaterialTracksP5LHCNavigation"),
109  # tracksTag = cms.InputTag("hltL2Muons"),
110  # tracksTag = cms.InputTag("hltL2Muons","UpdatedAtVtx"),
111  # tracksTag = cms.InputTag("hltL3Muons")
112  # tracksTag = cms.InputTag("hltL3Muons","L2Seeded")
113  # tracksTag = cms.InputTag("hltL3TkTracksFromL2")
114  #
115  # ... TrackingParticle collection
116  tpTag = cms.InputTag("mix","MergedTrackTruth"),
117  ignoreMissingTrackCollection = cms.untracked.bool(False),
118 )
119 
120 from Configuration.StandardSequences.Eras import eras
121 if eras.fastSim.isChosen():
122  muonAssociatorByHits.simtracksTag = "famosSimHits"
123  muonAssociatorByHits.DTsimhitsTag = "MuonSimHits:MuonDTHits"
124  muonAssociatorByHits.CSCsimHitsTag = "MuonSimHits:MuonCSCHits"
125  muonAssociatorByHits.RPCsimhitsTag = "MuonSimHits:MuonRPCHits"
126  muonAssociatorByHits.simtracksXFTag = "mix:famosSimHits"
127  muonAssociatorByHits.DTsimhitsXFTag = "mix:MuonSimHitsMuonDTHits"
128  muonAssociatorByHits.CSCsimHitsXFTag = "mix:MuonSimHitsMuonCSCHits"
129  muonAssociatorByHits.RPCsimhitsXFTag = "mix:MuonSimHitsMuonRPCHits"
130  muonAssociatorByHits.ROUList = ['famosSimHitsTrackerHits']