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 J/Psi->MuMu events
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 import HLTrigger.HLTfilters.hltHighLevel_cfi
0005 ALCARECOTkAlJpsiMuMuHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
0006     andOr = True, ## choose logical OR between Triggerbits
0007     eventSetupPathsKey = 'TkAlJpsiMuMu',
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 ALCARECOTkAlJpsiMuMuDCSFilter = 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 ALCARECOTkAlJpsiMuMuGoodMuons = Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi.TkAlGoodIdMuonSelector.clone()
0026 
0027 import Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi
0028 ALCARECOTkAlJpsiMuMu = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.AlignmentTrackSelector.clone()
0029 ALCARECOTkAlJpsiMuMu.filter = True ##do not store empty events
0030 
0031 ALCARECOTkAlJpsiMuMu.applyBasicCuts = True
0032 ALCARECOTkAlJpsiMuMu.ptMin = 0.8 ##GeV
0033 ALCARECOTkAlJpsiMuMu.etaMin = -3.5
0034 ALCARECOTkAlJpsiMuMu.etaMax = 3.5
0035 ALCARECOTkAlJpsiMuMu.nHitMin = 0
0036 
0037 ALCARECOTkAlJpsiMuMu.GlobalSelector.muonSource = 'ALCARECOTkAlJpsiMuMuGoodMuons'
0038 # To not loose non-prompt J/Psi, do not apply any isolation
0039 ALCARECOTkAlJpsiMuMu.GlobalSelector.applyIsolationtest = False
0040 ALCARECOTkAlJpsiMuMu.GlobalSelector.applyGlobalMuonFilter = True
0041 
0042 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.applyMassrangeFilter = True
0043 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.minXMass = 2.7 ##GeV
0044 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.maxXMass = 3.4 ##GeV
0045 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.daughterMass = 0.105 ##GeV (Muons)
0046 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.applyChargeFilter = False
0047 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.charge = 0
0048 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.applyAcoplanarityFilter = False
0049 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.acoplanarDistance = 1 ##radian
0050 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.numberOfCandidates = 1     
0051 
0052 ## for the GEN level information
0053 TkAlJpsiMuMuGenMuonSelector = cms.EDFilter("GenParticleSelector",
0054                                            src = cms.InputTag("genParticles"),
0055                                            cut = cms.string("abs(pdgId) == 13"), # Select only muons
0056                                            filter = cms.bool(False),
0057                                            throwOnMissing = cms.untracked.bool(False))
0058 
0059 seqALCARECOTkAlJpsiMuMu = cms.Sequence(ALCARECOTkAlJpsiMuMuHLT+ALCARECOTkAlJpsiMuMuDCSFilter+ALCARECOTkAlJpsiMuMuGoodMuons+ALCARECOTkAlJpsiMuMu+TkAlJpsiMuMuGenMuonSelector)
0060 
0061 ## customizations for the pp_on_AA eras
0062 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
0063 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0064 (pp_on_XeXe_2017 | pp_on_AA).toModify(ALCARECOTkAlJpsiMuMuHLT,
0065                                       eventSetupPathsKey='TkAlJpsiMuMuHI'
0066 )
0067 
0068 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0069 phase2_tracker.toModify(ALCARECOTkAlJpsiMuMu, etaMin = -4, etaMax = 4)