CMS 3D CMS Logo

Functions
customiseHcalLocal_cff Namespace Reference

Functions

def customiseHcalLocal (process)
 

Function Documentation

◆ customiseHcalLocal()

def customiseHcalLocal_cff.customiseHcalLocal (   process)

Definition at line 5 of file customiseHcalLocal_cff.py.

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 
15  # Uncomment if ZDC digis (QIE10, nTS=10) are causing problems
16  #process.hcalDigis.saveQIE10DataNSamples = cms.untracked.vint32(10)
17  #process.hcalDigis.saveQIE10DataTags = cms.untracked.vstring("ZDC")
18 
19  if hasattr(process, "hcalDigiSortedTableTask"):
20  process.hcalDigiSortedTable.nTS_HB = cms.untracked.uint32(8)
21  process.hcalDigiSortedTable.nTS_HE = cms.untracked.uint32(8)
22  process.hcalDigiSortedTable.nTS_HF = cms.untracked.uint32(6)
23  process.hcalDigiSortedTable.nTS_HO = cms.untracked.uint32(10)
24 
25  process.load("DPGAnalysis.HcalNanoAOD.hcalUMNioTable_cff")
26  if hasattr(process, "hcalNanoTask"):
27  process.hcalNanoTask.add(process.uMNioTable)
28  if hasattr(process, "hcalNanoDigiTask"):
29  process.hcalNanoDigiTask.add(process.uMNioTable)
30 
31  return process
32