Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:27

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 import Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi
0028 ALCARECOSiPixelCalSingleMuonTightGoodMuons = Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi.TkAlGoodIdMuonSelector.clone()
0029 ALCARECOSiPixelCalSingleMuonTightRelCombIsoMuons = Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi.TkAlRelCombIsoMuonSelector.clone(
0030     src = 'ALCARECOSiPixelCalSingleMuonTightGoodMuons'
0031 )
0032 
0033 ##################################################################
0034 # Basic Track selection
0035 ##################################################################
0036 import Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi
0037 ALCARECOSiPixelCalSingleMuonTight = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.AlignmentTrackSelector.clone(
0038     filter = True, ##do not store empty events
0039     applyBasicCuts = True,
0040     ptMin = 2.0, ##GeV 
0041     etaMin = -3.5,
0042     etaMax = 3.5,
0043     nHitMin = 0
0044 )
0045 
0046 ##################################################################
0047 # Muon selection
0048 ##################################################################
0049 ALCARECOSiPixelCalSingleMuonTight.GlobalSelector.muonSource = 'ALCARECOSiPixelCalSingleMuonTightRelCombIsoMuons'
0050 # Isolation is shifted to the muon preselection, and then applied intrinsically if applyGlobalMuonFilter = True
0051 ALCARECOSiPixelCalSingleMuonTight.GlobalSelector.applyIsolationtest = False
0052 ALCARECOSiPixelCalSingleMuonTight.GlobalSelector.minJetDeltaR = 0.1
0053 ALCARECOSiPixelCalSingleMuonTight.GlobalSelector.applyGlobalMuonFilter = True
0054 ALCARECOSiPixelCalSingleMuonTight.TwoBodyDecaySelector.applyMassrangeFilter = False
0055 ALCARECOSiPixelCalSingleMuonTight.TwoBodyDecaySelector.applyChargeFilter = False
0056 ALCARECOSiPixelCalSingleMuonTight.TwoBodyDecaySelector.applyAcoplanarityFilter = False
0057 
0058 ##################################################################
0059 # Track refitter
0060 ##################################################################
0061 from RecoVertex.BeamSpotProducer.BeamSpot_cff import *
0062 #from RecoTracker.Configuration.RecoTrackerP5_cff import *
0063 from RecoTracker.TrackProducer.TrackRefitter_cfi import *
0064 
0065 ALCARECOSiPixelCalSingleMuonTightTracksRefit = TrackRefitter.clone(src = cms.InputTag("ALCARECOSiPixelCalSingleMuonTight"),
0066                                                                    NavigationSchool = cms.string("")
0067                                                                    )
0068 
0069 ##################################################################
0070 # Producer or close-by-pixels
0071 ##################################################################
0072 import Calibration.TkAlCaRecoProducers.NearbyPixelClustersProducer_cfi as NearbyPixelClusters
0073 closebyPixelClusters = NearbyPixelClusters.NearbyPixelClustersProducer.clone(clusterCollection = 'siPixelClusters',
0074                                                                              trajectoryInput = 'ALCARECOSiPixelCalSingleMuonTightTracksRefit')
0075 
0076 ##################################################################
0077 # Sequence: track refit + close-by-pixel producer
0078 ##################################################################
0079 ALCARECOSiPixelCalSingleMuonTightOffTrackClusters = cms.Sequence(ALCARECOSiPixelCalSingleMuonTightTracksRefit +
0080                                                                  closebyPixelClusters)
0081 
0082 ##################################################################
0083 # Producer of distances value map
0084 ##################################################################
0085 import Calibration.TkAlCaRecoProducers.TrackDistanceValueMapProducer_cfi as TrackDistanceValueMap 
0086 trackDistances = TrackDistanceValueMap.TrackDistanceValueMapProducer.clone(muonTracks = 'ALCARECOSiPixelCalSingleMuonTight')
0087 
0088 ##################################################################
0089 # Final Tight sequence
0090 ##################################################################
0091 seqALCARECOSiPixelCalSingleMuonTight = cms.Sequence(offlineBeamSpot+
0092                                                     ALCARECOSiPixelCalSingleMuonTightHLTFilter+
0093                                                     ALCARECOSiPixelCalSingleMuonTightDCSFilter+
0094                                                     ALCARECOSiPixelCalSingleMuonTightGoodMuons+
0095                                                     ALCARECOSiPixelCalSingleMuonTightRelCombIsoMuons+
0096                                                     ALCARECOSiPixelCalSingleMuonTight+
0097                                                     trackDistances +
0098                                                     ALCARECOSiPixelCalSingleMuonTightOffTrackClusters)
0099 ## customizations for the pp_on_AA eras
0100 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0101 pp_on_AA.toModify(ALCARECOSiPixelCalSingleMuonTightHLTFilter,
0102                   eventSetupPathsKey='SiPixelCalSingleMuonHI'
0103 )