Once an experiment is complete, there are a variety of sorting codes on the gearbox account that can be used to view different aspects of the data generated.
To begin, navigate to the directory where MIDAS saved the .mid files generated by the experiment run. When running the sort codes, the directory should always be set to the directory in which the .mid files are saved, and not the directory where the sort codes are located.
To view the available sort codes, navigate to the /home/gearbox/sort_GEARBOX/bin directory. The access path to gearbox sorting code should be enabled on login, therefore, the codes can be executed by typing the name of the code. By default, the code name without parameters should respond with the name of the code and required parameter list.
Name | Parameters | Function | Output |
---|---|---|---|
GEARBOX_print_event | midas_input_data_file_name frequency | for a given midas file prints to screen data for event number divisible by frequency | screen printout |
GEARBOX_deadtime | midas_input_data_file_name | for a given midas file computes deadtime correction based on trigger and clock data | screen printout |
GEARBOX_count_zeros | midas_input_data_file_name | for a given midas file counts events with ADC readout of zero | screen printout |
GEARBOX_event_rate | midas_input_data_file_name clock_pulse_per_time_unit | for a given midas file sorts spectrum of events per time unit defined by the clock_pulses_per_time_unit | root spectrum and GEARBOX_event_rate.spx RADWARE spectrum |
GEARBOX_ts_diff | midas_input_data_file_name clock_pulse_per_time_unit | for a given midas file sorts spectrum of time stamp difference between consecutive events per time unit defined by the clock_pulses_per_time_unit parameter and conditioned on pileup events | root spectrum and GEARBOX_ts_diff.spx RADWARE spectrum with id=0 for no pileup and id=1 for pileup events |
Name | Parameters | Function | Output |
---|---|---|---|
GEARBOX_raw_e | midas_input_data_file_name | for a given midas file sorts spectrum of ADC readouts conditioned on pileup detection | root spectrum for all events and GEARBOX_raw_e.spx RADWARE spectrum with id=0 for no pileup and id=1 for pileup events |