Proton Calorimetry/Equipment

From PBTWiki
Jump to navigation Jump to search

This page contains information on the various pieces of experimental equipment that form the Proton Calorimetry detector setup.

Caen Detector Emulator

The [Caen DT5800D Detector Emulator] provides the capability for emulating the output of an arbitrary detector system.

More details can be found on the Caen Detector Emulator page.

LeCroy Scope Trace Conversion: Binary to ASCII

To convert .trc binary data to .txt data that is formatted similarly to the output files from a CAEN DT5751 digitiser:

  1. Copy contents of /unix/pbt/aknoetze/ConversionScripts to a new directory.
  2. Open trc2txt.py in a text editor.
    1. Change path to directory containing .trc data files by editing variable dirpath
    2. Change number of decimal points for each column by editing: np.savetxt(..., fmt=‘...’,...)
  3. Run trc2txt.py

Converted .txt files will be in the copied directory NEWASCII. These new files will possess the same file names as the original .txt files.

To concatenate the new data files together into one single file, while in the directory NEWASCII,type:

cat *.txt > OutputFileName.txt