Skip to content

Commit

Permalink
python print migration TauAnalysis/MCEmbeddingTools
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlange6 committed Jul 19, 2018
1 parent 61c2452 commit f1bc638
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions TauAnalysis/MCEmbeddingTools/python/customisers.py
Original file line number Diff line number Diff line change
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 f1bc638

Please sign in to comment.