CMS 3D CMS Logo

ALCARECOTkAlJpsiMuMu_cff.py
Go to the documentation of this file.
1 # AlCaReco for track based alignment using J/Psi->MuMu events
2 import FWCore.ParameterSet.Config as cms
3 
5 ALCARECOTkAlJpsiMuMuHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
6  andOr = True,
7  eventSetupPathsKey = 'TkAlJpsiMuMu',
8  throw = False # tolerate triggers stated above, but not available
9  )
10 
11 # DCS partitions
12 # "EBp","EBm","EEp","EEm","HBHEa","HBHEb","HBHEc","HF","HO","RPC"
13 # "DT0","DTp","DTm","CSCp","CSCm","CASTOR","TIBTID","TOB","TECp","TECm"
14 # "BPIX","FPIX","ESp","ESm"
15 import DPGAnalysis.Skims.skim_detstatus_cfi
16 ALCARECOTkAlJpsiMuMuDCSFilter = DPGAnalysis.Skims.skim_detstatus_cfi.dcsstatus.clone(
17  DetectorType = cms.vstring('TIBTID','TOB','TECp','TECm','BPIX','FPIX',
18  'DT0','DTp','DTm','CSCp','CSCm'),
19  ApplyFilter = cms.bool(True),
20  AndOr = cms.bool(True),
21  DebugOn = cms.untracked.bool(False)
22 )
23 
24 import Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi
25 ALCARECOTkAlJpsiMuMuGoodMuons = Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi.TkAlGoodIdMuonSelector.clone()
26 
28 ALCARECOTkAlJpsiMuMu = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.AlignmentTrackSelector.clone()
29 ALCARECOTkAlJpsiMuMu.filter = True
30 
31 ALCARECOTkAlJpsiMuMu.applyBasicCuts = True
32 ALCARECOTkAlJpsiMuMu.ptMin = 0.8
33 ALCARECOTkAlJpsiMuMu.etaMin = -3.5
34 ALCARECOTkAlJpsiMuMu.etaMax = 3.5
35 ALCARECOTkAlJpsiMuMu.nHitMin = 0
36 
37 ALCARECOTkAlJpsiMuMu.GlobalSelector.muonSource = 'ALCARECOTkAlJpsiMuMuGoodMuons'
38 # To not loose non-prompt J/Psi, do not apply any isolation
39 ALCARECOTkAlJpsiMuMu.GlobalSelector.applyIsolationtest = False
40 ALCARECOTkAlJpsiMuMu.GlobalSelector.applyGlobalMuonFilter = True
41 
42 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.applyMassrangeFilter = True
43 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.minXMass = 2.7
44 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.maxXMass = 3.4
45 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.daughterMass = 0.105
46 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.applyChargeFilter = False
47 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.charge = 0
48 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.applyAcoplanarityFilter = False
49 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.acoplanarDistance = 1
50 ALCARECOTkAlJpsiMuMu.TwoBodyDecaySelector.numberOfCandidates = 1
51 
52 
53 TkAlJpsiMuMuGenMuonSelector = cms.EDFilter("GenParticleSelector",
54  src = cms.InputTag("genParticles"),
55  cut = cms.string("abs(pdgId) == 13"), # Select only muons
56  filter = cms.bool(False),
57  throwOnMissing = cms.untracked.bool(False))
58 
59 seqALCARECOTkAlJpsiMuMu = cms.Sequence(ALCARECOTkAlJpsiMuMuHLT+ALCARECOTkAlJpsiMuMuDCSFilter+ALCARECOTkAlJpsiMuMuGoodMuons+ALCARECOTkAlJpsiMuMu+TkAlJpsiMuMuGenMuonSelector)
60 
61 
62 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
63 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
64 (pp_on_XeXe_2017 | pp_on_AA).toModify(ALCARECOTkAlJpsiMuMuHLT,
65  eventSetupPathsKey='TkAlJpsiMuMuHI'
66 )
67 
68 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
69 phase2_tracker.toModify(ALCARECOTkAlJpsiMuMu, etaMin = -4, etaMax = 4)
dont throw on unknown path names