CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/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 from HLTrigger.HLTfilters.hltLevel1GTSeed_cfi import *
00008 
00009 # Good coll. --> '0 AND (40 OR 41) AND NOT (36 OR 37 OR 38 OR 39) AND NOT ((42 AND NOT 43) OR (43 AND NOT 42))'
00010 l1tech = hltLevel1GTSeed.clone()
00011 l1tech.L1TechTriggerSeeding = cms.bool(True)
00012 
00013 bptx =l1tech.clone()
00014 bptx.L1SeedsLogicalExpression = cms.string('0')
00015 
00016 bscAnd = l1tech.clone()
00017 bscAnd.L1SeedsLogicalExpression = cms.string('40 OR 41')
00018 
00019 beamHaloVeto = l1tech.clone()
00020 beamHaloVeto.L1SeedsLogicalExpression = cms.string('NOT (36 OR 37 OR 38 OR 39) AND NOT ((42 AND NOT 43) OR (43 AND NOT 42))')
00021 
00022 #l1Coll = cms.Sequence(bptx + beamHaloVeto)
00023 l1Coll = cms.Sequence(bptx)
00024 l1CollBscAnd = cms.Sequence(bptx + bscAnd + beamHaloVeto)
00025 
00026 primaryVertexFilter = cms.EDFilter("VertexSelector",
00027     src = cms.InputTag("offlinePrimaryVertices"),
00028     cut = cms.string("!isFake && ndof > 4 && abs(z) <= 15 && position.Rho <= 2"),
00029     filter = cms.bool(True),   # otherwise it won't filter the events, just produce an empty vertex collection.
00030 )
00031 
00032 scrapingEvtFilter = cms.EDFilter("FilterOutScraping",
00033     applyfilter = cms.untracked.bool(True),
00034     debugOn = cms.untracked.bool(False),
00035     numtrack = cms.untracked.uint32(10),
00036     thresh = cms.untracked.double(0.25)
00037 )
00038 
00039 HLTDTActivityFilter = cms.EDFilter( "HLTDTActivityFilter",
00040     inputDCC         = cms.InputTag( "dttfDigis" ),
00041     inputDDU         = cms.InputTag( "muonDTDigis" ),
00042     inputDigis       = cms.InputTag( "muonDTDigis" ),
00043     processDCC       = cms.bool( False ),
00044     processDDU       = cms.bool( False ),
00045     processDigis     = cms.bool( True ),
00046     processingMode   = cms.int32( 0 ),   # 0=(DCC | DDU) | Digis/ 
00047                                          # 1=(DCC & DDU) | Digis/
00048                                          # 2=(DCC | DDU) & Digis/
00049                                          # 3=(DCC & DDU) & Digis/   
00050     minChamberLayers = cms.int32( 6 ),
00051     maxStation       = cms.int32( 3 ),
00052     minQual          = cms.int32( 2 ),   # 0-1=L 2-3=H 4=LL 5=HL 6=HH/
00053     minDDUBX         = cms.int32( 9 ),
00054     maxDDUBX         = cms.int32( 14 ),
00055     minActiveChambs  = cms.int32( 1 ),
00056     activeSectors    = cms.vint32(1,2,3,4,5,6,7,8,9,10,11,12)
00057 )
00058 
00059 #from CalibMuon.DTCalibration.DTCalibMuonSelection_cfi import *
00060 
00061 goodMuons = cms.EDFilter("CandViewSelector",
00062     src = cms.InputTag("muons"),
00063     cut = cms.string('(isGlobalMuon = 1 | isTrackerMuon = 1) & abs(eta) < 1.2 & pt > 5.0'),
00064     filter = cms.bool(True) 
00065 )
00066 muonSelection = cms.Sequence(goodMuons)
00067 
00068 offlineSelection = cms.Sequence(scrapingEvtFilter + primaryVertexFilter + muonSelection)
00069 offlineSelectionALCARECO = cms.Sequence(muonSelection)
00070 offlineSelectionCosmics = cms.Sequence(muonSelection)
00071 
00072 dtCalibOfflineSelection = cms.Sequence(offlineSelection)
00073 dtCalibOfflineSelectionALCARECO = cms.Sequence(offlineSelectionALCARECO)
00074 dtCalibOfflineSelectionCosmics = cms.Sequence(offlineSelectionCosmics)