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 |
|
|
'/store/mc/Summer09/MinBias/GEN-SIM-RECO/STARTUP3X_V8D_2360GeV-v2/0004/FED63CFD-18DE-DE11-B2B4-002618943957.root',
|
18 |
|
|
'/store/mc/Summer09/MinBias/GEN-SIM-RECO/STARTUP3X_V8D_2360GeV-v2/0004/FC2A02B4-18DE-DE11-A2C0-0026189438FE.root',
|
19 |
|
|
'/store/mc/Summer09/MinBias/GEN-SIM-RECO/STARTUP3X_V8D_2360GeV-v2/0004/FAAFEE64-20DE-DE11-A190-002618FDA237.root',
|
20 |
|
|
'/store/mc/Summer09/MinBias/GEN-SIM-RECO/STARTUP3X_V8D_2360GeV-v2/0004/FA77B88B-17DE-DE11-AD68-00248C0BE014.root',
|
21 |
|
|
'/store/mc/Summer09/MinBias/GEN-SIM-RECO/STARTUP3X_V8D_2360GeV-v2/0004/E67E0EDD-18DE-DE11-8833-0026189438CF.root',
|
22 |
|
|
)
|
23 |
|
|
)
|
24 |
|
|
|
25 |
|
|
## configure geometry
|
26 |
|
|
process.load("Configuration.StandardSequences.Geometry_cff")
|
27 |
|
|
|
28 |
|
|
## configure conditions
|
29 |
|
|
#process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
|
30 |
|
|
#process.GlobalTag.globaltag = cms.string('STARTUP_V7::All')
|
31 |
|
|
|
32 |
|
|
## load magnetic field
|
33 |
|
|
process.load("Configuration.StandardSequences.MagneticField_cff")
|
34 |
|
|
|
35 |
|
|
##------------------------------------------------------------------
|
36 |
|
|
## Call PAT if running on AOD --------------------------------------
|
37 |
|
|
#from PhysicsTools.PatAlgos.patTemplate_cfg import *
|
38 |
|
|
#from PhysicsTools.PatAlgos.tools.coreTools import *
|
39 |
|
|
##restrictInputToAOD(process)
|
40 |
|
|
##removeMCMatching(process, 'Muons')
|
41 |
|
|
##removeAllPATObjectsBut(process, ['Muons'])
|
42 |
|
|
##removeSpecificPATObjects(process, ['Electrons', 'Muons', 'Taus'])
|
43 |
|
|
#from PhysicsTools.PatAlgos.tools.tauTools import *
|
44 |
|
|
##switchTo31Xdefaults(process)
|
45 |
|
|
#from PhysicsTools.PatAlgos.tools.cmsswVersionTools import *
|
46 |
|
|
##run33xOn31xMC( process,
|
47 |
|
|
## jetSrc = cms.InputTag("antikt5CaloJets"),
|
48 |
|
|
## jetIdTag = "antikt5"
|
49 |
|
|
## )
|
50 |
|
|
#
|
51 |
|
|
#process.maxEvents.input = -1
|
52 |
|
|
#process.source.fileNames = [
|
53 |
|
|
# '/store/relval/CMSSW_3_5_0_pre1/RelValTTbar/GEN-SIM-RECO/STARTUP3X_V14-v1/0006/14920B0A-0DE8-DE11-B138-002618943926.root'
|
54 |
|
|
# ]
|
55 |
|
|
#
|
56 |
|
|
#process.TFileService = cms.Service("TFileService",
|
57 |
|
|
# fileName = cms.string("plots.root") )
|
58 |
|
|
#
|
59 |
|
|
#from JetMETCorrections.Configuration.JetCorrectionEra_cff import *
|
60 |
|
|
#JetCorrectionEra.era = 'Summer09_7TeV'
|
61 |
|
|
#process.load('JetMETCorrections.Configuration.JetCorrectionProducers_cff')
|
62 |
|
|
|
63 |
|
|
process.load("Analysis.FinalPlots.finalplots_cfi")
|
64 |
|
|
process.finalPlot.Jet = 'ak5CaloJets'
|
65 |
|
|
process.finalPlot.MET = 'met'
|
66 |
|
|
process.finalPlot.JetPtMin = 0.0
|
67 |
|
|
process.finalPlot.JetEtaMax = 5.0
|
68 |
|
|
process.finalPlot.Tracks = 'generalTracks'
|
69 |
|
|
|
70 |
|
|
process.reco = cms.Path(
|
71 |
|
|
#process.patDefaultSequence *
|
72 |
|
|
process.finalPlot
|
73 |
|
|
)
|