Draft: CSVDumpers: add functions to dump hits and MC particles into CSV files
Requires Allen!1125 (closed)
This merge request adds functions to run CSVDumpers algorithms in order to dump hits and MC particles into CSV files. In order to run these functions, the previous merge request Allen!1125 (closed) needs to be merged first.
The table below shows the correspondence between each function and the corresponding algorithm in Moore:
Function | Parameters | Corresponding algorithm | Output file |
---|---|---|---|
csv_persistence_vp_hits |
- extended
|
PrCSVDumperVPHits |
hits_vp.csv |
csv_persistence_ut_hits |
- extended
|
PrCSVDumperUTHits |
hits_ut.csv |
csv_persistence_ft_hits |
- extended
|
PrCSVDumperFTHits |
hits_ft.csv |
csv_persistence_mc_particles |
- extended - all_mc_particles : whether to dump all MC particles |
PrCSVDumperAllPCParticles |
velo_hits.csv |
csv_persistence_vp_mchits |
PrCSVDumperMCHits |
mchits_vp.csv |
|
csv_persistence_ut_mchits |
PrCSVDumperMCHits |
mchits_ut.csv |
|
csv_persistence_ft_mchits |
PrCSVDumperMCHits |
mchits_ft.csv |
|
csv_persistence_event_info |
PrCSVDumperEventInfo |
event_info.csv |
If extended
is set to True
, all meaningful columns are saved, even those not needed for training and testing tracking algorithms.
In addition to the parameters listed in the table, each function has the following optional parameters:
-
output_path
: path where to save the CSV file -
erase
: whether to erase an existing CSV file at the same location before saving new data
A typical Moore option file is also included at RecoConf/options/persistence_csv.py
.
A test that uses this Moore option file is implemented in Hlt/RecoConf/tests/qmtest/persistence_csv.qmt
.
PS: This is my first contribution and merge request, so please let me know if there are any issues or if I can improve anything. Thank you for taking the time to review this merge request!