CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ALCARECOSiPixelCalSingleMuonTight_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 ##################################################################
4 # AlCaReco for track based monitoring using single muon events
5 ##################################################################
7 ALCARECOSiPixelCalSingleMuonTightHLTFilter = hltHighLevel.clone()
8 ALCARECOSiPixelCalSingleMuonTightHLTFilter.andOr = True ## choose logical OR between Triggerbits
9 ALCARECOSiPixelCalSingleMuonTightHLTFilter.throw = False ## dont throw on unknown path names
10 ALCARECOSiPixelCalSingleMuonTightHLTFilter.HLTPaths = ["HLT_*"]
11 #ALCARECOSiPixelCalSingleMuonTightHLTFilter.eventSetupPathsKey = 'SiPixelCalSingleMuonTight' ## FIXME: to be changed once trigger bit is updated
12 
13 ##################################################################
14 # Filter on the DCS partitions
15 ##################################################################
16 import DPGAnalysis.Skims.skim_detstatus_cfi
17 ALCARECOSiPixelCalSingleMuonTightDCSFilter = DPGAnalysis.Skims.skim_detstatus_cfi.dcsstatus.clone(
18  DetectorType = cms.vstring('TIBTID','TOB','TECp','TECm','BPIX','FPIX',
19  'DT0','DTp','DTm','CSCp','CSCm'),
20  ApplyFilter = cms.bool(True),
21  AndOr = cms.bool(True),
22  DebugOn = cms.untracked.bool(False)
23 )
24 
25 ##################################################################
26 # Isolated muons Track selector
27 ##################################################################
28 import Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi
29 ALCARECOSiPixelCalSingleMuonTightGoodMuons = Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi.TkAlGoodIdMuonSelector.clone()
30 ALCARECOSiPixelCalSingleMuonTightRelCombIsoMuons = Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi.TkAlRelCombIsoMuonSelector.clone(
31  src = 'ALCARECOSiPixelCalSingleMuonTightGoodMuons'
32 )
33 
34 ##################################################################
35 # Basic Track selection
36 ##################################################################
38 ALCARECOSiPixelCalSingleMuonTight = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.AlignmentTrackSelector.clone(
39  filter = True, ##do not store empty events
40  applyBasicCuts = True,
41  ptMin = 2.0, ##GeV
42  etaMin = -3.5,
43  etaMax = 3.5,
44  nHitMin = 0
45 )
46 
47 ##################################################################
48 # Muon selection
49 ##################################################################
50 ALCARECOSiPixelCalSingleMuonTight.GlobalSelector.muonSource = 'ALCARECOSiPixelCalSingleMuonTightRelCombIsoMuons'
51 # Isolation is shifted to the muon preselection, and then applied intrinsically if applyGlobalMuonFilter = True
52 ALCARECOSiPixelCalSingleMuonTight.GlobalSelector.applyIsolationtest = False
53 ALCARECOSiPixelCalSingleMuonTight.GlobalSelector.minJetDeltaR = 0.1
54 ALCARECOSiPixelCalSingleMuonTight.GlobalSelector.applyGlobalMuonFilter = True
55 ALCARECOSiPixelCalSingleMuonTight.TwoBodyDecaySelector.applyMassrangeFilter = False
56 ALCARECOSiPixelCalSingleMuonTight.TwoBodyDecaySelector.applyChargeFilter = False
57 ALCARECOSiPixelCalSingleMuonTight.TwoBodyDecaySelector.applyAcoplanarityFilter = False
58 
59 ##################################################################
60 # Track refitter
61 ##################################################################
63 #from RecoTracker.Configuration.RecoTrackerP5_cff import *
65 
66 ALCARECOSiPixelCalSingleMuonTightTracksRefit = TrackRefitter.clone(src = cms.InputTag("ALCARECOSiPixelCalSingleMuonTight"),
67  NavigationSchool = cms.string("")
68  )
69 
70 ##################################################################
71 # Producer or close-by-pixels
72 ##################################################################
73 import Calibration.TkAlCaRecoProducers.NearbyPixelClustersProducer_cfi as NearbyPixelClusters
74 closebyPixelClusters = NearbyPixelClusters.NearbyPixelClustersProducer.clone(clusterCollection = 'siPixelClusters',
75  trajectoryInput = 'ALCARECOSiPixelCalSingleMuonTightTracksRefit')
76 
77 ##################################################################
78 # Sequence: track refit + close-by-pixel producer
79 ##################################################################
80 ALCARECOSiPixelCalSingleMuonTightOffTrackClusters = cms.Sequence(ALCARECOSiPixelCalSingleMuonTightTracksRefit +
81  closebyPixelClusters)
82 
83 ##################################################################
84 # Producer of distances value map
85 ##################################################################
86 import Calibration.TkAlCaRecoProducers.TrackDistanceValueMapProducer_cfi as TrackDistanceValueMap
87 trackDistances = TrackDistanceValueMap.TrackDistanceValueMapProducer.clone(muonTracks = 'ALCARECOSiPixelCalSingleMuonTight')
88 
89 ##################################################################
90 # Final Tight sequence
91 ##################################################################
92 seqALCARECOSiPixelCalSingleMuonTight = cms.Sequence(offlineBeamSpot+
93  ALCARECOSiPixelCalSingleMuonTightHLTFilter+
94  ALCARECOSiPixelCalSingleMuonTightDCSFilter+
95  ALCARECOSiPixelCalSingleMuonTightGoodMuons+
96  ALCARECOSiPixelCalSingleMuonTightRelCombIsoMuons+
97  ALCARECOSiPixelCalSingleMuonTight+
98  trackDistances +
99  ALCARECOSiPixelCalSingleMuonTightOffTrackClusters)
dont throw on unknown path names