Skip to content
Snippets Groups Projects
Commit a4b0a261 authored by Gitlab CI's avatar Gitlab CI Committed by Clara Landesa Gomez
Browse files

pre-commit fixes

patch generated by https://gitlab.cern.ch/lhcb/Analysis/-/jobs/35389805
parent 963e53fd
No related branches found
No related tags found
1 merge request!1044Draft: Functor Collector with RecSummary information
Pipeline #6756495 passed
......@@ -1214,11 +1214,11 @@ def ParticleID(extra_info: bool = False) -> FunctorCollection:
def RecSummary(extra_info: bool = False) -> FunctorCollection:
"""
Event-level collection of RecSummary information. Using RECSUMMARY_INFO functor.
Event-level collection of RecSummary information. Using RECSUMMARY_INFO functor.
By default, adds nPVs and number of different types of Tracks.
Args:
extra_info (bool, optional) : If True, stores hits and Clusters in subdetectors. Defaults to False.
extra_info (bool, optional) : If True, stores hits and Clusters in subdetectors. Defaults to False.
"""
rec_summary = get_rec_summary()
......@@ -1242,14 +1242,13 @@ def RecSummary(extra_info: bool = False) -> FunctorCollection:
]
if extra_info:
list_recsummary_variables+=additional_recsummary_variables
list_recsummary_variables += additional_recsummary_variables
functor_collection = FunctorCollection(
{
recsummary_variable: F.VALUE_OR(-1) @ F.RECSUMMARY_INFO(
rec_summary, recsummary_variable
)
for recsummary_variable in list_recsummary_variables
recsummary_variable: F.VALUE_OR(-1)
@ F.RECSUMMARY_INFO(rec_summary, recsummary_variable)
for recsummary_variable in list_recsummary_variables
}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment