Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-05 05:20:12

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 ##################################################################
0004 # AlCaReco for track based monitoring using single muon events
0005 ##################################################################
0006 from HLTrigger.HLTfilters.hltHighLevel_cfi import *
0007 ALCARECOSiPixelCalSingleMuonTightHLTFilter = hltHighLevel.clone()
0008 ALCARECOSiPixelCalSingleMuonTightHLTFilter.andOr = True ## choose logical OR between Triggerbits
0009 ALCARECOSiPixelCalSingleMuonTightHLTFilter.throw = False ## dont throw on unknown path names
0010 ALCARECOSiPixelCalSingleMuonTightHLTFilter.eventSetupPathsKey = 'SiPixelCalSingleMuon' # share the same trigger bit with the loose one
0011 
0012 ##################################################################
0013 # Filter on the DCS partitions
0014 ##################################################################
0015 import DPGAnalysis.Skims.skim_detstatus_cfi
0016 ALCARECOSiPixelCalSingleMuonTightDCSFilter = DPGAnalysis.Skims.skim_detstatus_cfi.dcsstatus.clone(
0017     DetectorType = cms.vstring('TIBTID','TOB','TECp','TECm','BPIX','FPIX',
0018                                'DT0','DTp','DTm','CSCp','CSCm'),
0019     ApplyFilter  = cms.bool(True),
0020     AndOr        = cms.bool(True),
0021     DebugOn      = cms.untracked.bool(False)
0022 )
0023 
0024 ##################################################################
0025 # Isolated muons Track selector
0026 ##################################################################
0027 from Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi import *
0028 
0029 ##################################################################
0030 # Basic Track selection
0031 ##################################################################
0032 import Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi
0033 ALCARECOSiPixelCalSingleMuonTight = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.AlignmentTrackSelector.clone(
0034     filter = True, ##do not store empty events
0035     applyBasicCuts = True,
0036     ptMin = 2.0, ##GeV 
0037     etaMin = -3.5,
0038     etaMax = 3.5,
0039     nHitMin = 0
0040 )
0041 
0042 ##################################################################
0043 # Muon selection
0044 ##################################################################
0045 ALCARECOSiPixelCalSingleMuonTight.GlobalSelector.muonSource = 'TkAlRelCombIsoMuonSelector'
0046 # Isolation is shifted to the muon preselection, and then applied intrinsically if applyGlobalMuonFilter = True
0047 ALCARECOSiPixelCalSingleMuonTight.GlobalSelector.applyIsolationtest = False
0048 ALCARECOSiPixelCalSingleMuonTight.GlobalSelector.minJetDeltaR = 0.1
0049 ALCARECOSiPixelCalSingleMuonTight.GlobalSelector.applyGlobalMuonFilter = True
0050 ALCARECOSiPixelCalSingleMuonTight.TwoBodyDecaySelector.applyMassrangeFilter = False
0051 ALCARECOSiPixelCalSingleMuonTight.TwoBodyDecaySelector.applyChargeFilter = False
0052 ALCARECOSiPixelCalSingleMuonTight.TwoBodyDecaySelector.applyAcoplanarityFilter = False
0053 
0054 ##################################################################
0055 # Track refitter
0056 ##################################################################
0057 from RecoVertex.BeamSpotProducer.BeamSpot_cff import *
0058 #from RecoTracker.Configuration.RecoTrackerP5_cff import *
0059 from RecoTracker.TrackProducer.TrackRefitter_cfi import *
0060 
0061 ALCARECOSiPixelCalSingleMuonTightTracksRefit = TrackRefitter.clone(src = cms.InputTag("ALCARECOSiPixelCalSingleMuonTight"),
0062                                                                    NavigationSchool = cms.string("")
0063                                                                    )
0064 
0065 ##################################################################
0066 # Producer or close-by-pixels
0067 ##################################################################
0068 import Calibration.TkAlCaRecoProducers.NearbyPixelClustersProducer_cfi as NearbyPixelClusters
0069 closebyPixelClusters = NearbyPixelClusters.NearbyPixelClustersProducer.clone(clusterCollection = 'siPixelClusters',
0070                                                                              trajectoryInput = 'ALCARECOSiPixelCalSingleMuonTightTracksRefit')
0071 
0072 ##################################################################
0073 # Sequence: track refit + close-by-pixel producer
0074 ##################################################################
0075 ALCARECOSiPixelCalSingleMuonTightOffTrackClusters = cms.Sequence(ALCARECOSiPixelCalSingleMuonTightTracksRefit +
0076                                                                  closebyPixelClusters)
0077 
0078 ##################################################################
0079 # Producer of distances value map
0080 ##################################################################
0081 import Calibration.TkAlCaRecoProducers.TrackDistanceValueMapProducer_cfi as TrackDistanceValueMap 
0082 trackDistances = TrackDistanceValueMap.TrackDistanceValueMapProducer.clone(muonTracks = 'ALCARECOSiPixelCalSingleMuonTight')
0083 
0084 ##################################################################
0085 # Final Tight sequence
0086 ##################################################################
0087 seqALCARECOSiPixelCalSingleMuonTight = cms.Sequence(offlineBeamSpot+
0088                                                     ALCARECOSiPixelCalSingleMuonTightHLTFilter+
0089                                                     ALCARECOSiPixelCalSingleMuonTightDCSFilter+
0090                                                     seqALCARECOTkAlRelCombIsoMuons+
0091                                                     ALCARECOSiPixelCalSingleMuonTight+
0092                                                     trackDistances +
0093                                                     ALCARECOSiPixelCalSingleMuonTightOffTrackClusters)
0094 ## customizations for the pp_on_AA eras
0095 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0096 pp_on_AA.toModify(ALCARECOSiPixelCalSingleMuonTightHLTFilter,
0097                   eventSetupPathsKey='SiPixelCalSingleMuonHI'
0098 )