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  #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
30