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("PAT")
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(1000) )
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 
0034 process.load("MuonAnalysis.MuonAssociators.muonL1Match_cfi")
0035 process.muonL1Match.preselection = cms.string("")
0036 
0037 process.allLayer1Muons.trigPrimMatch = cms.VInputTag(
0038     cms.InputTag("muonL1Match"),
0039     cms.InputTag("muonL1Match","propagatedReco"),
0040 )
0041 
0042 ## Put your EDAnalyzer here
0043 ##   process.plots = cms.EDFilter("DataPlotter",
0044 ##       muons   = cms.InputTag("cleanLayer1Muons"),
0045 ##       muonCut = cms.string("")
0046 ##   )
0047 
0048 process.p = cms.Path(
0049     process.muonL1Match *
0050     process.patDefaultSequence 
0051 # * process.plots
0052 )
0053 
0054 process.TFileService = cms.Service("TFileService", 
0055     fileName = cms.string("plots.root")
0056 )
0057