CMS 3D CMS Logo

customiseHcalLocal_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Customization for running on HCAL local run data
4 # - Call from cmsDriver.py with: `--customise DPGAnalysis/HcalNanoAOD/customise_hcalLocal_cff.customiseHcalLocal`
5 def customiseHcalLocal(process):
6  input_files = process.source.fileNames
7  max_events = process.maxEvents.input
8  process.source = cms.Source("HcalTBSource",
9  fileNames = input_files,
10  maxEvents = max_events,
11  firstLuminosityBlockForEachRun = cms.untracked.VLuminosityBlockID([]),
12  )
13  process.hcalDigis.InputLabel = cms.InputTag('source')
14  #process.hcalDigis.saveQIE10DataNSamples = cms.untracked.vint32(10)
15  #process.hcalDigis.saveQIE10DataTags = cms.untracked.vstring("ZDC")
16 
17  if hasattr(process, "hcalDigiSortedTableTask"):
18  process.hcalDigiSortedTable.nTS_HB = cms.untracked.uint32(8)
19  process.hcalDigiSortedTable.nTS_HE = cms.untracked.uint32(8)
20  process.hcalDigiSortedTable.nTS_HF = cms.untracked.uint32(6)
21  process.hcalDigiSortedTable.nTS_HO = cms.untracked.uint32(10)
22 
23  process.load("DPGAnalysis.HcalNanoAOD.hcalUMNioTable_cff")
24  if hasattr(process, "hcalNanoTask"):
25  process.hcalNanoTask.add(process.uMNioTable)
26  if hasattr(process, "hcalNanoDigiTask"):
27  process.hcalNanoDigiTask.add(process.uMNioTable)
28 
29  return process