From bea21cf108215618c94530e5dc60e27fd973d903 Mon Sep 17 00:00:00 2001 From: Norraphat Date: Fri, 24 Sep 2021 08:40:12 +0200 Subject: [PATCH] Fix HiMixNoPU --- Configuration/PyReleaseValidation/python/MatrixInjector.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Configuration/PyReleaseValidation/python/MatrixInjector.py b/Configuration/PyReleaseValidation/python/MatrixInjector.py index 0561195d28926..750c460b53c99 100644 --- a/Configuration/PyReleaseValidation/python/MatrixInjector.py +++ b/Configuration/PyReleaseValidation/python/MatrixInjector.py @@ -468,11 +468,14 @@ def prepare(self, mReader, directories, mode='init'): if 'pileup' in chainDict['nowmTasklist'][-1]['nowmIO']: chainDict['nowmTasklist'][-1]['MCPileup']=chainDict['nowmTasklist'][-1]['nowmIO']['pileup'] if '--pileup ' in s[2][index]: # catch --pileup (scenarion) and not --pileup_ (dataset to be mixed) => works also making PRE-MIXed dataset + pileupString = s[2][index].split()[s[2][index].split().index('--pileup')+1] processStrPrefix='PU_' # take care of pu overlay done with GEN-SIM mixing - if ( s[2][index].split()[ s[2][index].split().index('--pileup')+1 ] ).find('25ns') > 0 : + if pileupString.find('25ns') > 0 : processStrPrefix='PU25ns_' - elif ( s[2][index].split()[ s[2][index].split().index('--pileup')+1 ] ).find('50ns') > 0 : + elif pileupString.find('50ns') > 0 : processStrPrefix='PU50ns_' + elif 'nopu' in pileupString.lower(): + processStrPrefix='' if 'premix_stage2' in s[2][index] and '--pileup_input' in s[2][index]: # take care of pu overlay done with DIGI mixing of premixed events if s[2][index].split()[ s[2][index].split().index('--pileup_input')+1 ].find('25ns') > 0 : processStrPrefix='PUpmx25ns_'