-
Notifications
You must be signed in to change notification settings - Fork 1
/
WjetsComparisons_cfg.py
80 lines (57 loc) · 2.43 KB
/
WjetsComparisons_cfg.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as VarParsing
process = cms.Process("Test")
# setup 'analysis' options
options = VarParsing.VarParsing ('analysis')
# setup any defaults you want
options.outputFile = 'analyzed.root'
options.inputFiles = 'file:step0.root'
options.maxEvents = -1 # -1 means all events
# get and parse the command line arguments
options.parseArguments()
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.cerr.FwkReport.reportEvery = 1000
process.MessageLogger.cerr.threshold = 'INFO'
process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
process.load("PhysicsTools.HepMCCandAlgos.genParticles_cfi")
process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
generator = cms.PSet(
initialSeed = cms.untracked.uint32(123456789),
engineName = cms.untracked.string('HepJamesRandom')
)
)
process.TFileService = cms.Service("TFileService",
fileName = cms.string(options.outputFile)
)
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(options.maxEvents) )
process.source = cms.Source("PoolSource")
process.source.fileNames = cms.untracked.vstring(options.inputFiles)
#process.load("CMSDAS2012.GenExercise.WjetsPy6_cff")
# from Configuration.Generator.PythiaUESettings_cfi import *
# #from GeneratorInterface.ExternalDecays.TauolaSettings_cff import *
# process.generator = cms.EDFilter("Pythia6GeneratorFilter",
# maxEventsToPrint = cms.untracked.int32(5),
# pythiaPylistVerbosity = cms.untracked.int32(1),
# filterEfficiency = cms.untracked.double(1.0),
# pythiaHepMCVerbosity = cms.untracked.bool(False),
# comEnergy = cms.double(7000.0),
# PythiaParameters = cms.PSet(
# pythiaUESettingsBlock,
# WjetsParameters = cms.vstring('MSEL=0',
# 'MSUB(1)=1',
# '24:ALLOFF',
# '24:ONIFMATCH 11 13'),
# parameterSets = cms.vstring('pythiaUESettings',
# 'WjetsParameters')
# )
# )
# process.load("RecoJets.Configuration.GenJetParticles_cff")
# process.load("RecoJets.JetProducers.ak5GenJets_cfi")
process.load("CMSDAS.GEN.WjetsAnalysis_cfi")
process.p = cms.Path(
# process.generator*
process.genParticles*
# process.genParticlesForJets*
process.analysis
)