Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:43

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("L1")
0004 
0005 # initialize MessageLogger and output report
0006 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0007 process.MessageLogger.cerr.threshold = 'INFO'
0008 process.MessageLogger.cerr.INFO = cms.untracked.PSet(
0009     default          = cms.untracked.PSet( limit = cms.untracked.int32(0)  ),
0010     PATSummaryTables = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0011 )
0012 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0013 
0014 # source
0015 process.source = cms.Source("PoolSource", 
0016      fileNames = cms.untracked.vstring(
0017         'file:/afs/cern.ch/cms/PRS/top/cmssw-data/relval200-for-pat-testing/TauolaTTbar-Summer08_IDEAL_V9_v1-AODSIM.80.root'
0018         #'/store/relval/CMSSW_2_2_7/RelValWM/GEN-SIM-RECO/STARTUP_V9_v1/0004/1E84F77B-341C-DE11-8A99-0019DB29C5FC.root',
0019         #'/store/relval/CMSSW_2_2_7/RelValWM/GEN-SIM-RECO/STARTUP_V9_v1/0004/34267FD6-1C1C-DE11-A836-001617C3B78C.root',
0020         #'/store/relval/CMSSW_2_2_7/RelValWM/GEN-SIM-RECO/STARTUP_V9_v1/0004/68BF59CF-1C1C-DE11-AFA9-000423D98BC4.root'
0021     )
0022 )
0023 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0024 
0025 process.load("Configuration.StandardSequences.Geometry_cff")
0026 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0027 #process.GlobalTag.globaltag = cms.string('IDEAL_V9::All')
0028 process.GlobalTag.globaltag = cms.string('STARTUP_V9::All')
0029 process.load("Configuration.StandardSequences.MagneticField_cff")
0030 
0031 # PAT Layer 0+1
0032 process.load("PhysicsTools.PatAlgos.patSequences_cff")
0033 #process.allLayer1Jets.jetCorrFactorsSource = cms.VInputTag(cms.InputTag("jetCorrFactors"))
0034 #process.patJetMETCorrections.remove(process.jptJetCorrFactors)
0035 from PhysicsTools.PatAlgos.tools.cmsswVersionTools import run22XonSummer08AODSIM
0036 run22XonSummer08AODSIM(process)
0037 
0038 from L1Trigger.L1ExtraFromDigis.l1extraParticles_cfi import l1extraParticles
0039 process.l1muonsAnyBX = l1extraParticles.clone(
0040     #muonSource = cms.InputTag( "hltGtDigis" ),
0041     produceCaloParticles = False, ### we don't have digis for these
0042     centralBxOnly = False         ### this is the important point
0043 )
0044 
0045 process.load("MuonAnalysis.MuonAssociators.muonL1Match_cfi")
0046 process.muonL1Match.preselection = cms.string("")
0047 process.muonL1Match.writeExtraInfo = cms.bool(True)
0048 process.muonL1Match.matched = cms.InputTag('l1muonsAnyBX')
0049 
0050 process.allLayer1Muons.trigPrimMatch = cms.VInputTag(
0051     cms.InputTag("muonL1Match"),
0052     cms.InputTag("muonL1Match","propagatedReco"),
0053 )
0054 process.allLayer1Muons.userData.userInts.src = cms.VInputTag(
0055     cms.InputTag("muonL1Match", "bx"),
0056     cms.InputTag("muonL1Match", "quality"),
0057     cms.InputTag("muonL1Match", "isolated"),
0058 )
0059 process.allLayer1Muons.userData.userFloats.src = cms.VInputTag(
0060     cms.InputTag("muonL1Match", "deltaR")
0061 )
0062 process.selectedLayer1Muons.cut = "!triggerMatchesByFilter('l1').empty()"
0063 process.selectedLayer1Muons.filter = cms.bool(True)
0064 
0065 process.p = cms.Path(
0066     process.l1muonsAnyBX *
0067     process.muonL1Match *
0068     process.patDefaultSequence 
0069 )
0070 
0071 process.out = cms.OutputModule("PoolOutputModule",
0072     fileName = cms.untracked.string('l1muonsAnyBX.root'),
0073     outputCommands = cms.untracked.vstring("drop *", "keep *_cleanLayer1Muons__*"),
0074 )
0075 process.end = cms.EndPath(process.out)
0076