1 |
kukartse |
1.1 |
import FWCore.ParameterSet.Config as cms
|
2 |
|
|
|
3 |
|
|
#-------------------------------------------------
|
4 |
|
|
# test cfg file for tqaflayer1 production from
|
5 |
|
|
# fullsim
|
6 |
|
|
#-------------------------------------------------
|
7 |
|
|
process = cms.Process("TEST")
|
8 |
|
|
|
9 |
|
|
## add message logger
|
10 |
|
|
process.load("FWCore.MessageLogger.MessageLogger_cfi")
|
11 |
|
|
process.MessageLogger.cerr.threshold = 'INFO'
|
12 |
|
|
|
13 |
|
|
#-------------------------------------------------
|
14 |
|
|
# process configuration
|
15 |
|
|
#-------------------------------------------------
|
16 |
|
|
|
17 |
|
|
## define input
|
18 |
|
|
process.source = cms.Source("PoolSource",
|
19 |
|
|
fileNames = cms.untracked.vstring(
|
20 |
|
|
# PAT test sample for 2.2.X
|
21 |
|
|
#'file:/afs/cern.ch/cms/PRS/top/cmssw-data/relval200-for-pat-testing/FullSimTTBar-2_2_X_2008-11-03-STARTUP_V7-AODSIM.100.root'
|
22 |
|
|
# PAT test sample for 2.1.X
|
23 |
|
|
#'file:/afs/cern.ch/cms/PRS/top/cmssw-data/relval200-for-pat-testing/FullSimTTBar-2_1_X_2008-07-08_STARTUP_V4-AODSIM.100.root'
|
24 |
|
|
# 2110 RelVal sample
|
25 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/0609A88C-F69A-DD11-AE42-001731AF6A8D.root',
|
26 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/08DB9384-FD9A-DD11-ACFD-003048678DD6.root',
|
27 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/12E0A583-F69A-DD11-9B03-003048678B38.root',
|
28 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/1AFBB319-F89A-DD11-B491-001A928116C8.root',
|
29 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/1CC22E59-069B-DD11-80F0-0018F3D09634.root',
|
30 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/1EDF3F84-F69A-DD11-BEDA-001A928116CC.root',
|
31 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/2864381E-F89A-DD11-9E2D-001A92810AAA.root',
|
32 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/28B5240A-FC9A-DD11-A178-003048678C3A.root',
|
33 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/2EB12E11-F89A-DD11-8D9A-003048678A7E.root',
|
34 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/362701E1-4A9B-DD11-A9A4-001A92971BDA.root',
|
35 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/446FE812-099B-DD11-B3CC-001A92810AEE.root',
|
36 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/447DCD63-069B-DD11-8E7A-001731AF6A89.root',
|
37 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/52349E81-FD9A-DD11-AF48-00304867918E.root',
|
38 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/62085221-F89A-DD11-8F60-001731AF6BD3.root',
|
39 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/6419021D-F89A-DD11-8F79-0018F3D096AE.root',
|
40 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/669F3A16-F89A-DD11-805E-003048679000.root',
|
41 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/6A476935-F99A-DD11-8D7C-003048678AF4.root',
|
42 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/76815C20-F89A-DD11-A082-001731230A77.root',
|
43 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/7AF9CE67-359B-DD11-8EC2-001731A283E1.root',
|
44 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/7E9AE61A-F89A-DD11-BEC2-0018F3D096C2.root',
|
45 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/8E423E15-F89A-DD11-BEA4-0030486790C0.root',
|
46 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/9097AC1D-F89A-DD11-937E-001A928116B2.root',
|
47 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/90B8C28C-019B-DD11-AD6C-003048678B1C.root',
|
48 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/9421B73D-F99A-DD11-97F1-0018F3D096C2.root',
|
49 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/984A721A-F89A-DD11-A351-0018F3D09708.root',
|
50 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/9CB1827D-F69A-DD11-B362-003048678B0C.root',
|
51 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/9CDF9A1C-F89A-DD11-A0D8-001A92810AD8.root',
|
52 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/A8D04310-099B-DD11-9A5D-001A928116E2.root',
|
53 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/ACFF381C-F89A-DD11-9ABB-001A92971B08.root',
|
54 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/B07E4F36-F99A-DD11-9C17-001A92971B9C.root',
|
55 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/B2D4E439-F99A-DD11-B2C8-0018F3D09650.root',
|
56 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/B42DD017-F89A-DD11-911E-001A92971B3A.root',
|
57 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/B88DDA1C-F89A-DD11-A438-0018F3D096D4.root',
|
58 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/C4CE1E88-F69A-DD11-8951-001A92811726.root',
|
59 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/CE04991C-F89A-DD11-BB9E-001A92971B28.root',
|
60 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/CEF0CA1C-F89A-DD11-ACDE-001A92971B8C.root',
|
61 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/D253EE10-FC9A-DD11-A409-001A92971ACE.root',
|
62 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/DA914143-F99A-DD11-8859-0017312B5A75.root',
|
63 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/DADC371C-F89A-DD11-8F20-001A92971B26.root',
|
64 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/E8A52D35-F99A-DD11-8A52-0018F3D09642.root',
|
65 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/FCFD2C27-009B-DD11-BAC9-001A92971B9C.root',
|
66 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0001/FECC8DE7-039B-DD11-89CD-003048769E65.root',
|
67 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0002/04FB6353-0B9B-DD11-9FDF-001731AF66A5.root',
|
68 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0002/1A7C8912-0D9B-DD11-92A4-00304876A13B.root',
|
69 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0002/2C2D0EF5-5F9B-DD11-BF60-0018F3D095FA.root',
|
70 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0002/2EA0E20C-099B-DD11-B19A-001A92971ACE.root',
|
71 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0002/381C3CF2-579B-DD11-8620-0018F3D09702.root',
|
72 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0002/427F0A35-489B-DD11-ACEA-003048767DF9.root'
|
73 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0002/747C2956-0B9B-DD11-B226-001731AF67EF.root',
|
74 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0002/7C492256-0B9B-DD11-8C48-001731AF66C1.root',
|
75 |
|
|
'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V7_v1/0002/F87A0845-0B9B-DD11-BB8A-003048678BAC.root'
|
76 |
|
|
)
|
77 |
|
|
)
|
78 |
|
|
|
79 |
|
|
## define maximal number of events to loop over
|
80 |
|
|
process.maxEvents = cms.untracked.PSet(
|
81 |
|
|
input = cms.untracked.int32(100)
|
82 |
|
|
)
|
83 |
|
|
|
84 |
|
|
## configure process options
|
85 |
|
|
process.options = cms.untracked.PSet(
|
86 |
|
|
wantSummary = cms.untracked.bool(False)
|
87 |
|
|
)
|
88 |
|
|
|
89 |
|
|
## configure geometry
|
90 |
|
|
process.load("Configuration.StandardSequences.Geometry_cff")
|
91 |
|
|
|
92 |
|
|
## configure conditions
|
93 |
|
|
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
|
94 |
|
|
process.GlobalTag.globaltag = cms.string('STARTUP_V7::All')
|
95 |
|
|
|
96 |
|
|
## load magnetic field
|
97 |
|
|
process.load("Configuration.StandardSequences.MagneticField_cff")
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
#-------------------------------------------------
|
101 |
|
|
# patTuple configuration
|
102 |
|
|
#-------------------------------------------------
|
103 |
|
|
|
104 |
|
|
## std sequence for tqaf layer1
|
105 |
|
|
process.load("TopQuarkAnalysis.TopObjectProducers.patTuple_cff")
|
106 |
|
|
|
107 |
|
|
## necessary fixes to run 2.2.X on 2.1.X data
|
108 |
|
|
from PhysicsTools.PatAlgos.tools.cmsswVersionTools import run22XonSummer08AODSIM
|
109 |
|
|
run22XonSummer08AODSIM(process)
|
110 |
|
|
|
111 |
|
|
## switch from clusters to rec hits in ECAL electron isolation - OBSOLETE
|
112 |
|
|
#from PhysicsTools.PatAlgos.recoLayer0.electronIsolation_cff import useElectronRecHitIsolation
|
113 |
|
|
#useElectronRecHitIsolation(process)
|
114 |
|
|
|
115 |
|
|
## switch from clusters to rec hits in ECAL photon isolation - OBSOLETE
|
116 |
|
|
#from PhysicsTools.PatAlgos.recoLayer0.photonIsolation_cff import usePhotonRecHitIsolation
|
117 |
|
|
#usePhotonRecHitIsolation(process)
|
118 |
|
|
|
119 |
|
|
#-------------------------------------------------
|
120 |
|
|
# process paths;
|
121 |
|
|
#-------------------------------------------------
|
122 |
|
|
|
123 |
|
|
## process path
|
124 |
|
|
process.p = cms.Path(process.patTuple)
|
125 |
|
|
|
126 |
|
|
|
127 |
|
|
#-------------------------------------------------
|
128 |
|
|
# pat tuple event content; first ALL objects
|
129 |
|
|
# are dropped in this process; then patTuple
|
130 |
|
|
# content is added
|
131 |
|
|
#-------------------------------------------------
|
132 |
|
|
|
133 |
|
|
## define pat tuple event content
|
134 |
|
|
from TopQuarkAnalysis.TopObjectProducers.patTuple_EventContent_cff import *
|
135 |
|
|
makePatTupleEventContent(process)
|
136 |
|
|
|
137 |
|
|
## change jet collection
|
138 |
|
|
from PhysicsTools.PatAlgos.tools.jetTools import *
|
139 |
|
|
|
140 |
|
|
switchJetCollection(process,
|
141 |
|
|
'sisCone5CaloJets', # jet collection; must be already in the event when patLayer0 sequence is executed
|
142 |
|
|
layers = [0,1], # if you're not running patLayer1, set 'layers=[0]'
|
143 |
|
|
runCleaner = "CaloJet", # =None if not to clean
|
144 |
|
|
doJTA = True, # run jet-track association & JetCharge
|
145 |
|
|
doBTagging = True, # run b-tagging
|
146 |
|
|
jetCorrLabel = ('SC5', 'Calo'), # example jet correction name; set to None for no JEC
|
147 |
|
|
doType1MET = True # recompute Type1 MET using these jets
|
148 |
|
|
)
|
149 |
|
|
|
150 |
|
|
#-------------------------------------------------
|
151 |
|
|
# process output; first the event selection is
|
152 |
|
|
# defined: only those events that have passed the
|
153 |
|
|
# full production path are selected and written
|
154 |
|
|
# to file; the event content has been defined
|
155 |
|
|
# above
|
156 |
|
|
#-------------------------------------------------
|
157 |
|
|
|
158 |
|
|
## define event selection
|
159 |
|
|
process.EventSelection = cms.PSet(
|
160 |
|
|
SelectEvents = cms.untracked.PSet(
|
161 |
|
|
SelectEvents = cms.vstring('p')
|
162 |
|
|
)
|
163 |
|
|
)
|
164 |
|
|
|
165 |
|
|
## configure output module
|
166 |
|
|
process.out = cms.OutputModule("PoolOutputModule",
|
167 |
|
|
process.EventSelection,
|
168 |
|
|
process.patTupleEventContent,
|
169 |
|
|
verbose = cms.untracked.bool(True),
|
170 |
|
|
dropMetaDataForDroppedData = cms.untracked.bool(True),
|
171 |
|
|
## fileName = cms.untracked.string('/afs/cern.ch/user/r/rwolf/pccmsuhh06/testPatTuple_recHits_221.root')
|
172 |
|
|
fileName = cms.untracked.string('testPatTuple.root')
|
173 |
|
|
)
|
174 |
|
|
|
175 |
|
|
|
176 |
|
|
#-------------------------------------------------
|
177 |
|
|
# output paths; in order not to write the
|
178 |
|
|
# persistent output to file comment the output
|
179 |
|
|
# path
|
180 |
|
|
#-------------------------------------------------
|
181 |
|
|
|
182 |
|
|
## output
|
183 |
|
|
process.outpath = cms.EndPath(process.out)
|
184 |
|
|
|
185 |
kukartse |
1.2 |
## test unrolled config
|
186 |
|
|
#outfile = open('output_test.py','w')
|
187 |
|
|
#print >> outfile,process.dumpPython()
|
188 |
|
|
#outfile.close()
|