-
Notifications
You must be signed in to change notification settings - Fork 0
/
ttanaFast_cfg.py
99 lines (79 loc) · 3.93 KB
/
ttanaFast_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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
#process.load("MagneticField.Engine.volumeBasedMagneticField_cfi")
process.load("Configuration.StandardSequences.MagneticField_cff")
process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAny_cfi")
process.load("Configuration.StandardSequences.Geometry_cff")
#process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cff")
process.load("Geometry.CommonDetUnit.globalTrackingGeometry_cfi")
process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.GlobalTag.globaltag = 'IDEAL_V9::All'
#from TrackingTools.TrackAssociator.default_cfi import *
process.source = cms.Source("PoolSource",
debugFlag = cms.untracked.bool(False),
debugVebosity = cms.untracked.uint32(10),
skipEvents = cms.untracked.uint32(0),
fileNames = cms.untracked.vstring(
#'file:/home/cms/sckao/Top/CMSSW_2_1_4/src/PhysicsTools/PatAlgos/test/W1j_PatL1_exclu.root'
'file:/home/cms/sckao/Top/CMSSW_2_1_10/src/PhysicsTools/PatAlgos/test/PATLayer1OutputFast.root'
)
)
# replace the source files from a file list
import PhysicsTools.TtAnalysis.filelist_cff as fileList
process.source.fileNames = fileList.fileNames
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(82370)
)
process.MessageLogger = cms.Service("MessageLogger")
process.ttAna = cms.EDAnalyzer("TtAnalysis",
#TrackAssociatorParameterBlock,
#TrackAssociatorParameters,
debug = cms.untracked.bool(False),
btag = cms.untracked.bool(False),
needTree = cms.untracked.bool(False),
trigOn = cms.untracked.bool(False),
rootFileName = cms.untracked.string('/data/top/sckao/WJ_11pb_Et20.root'),
genParticles = cms.InputTag("genParticles"),
genJetSource = cms.InputTag("iterativeCone5GenJets"),
electronSource = cms.InputTag("selectedLayer1Electrons"),
photonSource = cms.InputTag("selectedLayer1Photons"),
metSource = cms.InputTag("selectedLayer1METs"),
muonSource = cms.InputTag("selectedLayer1Muons"),
jetSource = cms.InputTag("selectedLayer1Jets"),
triggerSource = cms.InputTag("TriggerResults","","HLT"),
#triggerSource = cms.InputTag("TriggerResults","","PAT"),
leptonFlavour = cms.string('muon'),
recoMuons = cms.untracked.string('paramMuons'),
recoAlgo = cms.untracked.string('zero'),
caloSource = cms.InputTag("towerMaker")
)
process.jetAna = cms.EDAnalyzer("JetAnalysis",
debug = cms.untracked.bool(False),
rootFileName = cms.untracked.string('ttj_JetEtAnalysis.root'),
genParticles = cms.InputTag("genParticles"),
genJetSource = cms.InputTag("iterativeCone5GenJets"),
electronSource = cms.InputTag("selectedLayer1Electrons"),
jetSource = cms.InputTag("selectedLayer1Jets"),
muonSource = cms.InputTag("selectedLayer1Muons"),
caloSource = cms.InputTag("towerMaker"),
recoMuons = cms.untracked.string('muons'),
)
process.muAna = cms.EDAnalyzer("MuonAnalysis",
debug = cms.untracked.bool(False),
rootFileName = cms.untracked.string('ttj_IsoMuAnalysis.root'),
genParticles = cms.InputTag("genParticles"),
genJetSource = cms.InputTag("iterativeCone5GenJets"),
electronSource = cms.InputTag("selectedLayer1Electrons"),
jetSource = cms.InputTag("selectedLayer1Jets"),
muonSource = cms.InputTag("selectedLayer1Muons"),
metSource = cms.InputTag("selectedLayer1METs"),
caloSource = cms.InputTag("towerMaker"),
recoMuons = cms.untracked.string('muons'),
)
process.p = cms.Path(process.ttAna + process.jetAna + process.muAna )
#process.ttAna.TrackAssociatorParameters.useEcal = False
#process.ttAna.TrackAssociatorParameters.useHcal = False
#process.ttAna.TrackAssociatorParameters.useCalo = True
#process.ttAna.TrackAssociatorParameters.useHO = False
#process.ttAna.TrackAssociatorParameters.useMuon = False