Skip to content
Snippets Groups Projects
Commit c83bf764 authored by Sevda Esen's avatar Sevda Esen
Browse files

fix allen banks for the dumper

parent cd3daffe
No related branches found
No related tags found
1 merge request!2736Draft: clean up and simplify the config
......@@ -15,7 +15,6 @@ from PyConf.Algorithms import (
FromV2TrackV1Track, fromV3TrackV1Track,
LHCb__Converters__Track__v2__fromV1TrackV2Track as fromV1TrackV2Track)
from RecoConf.core_algorithms import make_unique_id_generator
from Moore.streams import bank_types_for_detectors
@configurable
......@@ -383,12 +382,13 @@ def combine_raw_banks_with_MC_data_for_standalone_Allen_checkers(
from PyConf.application import default_raw_event, mdf_writer
from PyConf.Algorithms import RawEventCombiner
from AllenCore.gaudi_allen_generator import make_transposed_raw_banks
from Moore.streams import bank_types_for_detectors, DETECTORS
subdetectors = ["VP", "FTCluster", "Muon", "ODIN", "Calo", "EcalPacked"]
subdetectors = ["VP", "FT", "Muon", "Calo"]
if with_ut:
subdetectors += ["UT"]
allen_banks = make_transposed_raw_banks(
bank_types_for_detectors(subdetectors))
allen_banks = make_transposed_raw_banks(subdetectors)
algs = [allen_banks]
trackerDumper = tracker_dumper(dump_to_root=False, with_ut=with_ut)
......@@ -397,8 +397,7 @@ def combine_raw_banks_with_MC_data_for_standalone_Allen_checkers(
algs.append(pvDumper)
detector_parts = [
default_raw_event([bt])
for bt in bank_types_for_detectors(subdetectors)
default_raw_event([bt]) for bt in bank_types_for_detectors()
]
# get only unique elements while preserving order
detector_parts = list(dict.fromkeys(detector_parts).keys())
......
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