Skip to content

Commit

Permalink
Merge pull request #23847 from davidlange6/printMig_180718T4_TauAnaly…
Browse files Browse the repository at this point in the history
…sis_MCEmbeddingTools

Print function migration for TauAnalysis_MCEmbeddingTools
  • Loading branch information
cmsbuild committed Jul 20, 2018
2 parents a2765e5 + f1bc638 commit 73fbf83
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions TauAnalysis/MCEmbeddingTools/python/customisers.py
Expand Up @@ -2,6 +2,7 @@


### Various set of customise functions needed for embedding
from __future__ import print_function
import FWCore.ParameterSet.Config as cms
from FWCore.ParameterSet.Utilities import cleanUnscheduled

Expand Down Expand Up @@ -223,7 +224,7 @@ def customiseGenerator(process, changeProcessname=True,reselect=False):

process.load('TauAnalysis.MCEmbeddingTools.EmbeddingVertexCorrector_cfi')
process.VtxSmeared = process.VtxCorrectedToInput.clone()
print "Correcting Vertex in genEvent to one from input. Replaced 'VtxSmeared' with the Corrector."
print("Correcting Vertex in genEvent to one from input. Replaced 'VtxSmeared' with the Corrector.")

# Remove BeamSpot Production, use the one from selected data instead.
process.reconstruction.remove(process.offlineBeamSpot)
Expand Down Expand Up @@ -344,7 +345,7 @@ def customiseMerging(process, changeProcessname=True,reselect=False):
if "MERGE" in akt_manimod.steps:
#if akt_manimod.module_name != 'particleFlowTmp':
# continue
print akt_manimod.module_name
print(akt_manimod.module_name)
mergCollections_in = cms.VInputTag()
for instance in akt_manimod.instance:
mergCollections_in.append(cms.InputTag(akt_manimod.merge_prefix+akt_manimod.module_name,instance,"SIMembedding"))
Expand Down Expand Up @@ -483,7 +484,7 @@ def search_for_tags(pset):
else:
change_tags_process(pset[key])
else:
print "must be python dict not a ",type(pset)
print("must be python dict not a ",type(pset))

for module in process.producers_():
search_for_tags(getattr(process, module).__dict__)
Expand Down

0 comments on commit 73fbf83

Please sign in to comment.