ECAL Replay

From SBS wiki
Jump to: navigation, search

ECal Expert Replay

Running a Replay

From a terminal:

  • Log on to a-onl@aonl<x>, where x = 1, 2, or 4. Can be accessed from ssh'ing to <username>@hallgw.jlab.org.
  • goecal (Note: Performing this command will take you to the ECAL_replay directory and load the proper module files for replay of ECAL data.)
  • ./run-ecal-replay.sh <runnum> <numevents>

Upon successful execution, an output ROOT file named ecal_<runnum>_<nevents>.root will be created in the directory: /adaqfs/home/a-onl/sbs/Rootfiles

Expert Analysis

After getting the output ROOT file, at the ECAL_replay directory:

  • cd replay/ecal_for_all/
  • mkdir run<runnum>

To see amplitude, time, charge integral, pedestal distribution of PMTs for a row:

  • root -l ecal_fitrc.C

It will ask you for the run number, the row that you want to see the distribution, the row and column of the channel you want to check its waveform. Once you input you need, a .pdf file and a .dat file will be created under directory run<runnum>. You can also see the PMT id of the channel you want to check. To select fewer events, go to .dat file. Each line in the .dat file shows the PMT id and the events without any cut.

To see the waveform, after you run ecal_fitrc.C, do

  • root -l ecal_samples.C

It will ask you for the run number, the PMT id, the row and column of the channel. The waveforms for the channel will be plotted referring to the event number in the .dat file.

  • root -l ecal_occu.C
  • root -l ecal_row_col.C

Upon successful execution, plots will be created in the directory: /adaqfs/home/a-onl/sbs/ECAL_replay/replay/ecal_for_all/run<runnum>