Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alex Pearce
Moore
Commits
56e3ae37
Commit
56e3ae37
authored
Aug 20, 2019
by
Olli Lupton
Browse files
Support PrFittedForwardTracks in Filter and CombineTracks wrappers.
parent
118fc9b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Hlt/Hlt1Conf/python/Hlt1Conf/algorithms.py
View file @
56e3ae37
...
...
@@ -13,9 +13,11 @@ from PyConf import configurable
from
Configurables
import
(
PrFilter__Track_v1
,
PrFilter__Track_v2
,
PrFilter__PrFittedForwardTracks
,
TrackCombiner
,
CombineTracks__2Body__Track_v2
,
CombineTracks__2Body__Track_v2__Dumper
,
CombineTracks__2Body__PrFittedForwardTracks
,
)
from
PyConf.components
import
Algorithm
...
...
@@ -84,6 +86,16 @@ def PrFilterV2Tracks(functor, **kwargs):
**
kwargs
)
@
configurable
def
FilterPrFittedForwardTracks
(
functor
,
**
kwargs
):
return
Algorithm
(
PrFilter__PrFittedForwardTracks
,
Code
=
functor
.
code
(),
Headers
=
functor
.
headers
(),
Factory
=
'FunctorFactory'
,
**
kwargs
)
@
configurable
def
CombineTracks
(
NBodies
=
2
,
CombinationCut
=
None
,
...
...
@@ -92,6 +104,7 @@ def CombineTracks(NBodies=2,
ChildDump
=
None
,
CombinationDump
=
None
,
VertexDump
=
None
,
PrTracks
=
False
,
**
kwargs
):
assert
NBodies
==
2
...
...
@@ -105,9 +118,14 @@ def CombineTracks(NBodies=2,
VertexDump_dict
=
parse
(
VertexDump
)
enable_dumper
=
len
(
ChildDump_dict
)
or
len
(
CombinationDump_dict
)
or
len
(
VertexDump_dict
)
if
PrTracks
:
AlgType
=
CombineTracks__2Body__PrFittedForwardTracks
elif
enable_dumper
:
AlgType
=
CombineTracks__2Body__Track_v2__Dumper
else
:
AlgType
=
CombineTracks__2Body__Track_v2
return
Algorithm
(
CombineTracks__2Body__Track_v2__Dumper
if
enable_dumper
else
CombineTracks__2Body__Track_v2
,
AlgType
,
VertexCut_Code
=
VertexCut
.
code
(),
VertexCut_Headers
=
VertexCut
.
headers
(),
CombinationCut_Code
=
CombinationCut
.
code
(),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment