14 samples = TopExamples.grid.AvailableDatasets()
16 keys =
sorted(samples.keys())
18 for i, s
in enumerate(keys):
19 nsamples = len(samples[s].datasets)
23 print(
' (%d) %s (%s sample%s)' % (i, s, nsamples, txt))
26 print(
'Type the numbers you want to submit, separated by a comma e.g. 0,1,2,3')
27 data =
input(
'Type it here -> : ')
29 txt_list = data.strip().
split(
',')
30 names = [keys[
int(x)]
for x
in txt_list]
32 derivation =
'DAOD_TOPQ1'
33 print(
'Which derivation would you like [{0}]? '.
format(derivation))
34 input_data =
input(
'Type it here -> : ')
35 if len(input_data) > 0:
36 derivation = input_data
38 ptag = DefaultMCSkimmedPtag
40 print(
'Which ptag would you like {0} = skimmed, {1} = not skimmed [{2}]'.
format(
41 DefaultMCSkimmedPtag, DefaultMCUnskimmedPtag, ptag))
42 input_data =
input(
'Type it here -> : ')
43 if len(input_data) > 0:
46 print(names, derivation, ptag)
47 return names, derivation, ptag