for ( run, version ) in [ ( 'B', '_ver2' ), ( 'C', '' ), ( 'D', '' ), ( 'E', '' ), ( 'F', '' ), ( 'G', '' ), ( 'H', '' ) ]:
    runTag = 'Run2016' + run + '_25Oct2019' + version
    for pd in allSamples:
        dirs[ pd + "_Run2016" + run + version ] = [ pd + "_" + runTag ]

for pd in allSamples:
    merge( pd, 'Run2016BCD',    [ 'Run2016B_ver2', 'Run2016C', 'Run2016D'           ], dirs )
    merge( pd, 'Run2016BCDEFG', [ 'Run2016BCD', 'Run2016E', 'Run2016F', 'Run2016G'  ], dirs )
    merge( pd, 'Run2016',       [ 'Run2016BCDEFG', 'Run2016H' ], dirs )

for key in dirs:
    dirs[key] = [ os.path.join( data_directory_, postprocessing_directory_, dir ) for dir in dirs[key] ]

allSamples_Data25ns  = []
for pd in allSamples:
    vars()[ pd + '_Run2016' ] = getDataSample( pd, 'Run2016', lumi*1000, dirs, redirector=redirector, fromDPM=fromDPM )
    allSamples_Data25ns += [ vars()[ pd + '_Run2016' ] ]

Run2016      = Sample.combine( "Run2016", allSamples_Data25ns, texName = "Data" )
Run2016.lumi = lumi*1000

for s in allSamples_Data25ns:
  s.color   = ROOT.kBlack
  s.isData  = True


if __name__ == "__main__":

    def get_parser():
        ''' Argument parser for post-processing module.
        '''
for key in dirs:
    dirs[key] = [
        os.path.join(data_directory_, postprocessing_directory_, dir)
        for dir in dirs[key]
    ]

allSamples_Data25ns = []
allSamplesB_Data25ns = []
allSamplesC_Data25ns = []
allSamplesD_Data25ns = []
allSamplesE_Data25ns = []
allSamplesF_Data25ns = []
for pd in allSamples:
    vars()[pd + '_Run2017'] = getDataSample(pd,
                                            'Run2017',
                                            lumi * 1000,
                                            dirs,
                                            redirector=redirector,
                                            fromDPM=fromDPM)
    vars()[pd + '_Run2017B'] = getDataSample(pd,
                                             'Run2017B',
                                             lumi * 1000,
                                             dirs,
                                             redirector=redirector,
                                             fromDPM=fromDPM)
    vars()[pd + '_Run2017C'] = getDataSample(pd,
                                             'Run2017C',
                                             lumi * 1000,
                                             dirs,
                                             redirector=redirector,
                                             fromDPM=fromDPM)
    vars()[pd + '_Run2017D'] = getDataSample(pd,
Beispiel #3
0
dirs = {}
for ( run, version ) in [ ( 'B', '' ), ( 'C', '' ), ( 'D', '' ), ( 'E', '' ), ( 'F', '' ) ]:
    runTag = 'Run2017' + run + '_25Oct2019' + version
    for pd in allSamples:
        dirs[ pd + "_Run2017" + run + version ] = [ pd + "_" + runTag ]

for pd in allSamples:
    merge( pd, 'Run2017',    [ 'Run2017B', 'Run2017C', 'Run2017D', 'Run2017E', 'Run2017F' ], dirs )
    merge( pd, 'Run2017CDE', [ 'Run2017C', 'Run2017D', 'Run2017E' ], dirs )

for key in dirs:
    dirs[key] = [ os.path.join( data_directory, postprocessing_directory, dir ) for dir in dirs[key] ]

allSamples_Data25ns  = []
for pd in allSamples:
    vars()[ pd + '_Run2017' ] = getDataSample( pd, 'Run2017', lumi*1000, dirs, fromDPM=False )
    allSamples_Data25ns += [ vars()[ pd + '_Run2017' ] ]

Run2017      = Sample.combine( "Run2017", allSamples_Data25ns, texName = "Data" )
Run2017.lumi = lumi*1000

for s in allSamples_Data25ns:
    s.color   = ROOT.kBlack
    s.isData  = True


if __name__ == "__main__":

    def get_parser():
        ''' Argument parser for post-processing module.
        '''