WIP: First version of FunctionalMDFWriter
This is genuine WIP and more meant to highlight some features.
-
HltDecReportsWriter
is not functional, it gets the raw event andDecReports
via get and then manipulatesDAQ/RawEvent
in place. - Added functional
HltDecReportsEncoder
which returns theDecReports
in serialized format. SinceRawBank
has no destructor, it was not possible to put aRawBank
onto the TES. - Added
FunctionalMDFWriter
which takes theRawEvent
and theDecReports
"raw bank" as input and writes the output to a file. The algorithm is a copy of the necessary parts ofMDFWriter
andMDFIO
, no attempt to optimize it has been made. - As the input
RawEvent
is const, a copy of theRawEvent
is created. The individualRawBank
s are not copied, only the pointer to them. TheDecReports
raw bank is added. - To allow for multi-threaded writing a mutex is added to the execute of
MDFWriter
andFunctionalMDFWriter
.
(The functions are copied and not inherited from the base class as the base class functions are not const.)
See also #5
Edited by Sascha Stahl