test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
AddCaloSamplesAnalyzer Namespace Reference

Functions

def customise
 

Function Documentation

def AddCaloSamplesAnalyzer.customise (   process)

Definition at line 3 of file AddCaloSamplesAnalyzer.py.

3 
4 def customise(process):
5  if hasattr(process,'mix') and hasattr(process.mix,'digitizers') and hasattr(process.mix.digitizers,'hcal'):
6  process.mix.digitizers.hcal.debugCaloSamples = cms.bool(True)
7 
8  from SimCalorimetry.HcalSimProducers.hcalUnsuppressedDigis_cfi import hcalSimBlock
9  process.CaloSamplesAnalyzer = cms.EDAnalyzer("CaloSamplesAnalyzer",
10  hcalSimBlock,
11  CaloSamplesTag = cms.InputTag("mix","HcalSamples"),
12  )
13 
14  process.TFileService = cms.Service("TFileService",
15  fileName = cms.string("debugcalosamples.root")
16  )
17 
18  process.debug_step = cms.Path(process.CaloSamplesAnalyzer)
19  process.schedule.extend([process.debug_step])
20 
21  return process