ATLAS Offline Software
LArG4GenerateShowerLib.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 import os
5 # print command line for logging
6 from optparse import OptionParser
7 parser = OptionParser(usage = "usage: %prog", version="%prog $Id: LArG4GenerateShowerLib.py 767177 2016-08-10 08:49:45Z disimone $")
8 
9 parser.add_option("--inputEvtFileList", dest="inputevt", action="append", help="select the input file name")
10 parser.add_option("--inputStructFileList", dest="inputstruct", action="append", help="select the output file name")
11 parser.add_option("--nevents", dest="nevents", type=int, help="select the number of events to generate (default: all)")
12 parser.add_option("--runNumber", dest="runNumber", default=410000, type=int, help="run number (default: %default)")
13 parser.add_option("--skipevents", dest="skipevents", type=int, help="select the number of events to skip (default: 0)")
14 parser.add_option("--geometry", dest="geometry", help="select the geometry tag (default can be used)")
15 parser.add_option("--condition", dest="condition", help="select the condition tag (REQUIRED)")
16 parser.add_option("--physlist", dest="physlist", help="select the physics list (default can be used)")
17 parser.add_option("--parametrization", dest="parametrization", type=int, help="Choose the type of parametrisation. 0-FullSum. 2-DefaultATLAS (FrozenShowers are ON). It should be 0 for library generation.")
18 parser.add_option("--FSLib", dest="fsLibs", default=[], action="append", help="path to the frozen shower libraries (separate flag for each library must be used)")
19 parser.set_defaults(inputevt=[],inputstruct=[],nevents=-1,skipevents=0,geometry="",condition="",parametrization=0)
20 (options, args) = parser.parse_args()
21 
22 if len(options.inputevt) == 0 :
23  print ("No input, aborting")
24  import sys
25  sys.exit(1)
26 
27 if len(options.condition) == 0 :
28  print ("No condition tag set, aborting")
29 
30 exec = __file__.replace("LArG4GenerateShowerLib.py","LArG4GenerateShowerLibBody.py")
31 os.system('athena -c "options={:s}" {:s}'.format(str(options),exec))
vtune_athena.format
format
Definition: vtune_athena.py:14
str
Definition: BTagTrackIpAccessor.cxx:11