5 from optparse
import OptionParser
6 parser = OptionParser(usage =
"usage: %prog", version=
"%prog $Id: LArG4ValidationGenerate.py 583537 2014-02-15 21:17:29Z zmarshal $")
9 parser.add_option(
"--inputFile", dest=
"input", default=
None, help=
"select the input benevent file name (preferred over the particle gun)")
10 parser.add_option(
"--outputFile", dest=
"output", default=
'sp', help=
"select the output file name prefix (default: %default)")
11 parser.add_option(
"--geometry", dest=
"geometry", default=
'', help=
"select the geometry tag (leave empty for auto)")
12 parser.add_option(
"--condition", dest=
"condition", default=
'', help=
"select the condition tag (REQUIRED)")
13 parser.add_option(
"--physlist", dest=
"physlist", default=
'FTFP_BERT_ATL', help=
"select the physics list (leave empty for auto)")
14 parser.add_option(
"--etaMin", dest=
"etaMin", default=
'-5.5', help=
"particle gun: Minimum Eta (default: %default)")
15 parser.add_option(
"--etaMax", dest=
"etaMax", default=
'5.5', help=
"particle gun: Maximum Eta (default: %default)")
16 parser.add_option(
"--energyMin", dest=
"energyMin", default=
'20000', help=
"particle gun: particle Minimum energy (default: %default MeV)")
17 parser.add_option(
"--energyMax", dest=
"energyMax", default=
'500000', help=
"particle gun: particle Maximum energy (default: %default MeV)")
18 parser.add_option(
"--pid", dest=
"pid", default=
'11', help=
"particle gun: particle type (11=electron, 13=muon, 111=pi0 211=pi+, .., default: %default)")
19 parser.add_option(
"--configFile", dest=
"configFileName", default=
'', help=
"name of file with configuration (default: none)")
20 parser.add_option(
"--parameterize",dest=
"parameterize", default=0, type=int, help=
"parameteriziation level (0=off, default: %default)")
21 parser.add_option(
"--nevents", dest=
"nevents", default=-1, type=int, help=
"number of events to generate (default: all)")
22 parser.add_option(
"--firstEvent", dest=
"firstEvent", default=1, type=int, help=
"first event to generate (default: 1)")
23 parser.add_option(
"--runNumber", dest=
"runNumber", default=410000, type=int, help=
"run number (default: %default)")
24 parser.add_option(
"--simulate", dest=
"simulate", default=1, type=int, help=
"run simulation (default: %default)")
25 parser.add_option(
"--FSLib", dest=
"fsLibs", default=[], action=
"append", help=
"path to the frozen shower libraries (separate flag for each library must be used)")
26 parser.add_option(
"--fcalrings", dest=
"fcalrings", default=
None, type=float, help=
"use this to fire to FCAL fron face in order to see its structure (provide --fcalrings=4720) (default: none)")
27 parser.add_option(
"--outputLevel", dest=
"outLVL", default=3, type=int, help=
"outputLevel: 1=VERBOSE, 2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR" )
28 (options, args) = parser.parse_args()
30 exec = __file__.replace(
"LArG4ValidationGenerate.py",
"LArG4ValidationGenerateBody.py")
31 os.system(
'athena -c "options={:s}" {:s}'.
format(
str(options),exec))