ATLAS Offline Software
AtlCoolTrigger.py
Go to the documentation of this file.
1 #!/bin/env python
2 
3 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
4 
5 from optparse import OptionParser
6 from TrigConfStorage.AtlCoolTriggerTool import AtlCoolTriggerTool
7 
8 if __name__ == '__main__':
9 
10  p = OptionParser(usage="usage: %prog options", version="1.1",
11  epilog="this program uses the cool database as source of information")
12 
13  p.add_option( "-r",
14  "--run",
15  default = "-",
16  dest = "runlist",
17  metavar='RUNS',
18  help = "A list of run ranges e.g. '1-4,6,17-23,89-'" )
19 
20  p.add_option( "-c",
21  "--dbconn",
22  default = "CONDBR2",
23  dest = "db",
24  help = "The cool db [default: CONDBR2]" )
25 
26  p.add_option( "-t",
27  "--time",
28  action="store_true",
29  default=False,
30  dest = "time",
31  help = "Print the start time of the run" )
32 
33  p.add_option( "-m",
34  "--menu",
35  action='store_true',
36  dest = "menu",
37  help = "Print menu" )
38 
39  p.add_option( "--l1",
40  action='store_true',
41  default=False,
42  dest = "l1",
43  help = "Only for l1 (in conjunction with -m, -x, or -d)" )
44 
45  p.add_option( "--l2",
46  action='store_true',
47  default=False,
48  dest = "l2",
49  help = "Only for l2 (in conjunction with -m, -x, or -d)" )
50 
51  p.add_option( "--ef",
52  action='store_true',
53  default=False,
54  dest = "ef",
55  help = "Only for ef (in conjunction with -m, -x, or -d)" )
56 
57  p.add_option( "-s",
58  "--streams",
59  action = "store_true",
60  default=False,
61  dest = "streams",
62  help = "Print the streams in the menu" )
63 
64  p.add_option( "-v",
65  "--verbose",
66  action='count',
67  default=0,
68  dest = "verbosity",
69  help = "Set verbosity [-v,-vv,...]" )
70 
71  p.add_option( "-p",
72  "--processing",
73  default="",
74  dest = "processing",
75  help = "Returns psk string for processing [possible 'hlt']" )
76 
77 
78  (opt, args) = p.parse_args()
79 
80  AtlCoolTrigger = AtlCoolTriggerTool(options=opt)
81 
82  AtlCoolTrigger.execute()