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