-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
HLT_IsoTrig_Data_New1.py
252 lines (211 loc) · 12.2 KB
/
HLT_IsoTrig_Data_New1.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
# Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step3 --conditions auto:run2_mc_GRun -n 10 --eventcontent FEVTDEBUGHLT,DQM -s RAW2DIGI,L1Reco,RECO,EI,VALIDATION,DQM --datatier GEN-SIM-RECO,DQM --customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1 --geometry Extended2015 --magField 38T_PostLS1 --conditions auto:run2_mc_GRun --no_exec --filein file:step2.root --fileout file:step3.root
import FWCore.ParameterSet.Config as cms
process = cms.Process('HLTNew1')
# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuration.EventContent.EventContent_cff')
process.load('SimGeneral.MixingModule.mixNoPU_cfi')
process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
process.load('Configuration.StandardSequences.MagneticField_cff')
process.load('Configuration.StandardSequences.Digi_cff')
process.load('Configuration.StandardSequences.SimL1Emulator_cff')
process.load('Configuration.StandardSequences.DigiToRaw_cff')
process.load('HLTrigger.Configuration.HLT_GRun_cff')
process.load('Configuration.StandardSequences.RawToDigi_cff')
process.load('Configuration.StandardSequences.L1Reco_cff')
process.load('Configuration.StandardSequences.Reconstruction_cff')
process.load('CommonTools.ParticleFlow.EITopPAG_cff')
process.load('Configuration.StandardSequences.Validation_cff')
process.load('DQMOffline.Configuration.DQMOfflineMC_cff')
process.load('Configuration.StandardSequences.EndOfProcess_cff')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
from Configuration.AlCa.autoCond import autoCond
process.GlobalTag.globaltag=autoCond['run1_data']
process.MessageLogger.cerr.FwkReport.reportEvery = 1000
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(10)
)
# Input source
process.source = cms.Source("PoolSource",
secondaryFileNames = cms.untracked.vstring(),
fileNames = cms.untracked.vstring(
'file:/afs/cern.ch/work/r/ruchi/9A19F942-E380-E111-8AEE-001D09F24303.root')
)
process.options = cms.untracked.PSet(
)
# Production Info
process.configurationMetadata = cms.untracked.PSet(
version = cms.untracked.string('$Revision: 1.19 $'),
annotation = cms.untracked.string('step3 nevts:10'),
name = cms.untracked.string('Applications')
)
# Output definition
#process.FEVTDEBUGHLToutput = cms.OutputModule("PoolOutputModule",
# splitLevel = cms.untracked.int32(0),
# eventAutoFlushCompressedSize = cms.untracked.int32(1048576),
# outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands,
# fileName = cms.untracked.string('file:step3.root'),
# dataset = cms.untracked.PSet(
# filterName = cms.untracked.string(''),
# dataTier = cms.untracked.string('GEN-SIM-RECO')
# )
#)
#process.DQMoutput = cms.OutputModule("PoolOutputModule",
# splitLevel = cms.untracked.int32(0),
# outputCommands = process.DQMEventContent.outputCommands,
# fileName = cms.untracked.string('file:step3_inDQM.root'),
# dataset = cms.untracked.PSet(
# filterName = cms.untracked.string(''),
# dataTier = cms.untracked.string('DQM')
# )
#)
process.TFileService = cms.Service("TFileService",
# fileName = cms.string('/uscmst1b_scratch/lpc1/3DayLifetime/guptar/Try_HLTIsoTrig_Modified.root')
fileName = cms.string('Try_HLTIsoTrig_New1.root')
)
process.load('Calibration.IsolatedParticles.isoTrig_cfi')
process.IsoTrigHB.Verbosity = 0
#process.IsoTrigHB.Verbosity = 201
process.IsoTrigHB.ProcessName = "HLTNew1"
process.IsoTrigHB.DoL2L3 = True
process.IsoTrigHB.DoTimingTree = False
process.IsoTrigHB.DoStudyIsol = True
process.IsoTrigHB.DoChgIsolTree = True
process.IsoTrigHB.DoMipCutTree = False
process.IsoTrigHE = process.IsoTrigHB.clone(
Triggers = ["HLT_IsoTrackHE"],
DoTimingTree = False)
#process.analyze = cms.EndPath(process.IsoTrigHB + process.IsoTrigHE)
process.load('Calibration.IsolatedParticles.isoTrackCalibration_cfi')
process.IsoTrackCalibration.Triggers = ["HLT_IsoTrackHE_v16", "HLT_IsoTrackHB_v15"]
process.IsoTrackCalibration.ProcessName = "HLTNew1"
process.IsoTrackCalibration.L1Filter = "hltL1sV0SingleJet"
process.IsoTrackCalibration.L2Filter = "hltIsolPixelTrackL2Filter"
process.IsoTrackCalibration.L3Filter = "L3Filter"
process.IsoTrackCalibration.Verbosity = 0
process.analyze = cms.EndPath(process.IsoTrigHB + process.IsoTrigHE + process.IsoTrackCalibration)
# Additional output definition
# Other statements
#process.mix.playback = True
#process.mix.digitizers = cms.PSet()
#for a in process.aliases: delattr(process, a)
#process.RandomNumberGeneratorService.restoreStateLabel=cms.untracked.string("randomEngineStateProducer")
process.load('Calibration.IsolatedParticles.HLT_IsoTrack_cff')
process.HLT_IsoTrackHE_v16 = cms.Path(process.HLTBeginSequence +
process.hltL1sV0SingleJet60 +
process.hltPreIsoTrackHE +
process.HLTDoLocalPixelSequence +
process.hltPixelLayerTriplets +
process.hltPixelTracks +
process.hltPixelVertices +
process.hltTrimmedPixelVertices +
process.hltIsolPixelTrackProdHE +
process.hltIsolPixelTrackL2FilterHE +
process.HLTDoFullUnpackingEgammaEcalSequence +
process.hltIsolEcalPixelTrackProdHE +
process.hltEcalIsolPixelTrackL2FilterHE +
process.HLTDoLocalStripSequence +
process.hltIter0PFLowPixelSeedsFromPixelTracks +
process.hltIter0PFlowCkfTrackCandidates +
process.hltIter0PFlowCtfWithMaterialTracks +
process.hltHcalITIPTCorrectorHE +
process.hltIsolPixelTrackL3FilterHE +
process.HLTEndSequence
)
process.HLT_IsoTrackHB_v15 = cms.Path(process.HLTBeginSequence +
process.hltL1sV0SingleJet60 +
process.hltPreIsoTrackHB +
process.HLTDoLocalPixelSequence +
process.hltPixelLayerTriplets +
process.hltPixelTracks +
process.hltPixelVertices +
process.hltTrimmedPixelVertices +
process.hltIsolPixelTrackProdHB +
process.hltIsolPixelTrackL2FilterHB +
process.HLTDoFullUnpackingEgammaEcalSequence +
process.hltIsolEcalPixelTrackProdHB +
process.hltEcalIsolPixelTrackL2FilterHB +
process.HLTDoLocalStripSequence +
process.hltIter0PFLowPixelSeedsFromPixelTracks +
process.hltIter0PFlowCkfTrackCandidates +
process.hltIter0PFlowCtfWithMaterialTracks +
process.hltHcalITIPTCorrectorHB +
process.hltIsolPixelTrackL3FilterHB +
process.HLTEndSequence
)
process.HLTSchedule = cms.Schedule( *(process.HLTriggerFirstPath,process.HLT_IsoTrackHE_v16,process.HLT_IsoTrackHB_v15,process.HLTriggerFinalPath))
## remove any instance of the FastTimerService
if 'FastTimerService' in process.__dict__:
del process.FastTimerService
# instrument the menu with the FastTimerService
process.load( "HLTrigger.Timer.FastTimerService_cfi" )
# print a text summary at the end of the job
process.FastTimerService.printJobSummary = True
# enable per-event DQM plots
process.FastTimerService.enableDQM = True
# enable per-module DQM plots
process.FastTimerService.enableDQMbyModule = True
# enable per-event DQM plots by lumisection
process.FastTimerService.enableDQMbyLumiSection = True
process.FastTimerService.dqmLumiSectionsRange = 2500 # lumisections (23.31 s)
# set the time resolution of the DQM plots
process.FastTimerService.dqmTimeRange = 100000. # ms
process.FastTimerService.dqmTimeResolution = 5. # ms
process.FastTimerService.dqmPathTimeRange = 10000. # ms
process.FastTimerService.dqmPathTimeResolution = 0.5 # ms
process.FastTimerService.dqmModuleTimeRange = 4000. # ms
process.FastTimerService.dqmModuleTimeResolution = 0.2 # ms
# set the base DQM folder for the plots
process.FastTimerService.dqmPath = "HLTNew1/TimerService"
process.FastTimerService.enableDQMbyProcesses = True
# save the DQM plots in the DQMIO format
process.dqmOutput = cms.OutputModule("DQMRootOutputModule",
fileName = cms.untracked.string("DQMNew1.root"),
outputCommands = cms.untracked.vstring(["drop *_mix_*_HLTNew1"])
#CastorDataFramesSorted, mix, , HLTNew1
)
process.FastTimerOutput = cms.EndPath( process.dqmOutput )
# Path and EndPath definitions
#process.digitisation_step = cms.Path(process.pdigi)
#process.L1simulation_step = cms.Path(process.SimL1Emulator)
#process.digi2raw_step = cms.Path(process.DigiToRaw)
process.raw2digi_step = cms.Path(process.RawToDigi)
process.L1Reco_step = cms.Path(process.L1Reco)
process.reconstruction_step = cms.Path(process.reconstruction)
process.eventinterpretaion_step = cms.Path(process.EIsequence)
process.prevalidation_step = cms.Path(process.prevalidation)
process.dqmoffline_step = cms.Path(process.DQMOffline)
process.validation_step = cms.EndPath(process.validation)
process.endjob_step = cms.EndPath(process.endOfProcess)
#process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
#process.DQMoutput_step = cms.EndPath(process.DQMoutput)
# Schedule definition
#process.schedule = cms.Schedule(process.raw2digi_step,process.L1Reco_step,process.reconstruction_step,process.eventinterpretaion_step,process.prevalidation_step,process.validation_step,process.dqmoffline_step,process.endjob_step,process.FEVTDEBUGHLToutput_step,process.DQMoutput_step)
#process.schedule = cms.Schedule(process.digitisation_step,process.L1simulation_step,process.digi2raw_step)
process.schedule = cms.Schedule(process.HLTSchedule)
#process.schedule.extend(process.HLTSchedule)
process.schedule.extend([process.raw2digi_step,process.L1Reco_step,process.reconstruction_step,process.eventinterpretaion_step])
process.schedule.extend([process.analyze])
#process.schedule.extend([process.endjob_step,process.FEVTDEBUGHLToutput_step])
process.schedule.extend([process.endjob_step])
process.schedule.extend([process.FastTimerOutput])
# customisation of the process.
# Automatic addition of the customisation function from HLTrigger.Configuration.customizeHLTforMC
#from HLTrigger.Configuration.customizeHLTforMC import customizeHLTforMC
#call to customisation function customizeHLTforMC imported from HLTrigger.Configuration.customizeHLTforMC
#process = customizeHLTforMC(process)
# Automatic addition of the customisation function from SLHCUpgradeSimulations.Configuration.postLS1Customs
from SLHCUpgradeSimulations.Configuration.postLS1Customs import *
process = customise_HLT(process)
process = customisePostLS1(process)
# Automatic addition of the customisation function from SimGeneral.MixingModule.fullMixCustomize_cff
from SimGeneral.MixingModule.fullMixCustomize_cff import setCrossingFrameOn
#call to customisation function setCrossingFrameOn imported from SimGeneral.MixingModule.fullMixCustomize_cff
process = setCrossingFrameOn(process)
# End of customisation functions