ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/auterman/PATDebug/FinalPlots/test/finalplots_cfg.py
Revision: 1.1.1.1 (vendor branch)
Committed: Thu Jan 7 15:54:11 2010 UTC (15 years, 4 months ago) by auterman
Content type: text/x-python
Branch: PATDebug, MAIN
CVS Tags: start, HEAD
Changes since 1.1: +0 -0 lines
Log Message:
PAT debugging

File Contents

# User Rev Content
1 auterman 1.1 import FWCore.ParameterSet.Config as cms
2    
3     process = cms.Process("Demo")
4    
5     process.load("FWCore.MessageService.MessageLogger_cfi")
6    
7     process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
8    
9     process.TFileService = cms.Service("TFileService",
10     fileName = cms.string("plots.root") )
11    
12     process.source = cms.Source("PoolSource",
13     # replace 'myfile.root' with the source file you want to use
14     fileNames = cms.untracked.vstring(
15     # 'file:/rdata2/uhh-cms014/data/auterman/data/RelVal3_3_0ZmumuJets_Pt_20_300_GEN-SIM-RECO_LowLumiPileUp-v1.root'
16     '/store/relval/CMSSW_3_5_0_pre1/RelValTTbar/GEN-SIM-RECO/STARTUP3X_V14-v1/0006/14920B0A-0DE8-DE11-B138-002618943926.root'
17     )
18     )
19    
20    
21     ##------------------------------------------------------------------
22     ## Call PAT if running on AOD --------------------------------------
23     #from PhysicsTools.PatAlgos.patTemplate_cfg import *
24     #from PhysicsTools.PatAlgos.tools.coreTools import *
25     ##restrictInputToAOD(process)
26     ##removeMCMatching(process, 'Muons')
27     ##removeAllPATObjectsBut(process, ['Muons'])
28     ##removeSpecificPATObjects(process, ['Electrons', 'Muons', 'Taus'])
29     #from PhysicsTools.PatAlgos.tools.tauTools import *
30     ##switchTo31Xdefaults(process)
31     #from PhysicsTools.PatAlgos.tools.cmsswVersionTools import *
32     ##run33xOn31xMC( process,
33     ## jetSrc = cms.InputTag("antikt5CaloJets"),
34     ## jetIdTag = "antikt5"
35     ## )
36     #
37     #process.maxEvents.input = -1
38     #process.source.fileNames = [
39     # '/store/relval/CMSSW_3_5_0_pre1/RelValTTbar/GEN-SIM-RECO/STARTUP3X_V14-v1/0006/14920B0A-0DE8-DE11-B138-002618943926.root'
40     # ]
41     #
42     #process.TFileService = cms.Service("TFileService",
43     # fileName = cms.string("plots.root") )
44     #
45     #from JetMETCorrections.Configuration.JetCorrectionEra_cff import *
46     #JetCorrectionEra.era = 'Summer09_7TeV'
47     #process.load('JetMETCorrections.Configuration.JetCorrectionProducers_cff')
48    
49     process.load("PATDebug.FinalPlots.finalplots_cfi")
50     process.finalPlot_RECO = process.finalPlot.clone()
51     process.finalPlot_RECO.Jet = 'ak5CaloJets'
52     process.finalPlot_RECO.MET = 'met'
53    
54     process.finalPlot_PAT = process.finalPlot.clone()
55     process.finalPlot_PAT.Jet = 'allLayer1JetsAK5'
56     process.finalPlot_PAT.MET = 'allLayer1METsAK5'
57    
58    
59     process.reco = cms.Path( process.finalPlot_RECO )
60    
61     #process.pat = cms.Path( process.patDefaultSequence
62     # * process.finalPlot_PAT )