add another Functional transformer: SplittingMergingTransformer
Add a SplittingMergingTransformer which fetches a configuration time specified number of same-type inputs from the event store, and which stores a configuration time specified number of same-type objects to the event store. Note that the input types and output types can both be specified.
Merge request reports
Activity
- Resolved by Marco Clemencic
@sponce, @rmatev, @nskidmor : FYI -- I have a use-case for this type of algorithm in mind, and that is to centralize the handling of the
raw_event_format
. With this as a base class, one can generalizeUnpackRawEvent
(which is a SplittingTransformer which takes a singleRawEvent
as input and produces a number ofRawBank::View
s as output) intoUnpackRawEvents
, which will take a number ofRawEvent
s as input, and produces a number ofRawBank::View
s as output. Now, this could already have been achieved by using oneUnpackRawEvent
per inputRawEvent
, but with this as base class only a single instance is needed to do the same thing.Basically, a single
UnpackRawEvents
instance would be be the only thing that needs to know aboutraw_event_format
-- provided all the current algorithms which still consumeRawEvent
(s) are switched to consuming the actualRawBank::View
(s) they really want instead...
mentioned in merge request lhcb/LHCb!3457 (merged)
@clemenci: the ci-test failed here because in pytest options dump it shows:
E Omitting 22 identical items, use -vv to show E Differing items: E {'IntVectorsToInts': {'InputLocations': ['/Event/EventInts', '/Event/OddInt', '/Event/Fib7'], 'Mapping': [[0, 0], [0, 1], [0, 2], [1, 1], [1, 2]], 'OutputLocations': ['/Event/EvenOddFib', '/Event/OddFib']}} != {'IntVectorsToInts': {'InputLocations': ['/Event/EventInts', '/Event/OddInt', '/Event/Fib7'], 'Mapping': [(0, 0), (0, 1), (0, 2), (1, 1), (1, 2)], 'OutputLocations': ['/Event/EvenOddFib', '/Event/OddFib']}}
I don't know what it is comparing to what, but given that the
Mapping
property of the algorithm I added has avector<pair<int,int>>
as payload I think that the correct version is the one with[(0,0],...]
-- so would be good to know what format is dumping this as[[0,0],...]
and thus doesn't distinguish between eg. pairs and lists...Anyway, this MR is not the source of the problem, it just seems to be the first one to expose it...
- [2022-03-14 10:24] Validation started with lhcb-master-mr#3963
- [2022-03-14 22:54] Validation started with lhcb-master-mr#3977
- [2022-03-24 00:04] Validation started with lhcb-gaudi-head#3196
- [2022-03-24 00:34] Validation started with lhcb-run2-gaudi-head#295
- [2022-03-25 00:06] Validation started with lhcb-gaudi-head#3197
- [2022-03-25 00:39] Validation started with lhcb-run2-gaudi-head#296
Edited by Software for LHCbmentioned in issue lhcb/Moore#411 (closed)
- Resolved by Gerhard Raven
added lhcb-gaudi-head label
assigned to @clemenci
changed milestone to %v36r5
mentioned in commit d458a513
mentioned in issue lhcb/Moore#416 (closed)
mentioned in issue lhcb/LHCb#206 (closed)