WIP: First version of FunctionalMDFWriter
This is genuine WIP and more meant to highlight some features.
-
HltDecReportsWriteris not functional, it gets the raw event andDecReportsvia get and then manipulatesDAQ/RawEventin place. - Added functional
HltDecReportsEncoderwhich returns theDecReportsin serialized format. SinceRawBankhas no destructor, it was not possible to put aRawBankonto the TES. - Added
FunctionalMDFWriterwhich takes theRawEventand theDecReports"raw bank" as input and writes the output to a file. The algorithm is a copy of the necessary parts ofMDFWriterandMDFIO, no attempt to optimize it has been made. - As the input
RawEventis const, a copy of theRawEventis created. The individualRawBanks are not copied, only the pointer to them. TheDecReportsraw bank is added. - To allow for multi-threaded writing a mutex is added to the execute of
MDFWriterandFunctionalMDFWriter.
(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