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 seqALCARECOTkAlJpsiMuMu = cms.Sequence(ALCARECOTkAlJpsiMuMuHLT+ALCARECOTkAlJpsiMuMuDCSFilter+ALCARECOTkAlJpsiMuMuGoodMuons+ALCARECOTkAlJpsiMuMu)
53 
54 
55 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
56 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
57 (pp_on_XeXe_2017 | pp_on_AA).toModify(ALCARECOTkAlJpsiMuMuHLT,
58  eventSetupPathsKey='TkAlJpsiMuMuHI'
59 )
60 
61 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
62 phase2_tracker.toModify(ALCARECOTkAlJpsiMuMu, etaMin = -4, etaMax = 4)
dont throw on unknown path names