User Tools

This is an old revision of the document!

Available Code

The latest version of the code is available here:


The following is the general procedure to produce summary ROOT files. It is a number of steps, but each major step can usually be automated with simple scripts.

  1. Produce pedestal files:
    1. Use “ConvertToRootNoAuxDataMultiScrod <SCROD ID> <input raw data file> <output ROOT file>”
      1. For output files, I usually use the scheme of keeping the original raw data file name, dropping the extension, and naming the output <original_base_name>.scrodXX.root (where XX is the SCROD ID that you're converting over).
    2. Use “CalculatePedestals <input root file> <output pedestal file>” to create a pedestal file for all required SCRODs.
      1. For pedestal files, I usually replace .root with .ped
  2. Convert data files for runs of interest:
    1. To convert SCROD data, again use “ConvertToRootNoAuxDataMultiScrod <SCROD ID> <input raw data file> <output ROOT file> <pedestal file>”
      1. I use the same convention as before, changing the .dat to .scrodXX.root
      2. Unlike the usual case with pedestals, in this case the same raw data file has data for all SCRODs, so you may have to run over it 4 times to do a full conversion for all modules.
    2. To convert CAMAC data, use “ConvertCamacToROOT <input file> <output ”
      1. I use the convention for output file names of calling them <original_base_name>.cmc.root.
      2. Depending on the CAMAC configuration, you may need to change the crate setup in src/lib/CamacStructure.cpp (see lines 89-113)

Your next steps will depend on what you're trying to do. I suggest below some things that I often do.

Visual Waveform Checks

If you want to look over a few waveforms by eye to see if they look reasonable, do the following:

Timing Calibration Resolution Studies

Produce Summary Files