CMS 3D CMS Logo

ALCARECOTkAlMuonIsolated_cff.py
Go to the documentation of this file.
1 # AlCaReco for track based alignment using isolated muon tracks
2 import FWCore.ParameterSet.Config as cms
3 
5 ALCARECOTkAlMuonIsolatedHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
6  andOr = True,
7  eventSetupPathsKey = 'TkAlMuonIsolated',
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 ALCARECOTkAlMuonIsolatedDCSFilter = 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 ALCARECOTkAlMuonIsolatedGoodMuons = Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi.TkAlGoodIdMuonSelector.clone()
26 ALCARECOTkAlMuonIsolatedRelCombIsoMuons = Alignment.CommonAlignmentProducer.TkAlMuonSelectors_cfi.TkAlRelCombIsoMuonSelector.clone(
27  src = 'ALCARECOTkAlMuonIsolatedGoodMuons'
28 )
29 
31 ALCARECOTkAlMuonIsolated = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.AlignmentTrackSelector.clone(
32  filter = True,
33  applyBasicCuts = True,
34  ptMin = 2.0,
35  etaMin = -3.5,
36  etaMax = 3.5,
37  nHitMin = 0
38 )
39 
40 ALCARECOTkAlMuonIsolated.GlobalSelector.muonSource = 'ALCARECOTkAlMuonIsolatedRelCombIsoMuons'
41 # Isolation is shifted to the muon preselection, and then applied intrinsically if applyGlobalMuonFilter = True
42 ALCARECOTkAlMuonIsolated.GlobalSelector.applyIsolationtest = False
43 ALCARECOTkAlMuonIsolated.GlobalSelector.minJetDeltaR = 0.1
44 ALCARECOTkAlMuonIsolated.GlobalSelector.applyGlobalMuonFilter = True
45 
46 ALCARECOTkAlMuonIsolated.TwoBodyDecaySelector.applyMassrangeFilter = False
47 ALCARECOTkAlMuonIsolated.TwoBodyDecaySelector.applyChargeFilter = False
48 ALCARECOTkAlMuonIsolated.TwoBodyDecaySelector.applyAcoplanarityFilter = False
49 
50 seqALCARECOTkAlMuonIsolated = cms.Sequence(ALCARECOTkAlMuonIsolatedHLT+ALCARECOTkAlMuonIsolatedDCSFilter+ALCARECOTkAlMuonIsolatedGoodMuons+ALCARECOTkAlMuonIsolatedRelCombIsoMuons+ALCARECOTkAlMuonIsolated)
51 
52 
53 
54 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
55 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
56 (pp_on_XeXe_2017 | pp_on_AA_2018).toModify(ALCARECOTkAlMuonIsolatedHLT,
57  eventSetupPathsKey='TkAlMuonIsolatedHI'
58  )
59 
60 (pp_on_XeXe_2017 | pp_on_AA_2018).toModify(ALCARECOTkAlMuonIsolated.GlobalSelector,
61  minJetDeltaR=0.0
62  )
AlignmentTrackSelector_cfi
dont throw on unknown path names
hltHighLevel_cfi