Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import HLTrigger.HLTfilters.hltHighLevel_cfi
0004 # AlCaReco for track based alignment using ZMuMu events
0005 ALCARECOTkAlZMuMuHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
0006     andOr = True, ## choose logical OR between Triggerbits
0007     eventSetupPathsKey = 'TkAlZMuMu',
0008     throw = False # tolerate triggers stated above, but not available
0009     )
0010 
0011 # DCS partitions
0012 # "EBp","EBm","EEp","EEm","HBHEa","HBHEb","HBHEc","HF","HO","RPC"
0013 # "DT0","DTp","DTm","CSCp","CSCm","CASTOR","TIBTID","TOB","TECp","TECm"
0014 # "BPIX","FPIX","ESp","ESm"
0015 import DPGAnalysis.Skims.skim_detstatus_cfi
0016 ALCARECOTkAlZMuMuDCSFilter = 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 ## standard muon selection
0025 from Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi import *
0026 
0027 import Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi
0028 ALCARECOTkAlZMuMu = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.AlignmentTrackSelector.clone()
0029 ALCARECOTkAlZMuMu.filter = True ##do not store empty events
0030 
0031 ALCARECOTkAlZMuMu.applyBasicCuts = True
0032 ALCARECOTkAlZMuMu.ptMin = 15.0 ##GeV
0033 ALCARECOTkAlZMuMu.etaMin = -3.5
0034 ALCARECOTkAlZMuMu.etaMax = 3.5
0035 ALCARECOTkAlZMuMu.nHitMin = 0
0036 
0037 ALCARECOTkAlZMuMu.GlobalSelector.muonSource = 'TkAlRelCombIsoMuonSelector'
0038 # Isolation is shifted to the muon preselection, and then applied intrinsically if applyGlobalMuonFilter = True
0039 ALCARECOTkAlZMuMu.GlobalSelector.applyIsolationtest = False
0040 ALCARECOTkAlZMuMu.GlobalSelector.applyGlobalMuonFilter = True
0041 
0042 ALCARECOTkAlZMuMu.TwoBodyDecaySelector.applyMassrangeFilter = True
0043 ALCARECOTkAlZMuMu.TwoBodyDecaySelector.minXMass = 65.0 ##GeV
0044 ALCARECOTkAlZMuMu.TwoBodyDecaySelector.maxXMass = 115.0 ##GeV
0045 ALCARECOTkAlZMuMu.TwoBodyDecaySelector.daughterMass = 0.105 ##GeV (Muons)
0046 ALCARECOTkAlZMuMu.TwoBodyDecaySelector.applyChargeFilter = True
0047 ALCARECOTkAlZMuMu.TwoBodyDecaySelector.charge = 0
0048 ALCARECOTkAlZMuMu.TwoBodyDecaySelector.applyAcoplanarityFilter = False
0049 ALCARECOTkAlZMuMu.TwoBodyDecaySelector.numberOfCandidates = 1
0050 
0051 ## for the GEN level information
0052 TkAlZMuMuGenMuonSelector = cms.EDFilter("GenParticleSelector",
0053                                         src = cms.InputTag("genParticles"),
0054                                         cut = cms.string("abs(pdgId) == 13"), # Select only muons
0055                                         filter = cms.bool(False),
0056                                         throwOnMissing = cms.untracked.bool(False))
0057 
0058 seqALCARECOTkAlZMuMu = cms.Sequence(ALCARECOTkAlZMuMuHLT+
0059                                     ALCARECOTkAlZMuMuDCSFilter+
0060                                     seqALCARECOTkAlRelCombIsoMuons+
0061                                     ALCARECOTkAlZMuMu+
0062                                     TkAlZMuMuGenMuonSelector)
0063 
0064 ## customizations for the pp_on_AA eras
0065 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
0066 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0067 (pp_on_XeXe_2017 | pp_on_AA).toModify(ALCARECOTkAlZMuMuHLT,
0068                                       eventSetupPathsKey='TkAlZMuMuHI'
0069 )
0070 
0071 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0072 phase2_tracker.toModify(ALCARECOTkAlZMuMu, etaMin = -4, etaMax = 4)