Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-07-10 02:34:08

0001 # AlCaReco for track based alignment using Upsilon->MuMu events
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 import HLTrigger.HLTfilters.hltHighLevel_cfi
0005 ALCARECOTkAlUpsilonMuMuHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
0006     andOr = True, ## choose logical OR between Triggerbits
0007     eventSetupPathsKey = 'TkAlUpsilonMuMu',
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 ALCARECOTkAlUpsilonMuMuDCSFilter = 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 import Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi
0025 ALCARECOTkAlUpsilonMuMuGoodMuons = Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi.TkAlGoodIdMuonSelector.clone()
0026 ALCARECOTkAlUpsilonMuMuRelCombIsoMuons = Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi.TkAlRelCombIsoMuonSelector.clone(
0027     src = 'ALCARECOTkAlUpsilonMuMuGoodMuons',
0028     cut = '(isolationR03().sumPt + isolationR03().emEt + isolationR03().hadEt)/pt  < 0.3'
0029 
0030 )
0031 
0032 import Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi
0033 ALCARECOTkAlUpsilonMuMu = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.AlignmentTrackSelector.clone()
0034 ALCARECOTkAlUpsilonMuMu.filter = True ##do not store empty events
0035 
0036 ALCARECOTkAlUpsilonMuMu.applyBasicCuts = True
0037 ALCARECOTkAlUpsilonMuMu.ptMin = 3. ##GeV
0038 ALCARECOTkAlUpsilonMuMu.etaMin = -3.5
0039 ALCARECOTkAlUpsilonMuMu.etaMax = 3.5
0040 ALCARECOTkAlUpsilonMuMu.nHitMin = 0
0041 
0042 ALCARECOTkAlUpsilonMuMu.GlobalSelector.muonSource = 'ALCARECOTkAlUpsilonMuMuRelCombIsoMuons'
0043 # Isolation is shifted to the muon preselection, and then applied intrinsically if applyGlobalMuonFilter = True
0044 ALCARECOTkAlUpsilonMuMu.GlobalSelector.applyIsolationtest = False
0045 ALCARECOTkAlUpsilonMuMu.GlobalSelector.applyGlobalMuonFilter = True
0046 
0047 ALCARECOTkAlUpsilonMuMu.TwoBodyDecaySelector.applyMassrangeFilter = True
0048 ALCARECOTkAlUpsilonMuMu.TwoBodyDecaySelector.minXMass = 8.9 ##GeV
0049 ALCARECOTkAlUpsilonMuMu.TwoBodyDecaySelector.maxXMass = 9.9 ##GeV
0050 ALCARECOTkAlUpsilonMuMu.TwoBodyDecaySelector.daughterMass = 0.105 ##GeV (Muons)
0051 ALCARECOTkAlUpsilonMuMu.TwoBodyDecaySelector.applyChargeFilter = True
0052 ALCARECOTkAlUpsilonMuMu.TwoBodyDecaySelector.charge = 0
0053 ALCARECOTkAlUpsilonMuMu.TwoBodyDecaySelector.applyAcoplanarityFilter = False
0054 ALCARECOTkAlUpsilonMuMu.TwoBodyDecaySelector.acoplanarDistance = 1 ##radian
0055 ALCARECOTkAlUpsilonMuMu.TwoBodyDecaySelector.numberOfCandidates = 1  
0056 
0057 ## for the GEN level information
0058 TkAlUpsilonMuMuGenMuonSelector = cms.EDFilter("GenParticleSelector",
0059                                               src = cms.InputTag("genParticles"),
0060                                               cut = cms.string("abs(pdgId) == 13"), # Select only muons
0061                                               filter = cms.bool(False),
0062                                               throwOnMissing = cms.untracked.bool(False))
0063 
0064 seqALCARECOTkAlUpsilonMuMu = cms.Sequence(ALCARECOTkAlUpsilonMuMuHLT+ALCARECOTkAlUpsilonMuMuDCSFilter+ALCARECOTkAlUpsilonMuMuGoodMuons+ALCARECOTkAlUpsilonMuMuRelCombIsoMuons+ALCARECOTkAlUpsilonMuMu+TkAlUpsilonMuMuGenMuonSelector)
0065 
0066 ## customizations for the pp_on_AA eras
0067 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
0068 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0069 (pp_on_XeXe_2017 | pp_on_AA).toModify(ALCARECOTkAlUpsilonMuMuHLT,
0070                                       eventSetupPathsKey='TkAlUpsilonMuMuHI'
0071 )
0072 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0073 phase2_tracker.toModify(ALCARECOTkAlUpsilonMuMu, etaMin = -4, etaMax = 4)