ATLAS Offline Software
LArCalorimeter
LArG4
LArG4Validation
share
AODElectronContainerReader.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
#
4
# python script for launching AODReader job
5
#
6
7
__version__ =
'$Revision: 484742 $'
8
__author__ =
'Radist Morse radist.morse@gmail.com'
9
__doc__ =
'Script for launching AODReader job'
10
11
import
os
12
from
sys
import
exit
13
from
os.path
import
isfile
14
15
from
optparse
import
OptionParser
16
parser = OptionParser(usage =
"usage: %prog [options] input1 [...]"
, version=
"%prog v0.0.1 $Id: AODElectronContainerReader.py,v 0.1 2010-11-10 13:00:12 Morse Exp $"
)
17
18
parser.add_option(
"-o"
,
"--outputFile"
,dest=
"output"
,default=
'ntuple.root'
,help=
"select the output file name (default: %default)"
)
19
20
(options, args) = parser.parse_args()
21
22
for
arg
in
args :
23
if
(
not
isfile (arg)) :
24
print
(
"ERROR: wrong input: nonexistent file:"
,arg)
25
exit
(1)
26
27
exec = __file__.replace(
"AODElectronContainerReader.py"
,
"AODElectronContainerReaderBody.py"
)
28
os.system(
'athena -c "args={:s}" {:s}'
.
format
(
str
(args),exec))
vtune_athena.format
format
Definition:
vtune_athena.py:14
calibdata.exit
exit
Definition:
calibdata.py:236
str
Definition:
BTagTrackIpAccessor.cxx:11
Generated on Sun Dec 22 2024 21:06:57 for ATLAS Offline Software by
1.8.18