6 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers')
and hasattr(process.mix.digitizers,
'hcal'):
7 hcaldigi = process.mix.digitizers.hcal
9 if hasattr(process,
'mixData'):
10 hcaldigi = process.mixData
13 raise Exception(
"CaloSamplesAnalyzer requires a mix module, none found!")
15 hcaldigi.debugCaloSamples = cms.bool(
True)
16 process.CaloSamplesAnalyzer = cms.EDAnalyzer(
"CaloSamplesAnalyzer",
24 hoZecotek = hcaldigi.hoZecotek,
25 hoHamamatsu = hcaldigi.hoHamamatsu,
27 hitsProducer = hcaldigi.hitsProducer,
28 TestNumbering = hcaldigi.TestNumbering,
29 CaloSamplesTag = cms.InputTag(cstag,
"HcalSamples"),
32 process.TFileService = cms.Service(
"TFileService",
33 fileName = cms.string(
"debugcalosamples.root")
36 process.debug_step = cms.Path(process.CaloSamplesAnalyzer)
37 process.schedule.extend([process.debug_step])