CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/CalibMuon/DTCalibration/python/dtCalibOfflineSelection_cff.py

Go to the documentation of this file.
00001 
00002 
00003 from L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff import *
00004 from L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff import *
00005 es_prefer_l1GtTriggerMaskAlgoTrig = cms.ESPrefer("L1GtTriggerMaskAlgoTrigTrivialProducer","l1GtTriggerMaskAlgoTrig")
00006 es_prefer_l1GtTriggerMaskTechTrig = cms.ESPrefer("L1GtTriggerMaskTechTrigTrivialProducer","l1GtTriggerMaskTechTrig")
00007 
00008 import copy
00009 from HLTrigger.HLTfilters.hltHighLevel_cfi import *
00010 hltL1SingleMuOpen = copy.deepcopy(hltHighLevel)
00011 hltL1SingleMuOpen.HLTPaths = ['HLT_L1SingleMuOpen_AntiBPTX_v*']
00012 hltDtCalibTest = copy.deepcopy(hltHighLevel)
00013 hltDtCalibTest.HLTPaths = ['HLT_Mu40_v*', 'HLT_IsoMu*', 'HLT_Mu13_Mu8_v*', 'HLT_Mu17_Mu8_v*']
00014 
00015 ALCARECODtCalibHIHLTFilter = copy.deepcopy(hltHighLevel)
00016 ALCARECODtCalibHIHLTFilter.throw = False
00017 ALCARECODtCalibHIHLTFilter.eventSetupPathsKey = 'MuAlcaDtCalibHI'
00018 
00019 from HLTrigger.HLTfilters.hltLevel1GTSeed_cfi import *
00020 l1tech = hltLevel1GTSeed.clone()
00021 l1tech.L1TechTriggerSeeding = cms.bool(True)
00022 
00023 l1Algo = hltLevel1GTSeed.clone()
00024 l1Algo.L1TechTriggerSeeding = cms.bool(False)
00025 
00026 bptx = l1tech.clone()
00027 bptx.L1SeedsLogicalExpression = cms.string('0')
00028 
00029 bscAnd = l1tech.clone()
00030 bscAnd.L1SeedsLogicalExpression = cms.string('40 OR 41')
00031 
00032 beamHaloVeto = l1tech.clone()
00033 beamHaloVeto.L1SeedsLogicalExpression = cms.string('NOT (36 OR 37 OR 38 OR 39) AND NOT ((42 AND NOT 43) OR (43 AND NOT 42))')
00034 
00035 l1SingleMuOpen = l1Algo.clone()
00036 l1SingleMuOpen.L1SeedsLogicalExpression = cms.string('L1_SingleMuOpen')
00037 
00038 #l1Coll = cms.Sequence(bptx + beamHaloVeto)
00039 l1Coll = cms.Sequence(bptx)
00040 l1CollBscAnd = cms.Sequence(bptx + bscAnd + beamHaloVeto)
00041 
00042 primaryVertexFilter = cms.EDFilter("VertexSelector",
00043     src = cms.InputTag("offlinePrimaryVertices"),
00044     cut = cms.string("!isFake && ndof > 4 && abs(z) <= 15 && position.Rho <= 2"),
00045     filter = cms.bool(True),   # otherwise it won't filter the events, just produce an empty vertex collection.
00046 )
00047 
00048 primaryVertexFilterHI = cms.EDFilter("VertexSelector",
00049     src = cms.InputTag("hiSelectedVertex"),
00050     cut = cms.string("!isFake && ndof > 4 && abs(z) <= 15 && position.Rho <= 2"),
00051     filter = cms.bool(True),
00052 )
00053 
00054 scrapingEvtFilter = cms.EDFilter("FilterOutScraping",
00055     applyfilter = cms.untracked.bool(True),
00056     debugOn = cms.untracked.bool(False),
00057     numtrack = cms.untracked.uint32(10),
00058     thresh = cms.untracked.double(0.25)
00059 )
00060 
00061 HLTDTActivityFilter = cms.EDFilter( "HLTDTActivityFilter",
00062     inputDCC         = cms.InputTag( "dttfDigis" ),
00063     inputDDU         = cms.InputTag( "muonDTDigis" ),
00064     inputDigis       = cms.InputTag( "muonDTDigis" ),
00065     processDCC       = cms.bool( False ),
00066     processDDU       = cms.bool( False ),
00067     processDigis     = cms.bool( True ),
00068     processingMode   = cms.int32( 0 ),   # 0=(DCC | DDU) | Digis/ 
00069                                          # 1=(DCC & DDU) | Digis/
00070                                          # 2=(DCC | DDU) & Digis/
00071                                          # 3=(DCC & DDU) & Digis/   
00072     minChamberLayers = cms.int32( 6 ),
00073     maxStation       = cms.int32( 3 ),
00074     minQual          = cms.int32( 2 ),   # 0-1=L 2-3=H 4=LL 5=HL 6=HH/
00075     minDDUBX         = cms.int32( 9 ),
00076     maxDDUBX         = cms.int32( 14 ),
00077     minActiveChambs  = cms.int32( 1 ),
00078     activeSectors    = cms.vint32(1,2,3,4,5,6,7,8,9,10,11,12)
00079 )
00080 
00081 #from CalibMuon.DTCalibration.DTCalibMuonSelection_cfi import *
00082 
00083 goodMuonsPt15 = cms.EDFilter("CandViewSelector",
00084     src = cms.InputTag("muons"),
00085     cut = cms.string('(isGlobalMuon = 1 | isTrackerMuon = 1) & abs(eta) < 1.2 & pt > 15.0'),
00086     filter = cms.bool(True) 
00087 )
00088 muonSelectionPt15 = cms.Sequence(goodMuonsPt15)
00089 
00090 goodMuonsPt5 = cms.EDFilter("CandViewSelector",
00091     src = cms.InputTag("muons"),
00092     cut = cms.string('(isGlobalMuon = 1 | isTrackerMuon = 1) & abs(eta) < 1.2 & pt > 5.0'),
00093     filter = cms.bool(True)
00094 )
00095 muonSelectionPt5 = cms.Sequence(goodMuonsPt5)
00096 
00097 goodCosmicTracksPt5 = cms.EDFilter("TrackSelector",
00098     src = cms.InputTag("cosmicMuons"),
00099     cut = cms.string('pt > 5.0'),
00100     filter = cms.bool(True)
00101 )
00102 
00103 offlineSelectionPt15 = cms.Sequence(scrapingEvtFilter + primaryVertexFilter + muonSelectionPt15)
00104 offlineSelectionALCARECOPt15 = cms.Sequence(muonSelectionPt15)
00105 offlineSelectionPt5 = cms.Sequence(scrapingEvtFilter + primaryVertexFilter + muonSelectionPt5)
00106 offlineSelectionALCARECOPt5 = cms.Sequence(muonSelectionPt5)
00107 offlineSelectionCosmicsPt5 = cms.Sequence(hltL1SingleMuOpen + goodCosmicTracksPt5)
00108 offlineSelectionHIPt5 = cms.Sequence(ALCARECODtCalibHIHLTFilter + primaryVertexFilterHI + muonSelectionPt5)
00109 offlineSelectionHIALCARECOPt5 = cms.Sequence(primaryVertexFilterHI + muonSelectionPt5)
00110 offlineSelectionHIRAWPt5 = cms.Sequence(ALCARECODtCalibHIHLTFilter)
00111 
00112 offlineSelection = cms.Sequence(scrapingEvtFilter + primaryVertexFilter + muonSelectionPt15)
00113 offlineSelectionALCARECO = cms.Sequence(muonSelectionPt15)
00114 offlineSelectionALCARECODtCalibTest = cms.Sequence(hltDtCalibTest + muonSelectionPt15)
00115 offlineSelectionCosmics = cms.Sequence(hltL1SingleMuOpen)
00116 offlineSelectionHI = cms.Sequence(offlineSelectionHIPt5)
00117 offlineSelectionHIALCARECO = cms.Sequence(offlineSelectionHIALCARECOPt5)
00118 offlineSelectionHIRAW = cms.Sequence(offlineSelectionHIRAWPt5)
00119 
00120 dtCalibOfflineSelectionPt15 = cms.Sequence(offlineSelectionPt15)
00121 dtCalibOfflineSelectionALCARECOPt15 = cms.Sequence(offlineSelectionALCARECOPt15)
00122 dtCalibOfflineSelectionPt5 = cms.Sequence(offlineSelectionPt5)
00123 dtCalibOfflineSelectionALCARECOPt5 = cms.Sequence(offlineSelectionALCARECOPt5)
00124 dtCalibOfflineSelectionCosmicsPt5 = cms.Sequence(offlineSelectionCosmicsPt5)
00125 dtCalibOfflineSelectionHIPt5 = cms.Sequence(offlineSelectionHIPt5)
00126 dtCalibOfflineSelectionHIALCARECOPt5 = cms.Sequence(offlineSelectionHIALCARECOPt5)
00127 dtCalibOfflineSelectionHIRAWPt5 = cms.Sequence(offlineSelectionHIRAWPt5)
00128 
00129 dtCalibOfflineSelection = cms.Sequence(offlineSelection)
00130 dtCalibOfflineSelectionALCARECO = cms.Sequence(offlineSelectionALCARECO)
00131 dtCalibOfflineSelectionALCARECODtCalibTest = cms.Sequence(offlineSelectionALCARECODtCalibTest)
00132 dtCalibOfflineSelectionCosmics = cms.Sequence(offlineSelectionCosmics)
00133 dtCalibOfflineSelectionHI = cms.Sequence(offlineSelectionHI)
00134 dtCalibOfflineSelectionHIALCARECO = cms.Sequence(offlineSelectionHIALCARECO)
00135 dtCalibOfflineSelectionHIRAW = cms.Sequence(offlineSelectionHIRAW)