CMS 3D CMS Logo

Functions
customize_pfanalysis Namespace Reference

Functions

def customize_ecalclustering_caloparticle (process)
 
def customize_step2 (process)
 
def customize_step3 (process)
 

Function Documentation

◆ customize_ecalclustering_caloparticle()

def customize_pfanalysis.customize_ecalclustering_caloparticle (   process)

Definition at line 3 of file customize_pfanalysis.py.

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 = False
15  process.mix.digitizers.caloParticles = process.caloParticles
16  process.mix.digitizers.mergedtruth.ignoreTracksOutsideVolume = False
17  process.mix.digitizers.mergedtruth.allowDifferentSimHitProcesses = False
18  process.mix.digitizers.mergedtruth.select.signalOnlyTP = True
19 
20  process.PREMIXRAWoutput.outputCommands.append('keep *_*_MergedCaloTruth_*')
21  return process
22 
def customize_ecalclustering_caloparticle(process)

◆ customize_step2()

def customize_pfanalysis.customize_step2 (   process)

Definition at line 23 of file customize_pfanalysis.py.

23 def customize_step2(process):
24  process.load('SimGeneral.MixingModule.caloTruthProducer_cfi')
25  process.caloParticles.simHitCollections = cms.PSet(
26  hcal = cms.VInputTag(cms.InputTag('g4SimHits','HcalHits')),
27  ecal = cms.VInputTag(
28  cms.InputTag('g4SimHits','EcalHitsEE'),
29  cms.InputTag('g4SimHits','EcalHitsEB'),
30  cms.InputTag('g4SimHits','EcalHitsES'),
31  )
32  )
33  process.caloParticles.doHGCAL = False
34  process.caloParticles.allowDifferentSimHitProcesses = True
35  process.mix.digitizers.caloParticles = process.caloParticles
36  process.mix.digitizers.mergedtruth.ignoreTracksOutsideVolume = True
37  process.mix.digitizers.mergedtruth.allowDifferentSimHitProcesses = True
38  process.mix.digitizers.mergedtruth.select.signalOnlyTP = False
39 
40  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_simSiStripDigis_*_*')
41  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_simSiPixelDigis_*_*')
42  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_*_MergedCaloTruth_*')
43  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_*_MergedTrackTruth_*')
44  return process
45 

◆ customize_step3()

def customize_pfanalysis.customize_step3 (   process)

Definition at line 46 of file customize_pfanalysis.py.

46 def customize_step3(process):
47  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_simSiStripDigis_*_*')
48  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_simSiPixelDigis_*_*')
49  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_*_MergedCaloTruth_*')
50  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_*_MergedTrackTruth_*')
51  process.FEVTDEBUGHLToutput.outputCommands.append('keep recoPFRecTracks_*_*_*')
52  process.FEVTDEBUGHLToutput.outputCommands.append('keep recoPFRecHits_*_*_*')
53  process.FEVTDEBUGHLToutput.outputCommands.append('keep recoGsfPFRecTracks_*_*_*')
54  process.FEVTDEBUGHLToutput.outputCommands.append('keep *_particleFlowBlock_*_*')
55  process.FEVTDEBUGHLToutput.outputCommands.append('keep recoTracks_standAloneMuons_*_*')
56  process.FEVTDEBUGHLToutput.outputCommands.append('keep recoTrackExtras_standAloneMuons_*_*')
57  process.FEVTDEBUGHLToutput.outputCommands.append('keep recoMuons_*_*_*')
58  process.FEVTDEBUGHLToutput.outputCommands.append('keep recoTracks_*_*_*')
59  process.FEVTDEBUGHLToutput.outputCommands.append('keep recoGsfTracks_*_*_*')
60  process.FEVTDEBUGHLToutput.outputCommands.append('keep recoPFBlocks_*_*_*')
61 
62  return process
63