Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:44

0001 
0002 
0003 from L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff import *
0004 from L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff import *
0005 es_prefer_l1GtTriggerMaskAlgoTrig = cms.ESPrefer("L1GtTriggerMaskAlgoTrigTrivialProducer","l1GtTriggerMaskAlgoTrig")
0006 es_prefer_l1GtTriggerMaskTechTrig = cms.ESPrefer("L1GtTriggerMaskTechTrigTrivialProducer","l1GtTriggerMaskTechTrig")
0007 
0008 import copy
0009 from HLTrigger.HLTfilters.hltHighLevel_cfi import *
0010 hltL1SingleMuOpen = copy.deepcopy(hltHighLevel)
0011 hltL1SingleMuOpen.HLTPaths = ['HLT_L1SingleMuOpen*']
0012 #hltL1SingleMuOpen.HLTPaths = ['HLT_L1SingleMuOpen_AntiBPTX_v*']
0013 hltDtCalibTest = copy.deepcopy(hltHighLevel)
0014 hltDtCalibTest.HLTPaths = ['HLT_Mu50_v*', 'HLT_IsoMu*', 'HLT_Mu13_Mu8_v*', 'HLT_Mu17_Mu8_v*']
0015 hltDTCalibration = copy.deepcopy(hltHighLevel)
0016 hltDTCalibration.HLTPaths = ['HLT_DTCalibration_v*']
0017 
0018 ALCARECODtCalibHIHLTFilter = copy.deepcopy(hltHighLevel)
0019 ALCARECODtCalibHIHLTFilter.throw = False
0020 ALCARECODtCalibHIHLTFilter.eventSetupPathsKey = 'MuAlcaDtCalibHI'
0021 
0022 from HLTrigger.HLTfilters.hltLevel1GTSeed_cfi import *
0023 l1tech = hltLevel1GTSeed.clone()
0024 l1tech.L1TechTriggerSeeding = cms.bool(True)
0025 
0026 l1Algo = hltLevel1GTSeed.clone()
0027 l1Algo.L1TechTriggerSeeding = cms.bool(False)
0028 
0029 bptx = l1tech.clone()
0030 bptx.L1SeedsLogicalExpression = cms.string('0')
0031 
0032 bscAnd = l1tech.clone()
0033 bscAnd.L1SeedsLogicalExpression = cms.string('40 OR 41')
0034 
0035 beamHaloVeto = l1tech.clone()
0036 beamHaloVeto.L1SeedsLogicalExpression = cms.string('NOT (36 OR 37 OR 38 OR 39) AND NOT ((42 AND NOT 43) OR (43 AND NOT 42))')
0037 
0038 l1SingleMuOpen = l1Algo.clone()
0039 l1SingleMuOpen.L1SeedsLogicalExpression = cms.string('L1_SingleMuOpen')
0040 
0041 #l1Coll = cms.Sequence(bptx + beamHaloVeto)
0042 l1Coll = cms.Sequence(bptx)
0043 l1CollBscAnd = cms.Sequence(bptx + bscAnd + beamHaloVeto)
0044 
0045 primaryVertexFilter = cms.EDFilter("VertexSelector",
0046     src = cms.InputTag("offlinePrimaryVertices"),
0047     cut = cms.string("!isFake && ndof > 4 && abs(z) <= 15 && position.Rho <= 2"),
0048     filter = cms.bool(True),   # otherwise it won't filter the events, just produce an empty vertex collection.
0049 )
0050 
0051 primaryVertexFilterHI = cms.EDFilter("VertexSelector",
0052     src = cms.InputTag("hiSelectedVertex"),
0053     cut = cms.string("!isFake && ndof > 4 && abs(z) <= 15 && position.Rho <= 2"),
0054     filter = cms.bool(True),
0055 )
0056 
0057 scrapingEvtFilter = cms.EDFilter("FilterOutScraping",
0058     applyfilter = cms.untracked.bool(True),
0059     debugOn = cms.untracked.bool(False),
0060     numtrack = cms.untracked.uint32(10),
0061     thresh = cms.untracked.double(0.25)
0062 )
0063 
0064 hltDTActivityFilter = cms.EDFilter( "HLTDTActivityFilter",
0065     inputDCC         = cms.InputTag( "dttfDigis" ),
0066     inputDDU         = cms.InputTag( "muonDTDigis" ),
0067     inputDigis       = cms.InputTag( "muonDTDigis" ),
0068     processDCC       = cms.bool( False ),
0069     processDDU       = cms.bool( False ),
0070     processDigis     = cms.bool( True ),
0071     processingMode   = cms.int32( 0 ),   # 0=(DCC | DDU) | Digis/ 
0072                                          # 1=(DCC & DDU) | Digis/
0073                                          # 2=(DCC | DDU) & Digis/
0074                                          # 3=(DCC & DDU) & Digis/   
0075     minChamberLayers = cms.int32( 6 ),
0076     maxStation       = cms.int32( 3 ),
0077     minQual          = cms.int32( 2 ),   # 0-1=L 2-3=H 4=LL 5=HL 6=HH/
0078     minDDUBX         = cms.int32( 9 ),
0079     maxDDUBX         = cms.int32( 14 ),
0080     minActiveChambs  = cms.int32( 1 ),
0081     activeSectors    = cms.vint32(1,2,3,4,5,6,7,8,9,10,11,12)
0082 )
0083 
0084 #from CalibMuon.DTCalibration.DTCalibMuonSelection_cfi import *
0085 
0086 goodMuonsPt15 = cms.EDFilter("CandViewSelector",
0087     src = cms.InputTag("muons"),
0088     cut = cms.string('(isGlobalMuon = 1 | isTrackerMuon = 1) & abs(eta) < 1.2 & pt > 15.0'),
0089     filter = cms.bool(True) 
0090 )
0091 muonSelectionPt15 = cms.Sequence(goodMuonsPt15)
0092 
0093 goodMuonsPt5 = cms.EDFilter("CandViewSelector",
0094     src = cms.InputTag("muons"),
0095     cut = cms.string('(isGlobalMuon = 1 | isTrackerMuon = 1) & abs(eta) < 1.2 & pt > 5.0'),
0096     filter = cms.bool(True)
0097 )
0098 muonSelectionPt5 = cms.Sequence(goodMuonsPt5)
0099 
0100 goodCosmicTracksPt5 = cms.EDFilter("TrackSelector",
0101     src = cms.InputTag("cosmicMuons"),
0102     cut = cms.string('pt > 5.0'),
0103     filter = cms.bool(True)
0104 )
0105 
0106 offlineSelectionPt15 = cms.Sequence(scrapingEvtFilter + primaryVertexFilter + muonSelectionPt15)
0107 offlineSelectionALCARECOPt15 = cms.Sequence(muonSelectionPt15)
0108 offlineSelectionPt5 = cms.Sequence(scrapingEvtFilter + primaryVertexFilter + muonSelectionPt5)
0109 offlineSelectionALCARECOPt5 = cms.Sequence(muonSelectionPt5)
0110 offlineSelectionCosmicsPt5 = cms.Sequence(hltL1SingleMuOpen + goodCosmicTracksPt5)
0111 offlineSelectionHIPt5 = cms.Sequence(ALCARECODtCalibHIHLTFilter + primaryVertexFilterHI + muonSelectionPt5)
0112 offlineSelectionHIALCARECOPt5 = cms.Sequence(primaryVertexFilterHI + muonSelectionPt5)
0113 offlineSelectionHIRAWPt5 = cms.Sequence(ALCARECODtCalibHIHLTFilter)
0114 
0115 offlineSelection = cms.Sequence(scrapingEvtFilter + primaryVertexFilter + muonSelectionPt15)
0116 offlineSelectionALCARECO = cms.Sequence(muonSelectionPt15)
0117 offlineSelectionALCARECODtCalibTest = cms.Sequence(hltDtCalibTest + muonSelectionPt15)
0118 offlineSelectionCosmics = cms.Sequence(hltL1SingleMuOpen)
0119 offlineSelectionHI = cms.Sequence(offlineSelectionHIPt5)
0120 offlineSelectionHIALCARECO = cms.Sequence(offlineSelectionHIALCARECOPt5)
0121 offlineSelectionHIRAW = cms.Sequence(offlineSelectionHIRAWPt5)
0122 offlineSelectionTestEnables = cms.Sequence(hltDTCalibration)
0123 
0124 dtCalibOfflineSelectionPt15 = cms.Sequence(offlineSelectionPt15)
0125 dtCalibOfflineSelectionALCARECOPt15 = cms.Sequence(offlineSelectionALCARECOPt15)
0126 dtCalibOfflineSelectionPt5 = cms.Sequence(offlineSelectionPt5)
0127 dtCalibOfflineSelectionALCARECOPt5 = cms.Sequence(offlineSelectionALCARECOPt5)
0128 dtCalibOfflineSelectionCosmicsPt5 = cms.Sequence(offlineSelectionCosmicsPt5)
0129 dtCalibOfflineSelectionHIPt5 = cms.Sequence(offlineSelectionHIPt5)
0130 dtCalibOfflineSelectionHIALCARECOPt5 = cms.Sequence(offlineSelectionHIALCARECOPt5)
0131 dtCalibOfflineSelectionHIRAWPt5 = cms.Sequence(offlineSelectionHIRAWPt5)
0132 
0133 dtCalibOfflineSelection = cms.Sequence(offlineSelection)
0134 dtCalibOfflineSelectionALCARECO = cms.Sequence(offlineSelectionALCARECO)
0135 dtCalibOfflineSelectionALCARECODtCalibTest = cms.Sequence(offlineSelectionALCARECODtCalibTest)
0136 dtCalibOfflineSelectionCosmics = cms.Sequence(offlineSelectionCosmics)
0137 dtCalibOfflineSelectionHI = cms.Sequence(offlineSelectionHI)
0138 dtCalibOfflineSelectionHIALCARECO = cms.Sequence(offlineSelectionHIALCARECO)
0139 dtCalibOfflineSelectionHIRAW = cms.Sequence(offlineSelectionHIRAW)
0140 dtCalibOfflineSelectionTestEnables = cms.Sequence(offlineSelectionTestEnables)