Improving reconstruction structure with an Event class for each data tier
At the moment the reconstruction steps apart from unpacker in the branch unpacker-zstd-multiple-files
(and ApvToDigi
in main
) are not very well structured.
They should be made more uniform with a common structure:
- the
main
should contain a loop on the input file entries; - for each entry the following actions should take place:
- a
[InputTier]FileReader
instance should read an event from the input file and return a pointer to an[InputTier]Event
; - a
[OutputTier]FileWriter
instance should convert the[InputTier]Event
to an[OutputTier]Event
; - the
[OutputTier]FileWriter
should save the[OutputTier]Event
to the output file.
- a
Input tiers are srs
, raw
(already implemented), digi
and rechit
. Output tiers are digi
(already implemented), rechit
and track
.
For tracking this is addressed in !14 (merged).
Edited by Antonello Pellecchia