CMS 3D CMS Logo

customize_pfanalysis.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 def customize_step2(process):
4  process.load('SimGeneral.MixingModule.caloTruthProducer_cfi')
5  process.caloParticles.simHitCollections = cms.PSet(
6  hcal = cms.VInputTag(cms.InputTag('g4SimHits','HcalHits')),
7  ecal = cms.VInputTag(
8  cms.InputTag('g4SimHits','EcalHitsEE'),
9  cms.InputTag('g4SimHits','EcalHitsEB'),
10  cms.InputTag('g4SimHits','EcalHitsES'),
11  )
12  )
13  process.caloParticles.doHGCAL = False
14  process.caloParticles.allowDifferentSimHitProcesses = True
15  process.mix.digitizers.caloParticles = process.caloParticles
16  process.mix.digitizers.mergedtruth.ignoreTracksOutsideVolume = True
17  process.mix.digitizers.mergedtruth.allowDifferentSimHitProcesses = True
18  process.mix.digitizers.mergedtruth.select.signalOnlyTP = False
19 
20  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_simSiStripDigis_*_*')
21  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_simSiPixelDigis_*_*')
22  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_*_MergedCaloTruth_*')
23  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_*_MergedTrackTruth_*')
24  return process
25 
26 def customize_step3(process):
27  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_simSiStripDigis_*_*')
28  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_simSiPixelDigis_*_*')
29  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_*_MergedCaloTruth_*')
30  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_*_MergedTrackTruth_*')
31  process.FEVTDEBUGHLToutput.outputCommands.append('keep recoPFRecTracks_*_*_*')
32  process.FEVTDEBUGHLToutput.outputCommands.append('keep recoPFRecHits_*_*_*')
33  process.FEVTDEBUGHLToutput.outputCommands.append('keep recoGsfPFRecTracks_*_*_*')
34  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_particleFlowBlock_*_*')
35  return process
customize_pfanalysis.customize_step3
def customize_step3(process)
Definition: customize_pfanalysis.py:26
customize_pfanalysis.customize_step2
def customize_step2(process)
Definition: customize_pfanalysis.py:3