-
Notifications
You must be signed in to change notification settings - Fork 3
/
genntuplewriter_cfg.py
75 lines (63 loc) · 3.35 KB
/
genntuplewriter_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
# -*- coding: utf-8 -*-
import FWCore.ParameterSet.Config as cms
process = cms.Process("MYGENTEST")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.cerr.threshold = 'WARNING'
process.options = cms.untracked.PSet(
wantSummary = cms.untracked.bool(True)
)
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring('file:/scratch/hh/dust/naf/cms/user/jott/Powheg_ZH_bb_8TeV_GEN.root',
),
skipEvents = cms.untracked.uint32(0),
duplicateCheckMode = cms.untracked.string('noDuplicateCheck')
)
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1))
process.load("RecoJets.Configuration.GenJetParticles_cff")
from RecoJets.JetProducers.SubJetParameters_cfi import SubJetParameters
from RecoJets.JetProducers.PFJetParameters_cfi import *
from RecoJets.JetProducers.CaloJetParameters_cfi import *
from RecoJets.JetProducers.AnomalousCellParameters_cfi import *
from RecoJets.JetProducers.CATopJetParameters_cfi import *
from RecoJets.JetProducers.GenJetParameters_cfi import *
process.caTopTagGen = cms.EDProducer(
"CATopJetProducer",
GenJetParameters.clone(src = cms.InputTag("genParticlesForJetsNoNu"),
doAreaFastjet = cms.bool(False),
doRhoFastjet = cms.bool(False)),
AnomalousCellParameters,
CATopJetParameters,
jetAlgorithm = cms.string("CambridgeAachen"),
rParam = cms.double(0.8),
writeCompound = cms.bool(True)
)
#NtupleWriter
process.MyNtuple = cms.EDAnalyzer('NtupleWriter',
fileName = cms.string('/scratch/hh/dust/naf/cms/user/jott/Powheg_ZH_bb_8TeV_SFrame_ntuple.root'),
doElectrons = cms.bool(False),
doMuons = cms.bool(False),
doTaus = cms.bool(False),
doJets = cms.bool(False),
doTopJets = cms.bool(False),
doTopJetsConstituents = cms.bool(False),
doGenTopJets = cms.bool(True),
gentopjet_sources = cms.vstring("caTopTagGen" ),
gentopjet_ptmin = cms.double(150.0),
gentopjet_etamax = cms.double(5.0),
doPhotons = cms.bool(False),
doMET = cms.bool(False),
doPV = cms.bool(False),
doGenInfo = cms.bool(True),
doAllGenParticles = cms.bool(True),
genparticle_source = cms.InputTag('genParticles'),
doTrigger = cms.bool(False),
doLumiInfo = cms.bool(False),
doGenJets = cms.bool(True),
genjet_sources = cms.vstring("ak5GenJets"),
genjet_ptmin = cms.double(10.0),
genjet_etamax = cms.double(5.0),
doRho = cms.untracked.bool(False),
)
process.p = cms.Path( process.genParticlesForJetsNoNu*
process.caTopTagGen*
process.MyNtuple)