More Information About the XDIGI2CSV Program#

The XDIGI2CSV program allows to convert (X)DIGI files into CSV likes. The algorithms, written in the Allen framework, are described in this page.

Algorithms#

As mentionned in the Programs page, the algorithms behind the XDIGI2CSV program are defined in Dumpers/CSVDumpers folder.

There are 6 algorithms, as detailed in the table below.

Algorithm

.cpp file

Output

PrCSVDumperVPHits

PrCSVDumperVPHits.cpp

hits_velo.csv

PrCSVDumperUTHits

PrCSVDumperUTHits.cpp

hits_ut.csv

PrCSVDumperFTHits

PrCSVDumperFTHits.cpp

hits_scifi.csv

PrCSVDumperMCParticles

PrCSVDumperMCParticles.cpp

hits_mcparticles.csv

PrCSVDumperMCHits

PrCSVDumperMCHits.cpp

mchits_{detector}.csv

PrCSVDumperEventInfo

PrCSVDumperEventInfo.cpp

event_info.csv

The classes in this implementation are well-documented.

  • The PrCSVDumperVPHits, PrCSVDumperUTHits and PrCSVDumperFTHits algorithms, are responsible for dumping the hits in the Velo, UT, and SciFi detectors, respectively.

  • The PrCSVDumperMCParticles algorithm only dumps the MC particles that have hits in order to save space and time, if the parameter AllMCParticles is set to false.

Configuration in Moore#

The functions that allow to run the algorithms from Moore are defined in RecoConf.persistence_csv.

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

PrCSVDumperMCParticles

mc_particles.csv

csv_persistence_vp_mchits

PrCSVDumperMCHits

mchits_velo.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

In addition to the parameters listed in this table, all of these functions also take the following input parameters:

  • output_path: the path where the CSV file should be stored

  • erase: whether or not to overwrite any existing CSV file at the specified output_path location.