ATLAS Offline Software
PhysicsAnalysis
TopPhys
xAOD
TopExamples
scripts
10AmiYield.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
3
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
4
import
TopExamples.ami
5
import
TopExamples.logger
as
logger
6
import
sys
7
8
if
len(sys.argv) != 2:
9
print
'Use like this:'
10
print
'python %s %s'
% (sys.argv[0],
'mc15_13TeV.410000.*.AOD.e3698_s2608_s2183_r6630_r6264'
)
11
print
sys.exit(1)
12
13
nameYields = TopExamples.ami.askAmi(sys.argv[1])
14
15
if
len(nameYields) > 0:
16
print
logger.OKBLUE +
'%80s %10s'
% (
'Dataset name'
,
'Yield'
) + logger.ENDC
17
for
k
in
sorted
(nameYields.keys()):
18
print
'%80s %10d'
% (k, nameYields[k])
19
else
:
20
print
'No datasets found'
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.
Generated on Thu Jul 4 2024 21:09:40 for ATLAS Offline Software by
1.8.18