Skip to content
Snippets Groups Projects

Add mdfwriter.py script

Merged Rosen Matev requested to merge rm-mdfwriter into master
All threads resolved!

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.

/cc @sstahl @chasse

Merge request reports

Merge request pipeline #3740543 passed

Merge request pipeline passed for 164bbd12

Approved by

Merged by Rosen MatevRosen Matev 3 years ago (Mar 22, 2022 10:28pm UTC)

Merge details

  • Changes merged into master with 9dc99c92.
  • Did not delete the source branch.

Pipeline #3745895 passed

Pipeline passed for 9dc99c92 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Christoph Hasse
  • Christoph Hasse approved this merge request

    approved this merge request

  • @rmatev I think this looks great :blush:
    Two small nitpicks just to prove I read the code :joy:
    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)

  • Rosen Matev resolved all threads

    resolved all threads

  • Rosen Matev resolved all threads

    resolved all threads

  • Rosen Matev added 1 commit

    added 1 commit

    • fed93838 - Apply 2 suggestion(s) to 1 file(s)

    Compare with previous version

  • Rosen Matev added 23 commits

    added 23 commits

    Compare with previous version

  • Rosen Matev assigned to @rmatev and unassigned @chasse

    assigned to @rmatev and unassigned @chasse

  • Rosen Matev resolved all threads

    resolved all threads

  • merged

  • Rosen Matev mentioned in commit 9dc99c92

    mentioned in commit 9dc99c92

  • Sebastien Ponce mentioned in merge request Rec!2413 (merged)

    mentioned in merge request Rec!2413 (merged)

  • mentioned in issue Moore#416 (closed)

  • Please register or sign in to reply
    Loading