CMS 3D CMS Logo

dtCalibOfflineSelection_cff.py
Go to the documentation of this file.
1 
2 
5 es_prefer_l1GtTriggerMaskAlgoTrig = cms.ESPrefer("L1GtTriggerMaskAlgoTrigTrivialProducer","l1GtTriggerMaskAlgoTrig")
6 es_prefer_l1GtTriggerMaskTechTrig = cms.ESPrefer("L1GtTriggerMaskTechTrigTrivialProducer","l1GtTriggerMaskTechTrig")
7 
8 import copy
10 hltL1SingleMuOpen = copy.deepcopy(hltHighLevel)
11 hltL1SingleMuOpen.HLTPaths = ['HLT_L1SingleMuOpen*']
12 #hltL1SingleMuOpen.HLTPaths = ['HLT_L1SingleMuOpen_AntiBPTX_v*']
13 hltDtCalibTest = copy.deepcopy(hltHighLevel)
14 hltDtCalibTest.HLTPaths = ['HLT_Mu50_v*', 'HLT_IsoMu*', 'HLT_Mu13_Mu8_v*', 'HLT_Mu17_Mu8_v*']
15 hltDTCalibration = copy.deepcopy(hltHighLevel)
16 hltDTCalibration.HLTPaths = ['HLT_DTCalibration_v*']
17 
18 ALCARECODtCalibHIHLTFilter = copy.deepcopy(hltHighLevel)
19 
20 ALCARECODtCalibHIHLTFilter.HLTPaths = ['HLT_HIL2SingleMu*']
21 
22 
24 l1tech = hltLevel1GTSeed.clone()
25 l1tech.L1TechTriggerSeeding = cms.bool(True)
26 
27 l1Algo = hltLevel1GTSeed.clone()
28 l1Algo.L1TechTriggerSeeding = cms.bool(False)
29 
30 bptx = l1tech.clone()
31 bptx.L1SeedsLogicalExpression = cms.string('0')
32 
33 bscAnd = l1tech.clone()
34 bscAnd.L1SeedsLogicalExpression = cms.string('40 OR 41')
35 
36 beamHaloVeto = l1tech.clone()
37 beamHaloVeto.L1SeedsLogicalExpression = cms.string('NOT (36 OR 37 OR 38 OR 39) AND NOT ((42 AND NOT 43) OR (43 AND NOT 42))')
38 
39 l1SingleMuOpen = l1Algo.clone()
40 l1SingleMuOpen.L1SeedsLogicalExpression = cms.string('L1_SingleMuOpen')
41 
42 #l1Coll = cms.Sequence(bptx + beamHaloVeto)
43 l1Coll = cms.Sequence(bptx)
44 l1CollBscAnd = cms.Sequence(bptx + bscAnd + beamHaloVeto)
45 
46 primaryVertexFilter = cms.EDFilter("VertexSelector",
47  src = cms.InputTag("offlinePrimaryVertices"),
48  cut = cms.string("!isFake && ndof > 4 && abs(z) <= 15 && position.Rho <= 2"),
49  filter = cms.bool(True), # otherwise it won't filter the events, just produce an empty vertex collection.
50 )
51 
52 primaryVertexFilterHI = cms.EDFilter("VertexSelector",
53  src = cms.InputTag("hiSelectedVertex"),
54  cut = cms.string("!isFake && ndof > 4 && abs(z) <= 15 && position.Rho <= 2"),
55  filter = cms.bool(True),
56 )
57 
58 scrapingEvtFilter = cms.EDFilter("FilterOutScraping",
59  applyfilter = cms.untracked.bool(True),
60  debugOn = cms.untracked.bool(False),
61  numtrack = cms.untracked.uint32(10),
62  thresh = cms.untracked.double(0.25)
63 )
64 
65 hltDTActivityFilter = cms.EDFilter( "HLTDTActivityFilter",
66  inputDCC = cms.InputTag( "dttfDigis" ),
67  inputDDU = cms.InputTag( "muonDTDigis" ),
68  inputDigis = cms.InputTag( "muonDTDigis" ),
69  processDCC = cms.bool( False ),
70  processDDU = cms.bool( False ),
71  processDigis = cms.bool( True ),
72  processingMode = cms.int32( 0 ), # 0=(DCC | DDU) | Digis/
73  # 1=(DCC & DDU) | Digis/
74  # 2=(DCC | DDU) & Digis/
75  # 3=(DCC & DDU) & Digis/
76  minChamberLayers = cms.int32( 6 ),
77  maxStation = cms.int32( 3 ),
78  minQual = cms.int32( 2 ), # 0-1=L 2-3=H 4=LL 5=HL 6=HH/
79  minDDUBX = cms.int32( 9 ),
80  maxDDUBX = cms.int32( 14 ),
81  minActiveChambs = cms.int32( 1 ),
82  activeSectors = cms.vint32(1,2,3,4,5,6,7,8,9,10,11,12)
83 )
84 
85 #from CalibMuon.DTCalibration.DTCalibMuonSelection_cfi import *
86 
87 goodMuonsPt15 = cms.EDFilter("CandViewSelector",
88  src = cms.InputTag("muons"),
89  cut = cms.string('(isGlobalMuon = 1 | isTrackerMuon = 1) & abs(eta) < 1.2 & pt > 15.0'),
90  filter = cms.bool(True)
91 )
92 muonSelectionPt15 = cms.Sequence(goodMuonsPt15)
93 
94 goodMuonsPt5 = cms.EDFilter("CandViewSelector",
95  src = cms.InputTag("muons"),
96  cut = cms.string('(isGlobalMuon = 1 | isTrackerMuon = 1) & abs(eta) < 1.2 & pt > 5.0'),
97  filter = cms.bool(True)
98 )
99 muonSelectionPt5 = cms.Sequence(goodMuonsPt5)
100 
101 goodCosmicTracksPt5 = cms.EDFilter("TrackSelector",
102  src = cms.InputTag("cosmicMuons"),
103  cut = cms.string('pt > 5.0'),
104  filter = cms.bool(True)
105 )
106 
107 offlineSelectionPt15 = cms.Sequence(scrapingEvtFilter + primaryVertexFilter + muonSelectionPt15)
108 offlineSelectionALCARECOPt15 = cms.Sequence(muonSelectionPt15)
109 offlineSelectionPt5 = cms.Sequence(scrapingEvtFilter + primaryVertexFilter + muonSelectionPt5)
110 offlineSelectionALCARECOPt5 = cms.Sequence(muonSelectionPt5)
111 offlineSelectionCosmicsPt5 = cms.Sequence(hltL1SingleMuOpen + goodCosmicTracksPt5)
112 offlineSelectionHIPt5 = cms.Sequence(ALCARECODtCalibHIHLTFilter + primaryVertexFilter + muonSelectionPt5)
113 
114 offlineSelectionHIALCARECOPt5 = cms.Sequence(primaryVertexFilterHI + muonSelectionPt5)
115 offlineSelectionHIRAWPt5 = cms.Sequence(ALCARECODtCalibHIHLTFilter)
116 
117 offlineSelection = cms.Sequence(scrapingEvtFilter + primaryVertexFilter + muonSelectionPt15)
118 offlineSelectionALCARECO = cms.Sequence(muonSelectionPt15)
119 offlineSelectionALCARECODtCalibTest = cms.Sequence(hltDtCalibTest + muonSelectionPt15)
120 offlineSelectionCosmics = cms.Sequence(hltL1SingleMuOpen)
121 offlineSelectionHI = cms.Sequence(offlineSelectionHIPt5)
122 offlineSelectionHIALCARECO = cms.Sequence(offlineSelectionHIALCARECOPt5)
123 offlineSelectionHIRAW = cms.Sequence(offlineSelectionHIRAWPt5)
124 offlineSelectionTestEnables = cms.Sequence(hltDTCalibration)
125 
126 dtCalibOfflineSelectionPt15 = cms.Sequence(offlineSelectionPt15)
127 dtCalibOfflineSelectionALCARECOPt15 = cms.Sequence(offlineSelectionALCARECOPt15)
128 dtCalibOfflineSelectionPt5 = cms.Sequence(offlineSelectionPt5)
129 dtCalibOfflineSelectionALCARECOPt5 = cms.Sequence(offlineSelectionALCARECOPt5)
130 dtCalibOfflineSelectionCosmicsPt5 = cms.Sequence(offlineSelectionCosmicsPt5)
131 dtCalibOfflineSelectionHIPt5 = cms.Sequence(offlineSelectionHIPt5)
132 dtCalibOfflineSelectionHIALCARECOPt5 = cms.Sequence(offlineSelectionHIALCARECOPt5)
133 dtCalibOfflineSelectionHIRAWPt5 = cms.Sequence(offlineSelectionHIRAWPt5)
134 
135 dtCalibOfflineSelection = cms.Sequence(offlineSelection)
136 dtCalibOfflineSelectionALCARECO = cms.Sequence(offlineSelectionALCARECO)
137 dtCalibOfflineSelectionALCARECODtCalibTest = cms.Sequence(offlineSelectionALCARECODtCalibTest)
138 dtCalibOfflineSelectionCosmics = cms.Sequence(offlineSelectionCosmics)
139 dtCalibOfflineSelectionHI = cms.Sequence(offlineSelectionHI)
140 dtCalibOfflineSelectionHIALCARECO = cms.Sequence(offlineSelectionHIALCARECO)
141 dtCalibOfflineSelectionHIRAW = cms.Sequence(offlineSelectionHIRAW)
142 dtCalibOfflineSelectionTestEnables = cms.Sequence(offlineSelectionTestEnables)