CMS 3D CMS Logo

associators_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 #Track selector
00004 from Validation.RecoMuon.selectors_cff import *
00005 
00006 #TrackAssociation
00007 from SimTracker.TrackAssociation.TrackAssociatorByChi2_cfi import *
00008 from SimTracker.TrackAssociation.TrackAssociatorByHits_cfi import *
00009 from SimTracker.TrackAssociation.TrackAssociatorByPosition_cfi import *
00010 
00011 #TrackAssociation by DeltaR
00012 TrackAssociatorByPosDeltaR = cms.ESProducer('TrackAssociatorByPositionESProducer',
00013     # QminCut not used
00014     QminCut = cms.double(120.0),
00015     MinIfNoMatch = cms.bool(False),
00016     ComponentName = cms.string('TrackAssociatorByDeltaR'),
00017     propagator = cms.string('SteppingHelixPropagatorAny'),
00018     # minimum distance from the origin to find a hit 
00019     # from a simulated particle and match it to reconstructed track
00020     positionMinimumDistance = cms.double(0.0),
00021     # use the delta eta-phi estimator on the position 
00022     # at a plane in the muon system    
00023     method = cms.string('momdr'),
00024     QCut = cms.double(0.5)
00025 )
00026 
00027 tpToTkmuTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00028     associator = cms.string('trackAssociatorByHits'),
00029     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00030     label_tr = cms.InputTag('generalTracks')
00031 )
00032 
00033 tpToStaTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00034     associator = cms.string('TrackAssociatorByDeltaR'),
00035     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00036     label_tr = cms.InputTag('standAloneMuons','UpdatedAtVtx')
00037 #    label_tr = cms.InputTag('muonSta')
00038 )
00039 
00040 tpToGlbTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00041     associator = cms.string('TrackAssociatorByDeltaR'),
00042     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00043     label_tr = cms.InputTag('globalMuons')
00044 #    label_tr = cms.InputTag('muonGlb')
00045 )
00046 
00047 tpToL2TrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
00048 
00049     associator = cms.string('TrackAssociatorByDeltaR'),
00050     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00051     label_tr = cms.InputTag('hltL2Muons','UpdatedAtVtx')
00052 )
00053 
00054 tpToL3TrackAssociation = cms.EDProducer("TrackAssociatorEDProducer",
00055 
00056     associator = cms.string('TrackAssociatorByDeltaR'),
00057     label_tp = cms.InputTag('mergedtruth', 'MergedTrackTruth'),
00058     label_tr = cms.InputTag('hltL3Muons')
00059 )
00060 
00061 tpToL3TkTrackTrackAssociation = cms.EDProducer("TrackAssociatorEDProducer",
00062     associator = cms.string('trackAssociatorByHits'),
00063     label_tp = cms.InputTag('mergedtruth','MergedTrackTruth'),
00064     label_tr = cms.InputTag('hltL3TkTracksFromL2','')
00065 )
00066 
00067 tpToL3L2TrackTrackAssociation = cms.EDProducer("TrackAssociatorEDProducer",
00068     associator = cms.string('trackAssociatorByHits'),
00069     label_tp = cms.InputTag('mergedtruth','MergedTrackTruth'),
00070     label_tr = cms.InputTag('hltL3Muons:L2Seeded')
00071 )
00072 
00073 
00074 #MuonAssociation
00075 import SimMuon.MCTruth.MuonAssociatorByHits_cfi
00076 
00077 tpToTkMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00078 tpToStaMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00079 tpToGlbMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00080 tpToL3TkMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00081 tpToL2MuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00082 tpToL3MuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
00083 
00084 tpToTkMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00085 tpToTkMuonAssociation.tracksTag = 'generalTracks'
00086 tpToTkMuonAssociation.SimToReco_useTracker = True
00087 tpToTkMuonAssociation.SimToReco_useMuon = False
00088 tpToTkMuonAssociation.EfficiencyCut_track = 0.5
00089 tpToTkMuonAssociation.PurityCut_track = 0.75
00090 
00091 tpToStaMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00092 tpToStaMuonAssociation.tracksTag = 'standAloneMuons:UpdatedAtVtx'
00093 tpToStaMuonAssociation.SimToReco_useTracker = False
00094 tpToStaMuonAssociation.SimToReco_useMuon = True
00095 tpToStaMuonAssociation.EfficiencyCut_muon = 0.5
00096 tpToStaMuonAssociation.PurityCut_muon = 0.5
00097 
00098 tpToGlbMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00099 tpToGlbMuonAssociation.tracksTag = 'globalMuons'
00100 tpToGlbMuonAssociation.SimToReco_useTracker = True
00101 tpToGlbMuonAssociation.SimToReco_useMuon = True
00102 tpToGlbMuonAssociation.EfficiencyCut_muon = 0.5
00103 tpToGlbMuonAssociation.PurityCut_muon = 0.5
00104 tpToGlbMuonAssociation.EfficiencyCut_track = 0.5
00105 tpToGlbMuonAssociation.PurityCut_track = 0.75
00106 
00107 tpToL3TkMuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00108 tpToL3TkMuonAssociation.tracksTag = 'hltL3TkTracksFromL2'
00109 tpToL3TkMuonAssociation.DTrechitTag = 'hltDt1DRecHits'
00110 tpToL3TkMuonAssociation.SimToReco_useTracker = True
00111 tpToL3TkMuonAssociation.SimToReco_useMuon = False
00112 tpToL3TkMuonAssociation.EfficiencyCut_track = 0.5
00113 tpToL3TkMuonAssociation.PurityCut_track = 0.75
00114 
00115 tpToL2MuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00116 tpToL2MuonAssociation.tracksTag = 'hltL2Muons:UpdatedAtVtx'
00117 tpToL2MuonAssociation.DTrechitTag = 'hltDt1DRecHits'
00118 tpToL2MuonAssociation.SimToReco_useTracker = False
00119 tpToL2MuonAssociation.SimToReco_useMuon = True
00120 tpToL2MuonAssociation.EfficiencyCut_muon = 0.5
00121 tpToL2MuonAssociation.PurityCut_muon = 0.5
00122 
00123 tpToL3MuonAssociation.tpTag = 'mergedtruth:MergedTrackTruth'
00124 tpToL3MuonAssociation.tracksTag = 'hltL3Muons'
00125 tpToL3MuonAssociation.DTrechitTag = 'hltDt1DRecHits'
00126 tpToL3MuonAssociation.SimToReco_useTracker = True
00127 tpToL3MuonAssociation.SimToReco_useMuon = True
00128 tpToL3MuonAssociation.EfficiencyCut_muon = 0.5
00129 tpToL3MuonAssociation.PurityCut_muon = 0.5
00130 tpToL3MuonAssociation.EfficiencyCut_track = 0.5
00131 tpToL3MuonAssociation.PurityCut_track = 0.75
00132 
00133 muonAssociation_seq = cms.Sequence((tpToTkMuonAssociation+tpToStaMuonAssociation+tpToGlbMuonAssociation)
00134                                   +(tpToTkmuTrackAssociation+tpToStaTrackAssociation+tpToGlbTrackAssociation))
00135 
00136 muonAssociationHLT_seq = cms.Sequence(
00137     (tpToL2MuonAssociation
00138      +tpToL3MuonAssociation
00139      +tpToL3TkMuonAssociation)
00140     +(tpToL2TrackAssociation
00141       +tpToL3TrackAssociation
00142       +tpToL3TkTrackTrackAssociation)
00143     )

Generated on Tue Jun 9 17:49:34 2009 for CMSSW by  doxygen 1.5.4