From f1bc6380dd48c344852efddd0f290e65b89d38d8 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 19 Jul 2018 13:29:44 +0200 Subject: [PATCH] python print migration TauAnalysis/MCEmbeddingTools --- TauAnalysis/MCEmbeddingTools/python/customisers.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/TauAnalysis/MCEmbeddingTools/python/customisers.py b/TauAnalysis/MCEmbeddingTools/python/customisers.py index 423869cb666e4..4398f505be666 100644 --- a/TauAnalysis/MCEmbeddingTools/python/customisers.py +++ b/TauAnalysis/MCEmbeddingTools/python/customisers.py @@ -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 @@ -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) @@ -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")) @@ -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__)