Skip to content

Commit

Permalink
fix event display config generation and problem also affecting T0 in …
Browse files Browse the repository at this point in the history
…config builder
  • Loading branch information
deguio committed Nov 17, 2015
1 parent 4051fd4 commit a8320ec
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Configuration/Applications/python/ConfigBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2199,13 +2199,7 @@ def prepare(self, doChecking = False):
self.pythonCfgCode +="#Setup FWK for multithreaded\n"
self.pythonCfgCode +="process.options.numberOfThreads=cms.untracked.uint32("+self._options.nThreads+")\n"
self.pythonCfgCode +="process.options.numberOfStreams=cms.untracked.uint32(0)\n"
#repacked version
if self._options.isRepacked:
self.pythonCfgCode +="\n"
self.pythonCfgCode +="from Configuration.Applications.ConfigBuilder import MassReplaceInputTag\n"
self.pythonCfgCode +="MassReplaceInputTag(process)\n"
MassReplaceInputTag(self.process)


# special treatment in case of production filter sequence 2/2
if self.productionFilterSequence:
self.pythonCfgCode +='# filter all path with the production filter sequence\n'
Expand All @@ -2225,6 +2219,14 @@ def prepare(self, doChecking = False):
# dump customise fragment
self.pythonCfgCode += self.addCustomise()

#repacked version
if self._options.isRepacked:
self.pythonCfgCode +="\n"
self.pythonCfgCode +="from Configuration.Applications.ConfigBuilder import MassReplaceInputTag\n"
self.pythonCfgCode +="MassReplaceInputTag(process)\n"
MassReplaceInputTag(self.process)


if self._options.runUnscheduled:
# prune and delete paths
#this is not supporting the blacklist at this point since I do not understand it
Expand Down
1 change: 1 addition & 0 deletions Configuration/DataProcessing/python/Impl/HeavyIonsRun2.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def visualizationProcessing(self, globalTag, **args):
"""
self._checkMINIAOD(**args)
self._setRepackedFlag(args)

customsFunction = self.visCustoms
if not 'customs' in args:
Expand Down
2 changes: 2 additions & 0 deletions Configuration/DataProcessing/python/Reco.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ def visualizationProcessing(self, globalTag, **args):
if 'customs' in args:
options.customisation_file=args['customs']

self._checkRepackedFlag(options, **args)

cb = ConfigBuilder(options, process = process, with_output = True, with_input = True)

cb.prepare()
Expand Down

0 comments on commit a8320ec

Please sign in to comment.