CMS 3D CMS Logo

ALCARECOTkAlZMuMu_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 # AlCaReco for track based alignment using ZMuMu events
5 ALCARECOTkAlZMuMuHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
6  andOr = True,
7  eventSetupPathsKey = 'TkAlZMuMu',
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 ALCARECOTkAlZMuMuDCSFilter = 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 ALCARECOTkAlZMuMuGoodMuons = Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi.TkAlGoodIdMuonSelector.clone()
26 ALCARECOTkAlZMuMuRelCombIsoMuons = Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi.TkAlRelCombIsoMuonSelector.clone(
27  src = 'ALCARECOTkAlZMuMuGoodMuons'
28 )
29 
31 ALCARECOTkAlZMuMu = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.AlignmentTrackSelector.clone()
32 ALCARECOTkAlZMuMu.filter = True
33 
34 ALCARECOTkAlZMuMu.applyBasicCuts = True
35 ALCARECOTkAlZMuMu.ptMin = 15.0
36 ALCARECOTkAlZMuMu.etaMin = -3.5
37 ALCARECOTkAlZMuMu.etaMax = 3.5
38 ALCARECOTkAlZMuMu.nHitMin = 0
39 
40 ALCARECOTkAlZMuMu.GlobalSelector.muonSource = 'ALCARECOTkAlZMuMuRelCombIsoMuons'
41 # Isolation is shifted to the muon preselection, and then applied intrinsically if applyGlobalMuonFilter = True
42 ALCARECOTkAlZMuMu.GlobalSelector.applyIsolationtest = False
43 ALCARECOTkAlZMuMu.GlobalSelector.applyGlobalMuonFilter = True
44 
45 ALCARECOTkAlZMuMu.TwoBodyDecaySelector.applyMassrangeFilter = True
46 ALCARECOTkAlZMuMu.TwoBodyDecaySelector.minXMass = 65.0
47 ALCARECOTkAlZMuMu.TwoBodyDecaySelector.maxXMass = 115.0
48 ALCARECOTkAlZMuMu.TwoBodyDecaySelector.daughterMass = 0.105
49 ALCARECOTkAlZMuMu.TwoBodyDecaySelector.applyChargeFilter = True
50 ALCARECOTkAlZMuMu.TwoBodyDecaySelector.charge = 0
51 ALCARECOTkAlZMuMu.TwoBodyDecaySelector.applyAcoplanarityFilter = False
52 ALCARECOTkAlZMuMu.TwoBodyDecaySelector.numberOfCandidates = 1
53 
54 
55 TkAlZMuMuGenMuonSelector = cms.EDFilter("GenParticleSelector",
56  src = cms.InputTag("genParticles"),
57  cut = cms.string("abs(pdgId) == 13"), # Select only muons
58  filter = cms.bool(False),
59  throwOnMissing = cms.untracked.bool(False))
60 
61 seqALCARECOTkAlZMuMu = cms.Sequence(ALCARECOTkAlZMuMuHLT+ALCARECOTkAlZMuMuDCSFilter+ALCARECOTkAlZMuMuGoodMuons+ALCARECOTkAlZMuMuRelCombIsoMuons+ALCARECOTkAlZMuMu+TkAlZMuMuGenMuonSelector)
62 
63 
64 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
65 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
66 (pp_on_XeXe_2017 | pp_on_AA).toModify(ALCARECOTkAlZMuMuHLT,
67  eventSetupPathsKey='TkAlZMuMuHI'
68 )
69 
70 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
71 phase2_tracker.toModify(ALCARECOTkAlZMuMu, etaMin = -4, etaMax = 4)
dont throw on unknown path names