Add mdfwriter.py script
It can be used for converting data from ROOT formats to MDF but also to subset MDF data (e.g. first N events).
LHCb/run mdfwriter.py -h
usage: mdfwriter.py [-h] -o OUTPUT [-f] [--db-entry] [--start START] [-n NEVENTS | --stop STOP] files [files ...]
Convert data to MDF format
positional arguments:
files Input filenames or TestFileDB entry
optional arguments:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
Output filename
-f, --force Overwrite output file if it exists
--db-entry Interpret the file as a TestFileDB entry
--start START First event to write
-n NEVENTS, --nevents NEVENTS
Number of events to write
--stop STOP Last event to write (exclusive)
This kind of generalizes ExampleXDigiToMDF.py, so we might decide to drop it.
Merge request reports
Activity
added Persistency enhancement labels
assigned to @chasse
added RTA label
- Resolved by Rosen Matev
- Resolved by Rosen Matev
@rmatev I think this looks great
Two small nitpicks just to prove I read the code
But these could easily be ignored, so let me know what you think.Once resolved I'd say let's run this through a single platform just to make sure everything works as expected.
mentioned in issue Moore#411 (closed)
added 23 commits
-
fed93838...50b440a6 - 21 commits from branch
master
- 846da705 - Add mdfwriter.py script
- 164bbd12 - Remove ExampleXDigiToMDF.py and test
-
fed93838...50b440a6 - 21 commits from branch
- Resolved by Rosen Matev
/ci-test --platforms=x86_64_v2-centos7-gcc11-opt
added ci-test-triggered label
- [2022-03-22 16:52] Validation started with lhcb-master-mr#4055
mentioned in commit 9dc99c92
mentioned in merge request Rec!2413 (merged)
mentioned in issue Moore#416 (closed)