logger = logging.getLogger(__name__)

logger.info("Loading data samples from directory %s",
            os.path.join(data_directory_, postprocessing_directory_))

allSamples = ['SingleMuon', 'SingleElectron']
lumi = 41.53

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 = []
allSamplesB_Data25ns = []
allSamplesC_Data25ns = []
allSamplesD_Data25ns = []
allSamplesE_Data25ns = []
allSamplesF_Data25ns = []
for pd in allSamples:
Ejemplo n.º 2
0
            os.path.join(data_directory, postprocessing_datadirectory2016))

allSamples = [
    'MuonEG', 'DoubleMuon', 'DoubleEG', 'SingleMuon', 'SingleElectron'
]
lumi = 35.92

dirs = {}
for (run, version) in [('B', '_ver2'), ('C', ''), ('D', ''), ('E', ''),
                       ('F', ''), ('G', ''), ('H', '')]:
    runTag = 'Run2016' + run + '_05Feb2018' + 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_datadirectory2016, dir)
        for dir in dirs[key]
    ]

allSamples_Data25ns = []
for pd in allSamples:
    vars()[pd + '_Run2016'] = getSample(pd, 'Run2016', lumi * 1000, dirs)
    allSamples_Data25ns += [vars()[pd + '_Run2016']]
    logger = logging.getLogger(__name__)

logger.info("Loading data samples from directory %s",
            os.path.join(data_directory_, postprocessing_directory_))

allSamples = ['DoubleMuon']
lumi = 59.74

dirs = {}
for (run, version) in [('A', ''), ('B', ''), ('C', ''), ('D', '')]:
    runTag = 'Run2018' + run + '_25Oct2019' + version
    for pd in allSamples:
        dirs[pd + "_Run2018" + run + version] = [pd + "_" + runTag]

for pd in allSamples:
    merge(pd, 'Run2018ABC', ['Run2018A', 'Run2018B', 'Run2018C'], dirs)
    merge(pd, 'Run2018', ['Run2018ABC', 'Run2018D'], 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 + '_Run2018'] = getDataSample(pd,
                                            'Run2018',
                                            lumi * 1000,
                                            dirs,
                                            redirector=redirector,