CMS 3D CMS Logo

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