7 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers')
and hasattr(process.mix.digitizers,
'hcal'):
8 hcaldigi = process.mix.digitizers.hcal
10 if hasattr(process,
'mixData'):
11 hcaldigi = process.mixData
14 raise Exception(
"CaloSamplesAnalyzer requires a mix module, none found!")
16 hcaldigi.debugCaloSamples = cms.bool(
True)
17 process.CaloSamplesAnalyzer = cms.EDAnalyzer(
"CaloSamplesAnalyzer",
25 hoZecotek = hcaldigi.hoZecotek,
26 hoHamamatsu = hcaldigi.hoHamamatsu,
28 hitsProducer = hcaldigi.hitsProducer,
29 TestNumbering = hcaldigi.TestNumbering,
30 CaloSamplesTag = cms.InputTag(cstag,
"HcalSamples"),
33 process.TFileService = cms.Service(
"TFileService",
34 fileName = cms.string(
"debugcalosamples.root")
37 process.debug_step = cms.Path(process.CaloSamplesAnalyzer)
38 process.schedule.extend([process.debug_step])