CMS 3D CMS Logo

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