예제 #1
0
data_Run2011B_MuRm = cfg.DataComponent(name='data_Run2011B_MuRm',
                                       files=[],
                                       intLumi=0.,
                                       triggers=[])

aliases = {
    '/DYJets.*START42.*': 'DYJetsMuRm',
    '/WJetsToLNu.*START42.*': 'WJets',
    '/DoubleMu/Run2011A-16Jan2012-v1/AOD.*': 'data_Run2011A_MuRm',
    '/DoubleMu/Run2011B-16Jan2012-v1/AOD.*': 'data_Run2011B_MuRm',
}

allsamples = [DYJetsMuRm, WJets, data_Run2011A_MuRm, data_Run2011B_MuRm]

# connect( allsamples, '%TAUMU_%MuRm_ColinSep28', 'tauMu.*root', aliases, cache=True, verbose=False)
connect(allsamples,
        '%TAUMU_MuRm_rlxTauIso_ColinOct6',
        'tauMu.*root',
        aliases,
        cache=True,
        verbose=False)

MC_list = [DYJetsMuRm, WJets]
data_list_2011 = [data_Run2011A_MuRm, data_Run2011B_MuRm]
embed_list = []

for mc in MC_list:
    mc.triggers = mc_triggers
for data in data_list_2011:
    data.json = jsonPick(data.files[0])
예제 #2
0
allsamples.extend( embed_list )


print 'start connecting... \n\n'

connect( allsamples, '%H2TauTau_tauEle_22oct_PG', 'tauEle.*root', aliases, 
         cache=True, verbose=False)

from CMGTools.H2TauTau.proto.samples.density import *
print
print 'density test'
density (allsamples)
print

print
for sam in MC_list:
    print 'setting trigger', mc_triggers,'for sample',sam.name
    sam.triggers = mc_triggers
    sam.splitFactor = splitFactor (sam)
for data in data_list:
    data.triggers = data_triggers
    print 'setting trigger', data.triggers,'for sample',data.name
    data.json = jsonPick (data.files[0])
    print 'setting json', data.json, 'for sample', data.name
    data.splitFactor = splitFactor (data)
for emb in embed_list:
    emb.json = jsonPick (data.files[0])
    print 'setting json', emb.json, 'for sample', emb.name
    emb.splitFactor = splitFactor (emb)
print