ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger
TrigT1
L1Topo
L1TopoAlgorithms
scripts
testPythonAlg.py
Go to the documentation of this file.
1
#!/bin/env python
2
3
import
L1TopoAlgorithms.L1TopoAlgConfig
as
AlgConf
4
5
from
TriggerMenu.l1topo.TopoAlgos
import
SortingAlgo, DecisionAlgo
6
7
def
instantiateExample
():
8
9
alg = AlgConf.DeltaPhiIncl1(name =
'JetSize1DeltaPhiIncl_12'
, inputs = [
'SortedJetsSize1'
], outputs = [
'JetDeltaPhiNarrow'
,
'JetDeltaPhiWide'
])
10
alg.addgeneric(
'NumberLeading1'
, 4)
11
alg.addgeneric(
'NumberLeading2'
, 4)
12
alg.addvariable(
'MinET'
, 5)
13
alg.addvariable(
'DeltaPhiMin'
, 20, 0)
14
alg.addvariable(
'DeltaPhiMax'
, 27, 0)
15
alg.addvariable(
'DeltaPhiMin'
, 27, 1)
16
alg.addvariable(
'DeltaPhiMax'
, 32, 1)
17
18
19
def
main
():
20
sortalg = []
21
decalg = []
22
for
classname
in
dir(AlgConf):
23
klass = getattr(AlgConf,classname)
24
if
type
(klass)!=
type
(type):
continue
25
if
issubclass(klass,SortingAlgo): sortalg += [klass]
26
if
issubclass(klass,DecisionAlgo): decalg += [klass]
27
28
instantiateExample
()
29
30
return
0
31
32
33
if
__name__==
"__main__"
:
34
import
sys
35
main
()
36
#try:
37
# sys.exit(main())
38
#except Exception, e:
39
# print "Caught exception",e
40
# sys.exit(1)
testPythonAlg.instantiateExample
instantiateExample()
Definition
testPythonAlg.py:7
testPythonAlg.main
main()
Definition
testPythonAlg.py:19
type
Generated on
for ATLAS Offline Software by
1.14.0