ATLAS Offline Software
DerivationTags.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 
3 import TopExamples
4 
5 #Moving the definition of ptags here, so we only have to modify them in a
6 #single place from now on
7 
8 DefaultMCSkimmedPtag = 'p2411'
9 DefaultMCUnskimmedPtag = 'p2413'
10 
11 
12 #https://twiki.cern.ch/twiki/bin/view/AtlasProtected/TopDerivations#Production_Caches
14  samples = TopExamples.grid.AvailableDatasets()
15 
16  keys = sorted(samples.keys())
17 
18  for i, s in enumerate(keys):
19  nsamples = len(samples[s].datasets)
20  txt = ''
21  if nsamples != 1:
22  txt = 's'
23  print(' (%d) %s (%s sample%s)' % (i, s, nsamples, txt))
24 
25  print('')
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 -> : ')
28 
29  txt_list = data.strip().split(',')
30  names = [keys[int(x)] for x in txt_list]
31 
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
37 
38  ptag = DefaultMCSkimmedPtag
39 
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:
44  ptag = input_data
45 
46  print(names, derivation, ptag)
47  return names, derivation, ptag
vtune_athena.format
format
Definition: vtune_athena.py:14
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
DerivationTags.InteractiveSubmission
def InteractiveSubmission()
Definition: DerivationTags.py:13
DerivationFramework::TriggerMatchingUtils::sorted
std::vector< typename T::value_type > sorted(T begin, T end)
Helper function to create a sorted vector from an unsorted one.
Muon::print
std::string print(const MuPatSegment &)
Definition: MuonTrackSteering.cxx:28
Trk::split
@ split
Definition: LayerMaterialProperties.h:38