Difference between revisions of "JB DAQ"

From New IAC Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
Back [[JB Analysis]]
 
Back [[JB Analysis]]
=TDC Calibration=
+
==DAQ commands==
 
Source CODA and ROOT
 
Source CODA and ROOT
 
  source ~/CODA/2.6.2/setup
 
  source ~/CODA/2.6.2/setup
Line 7: Line 7:
 
Run the bash script titled 'jeff', which takes the run number as an argument. This script will automatically convert the .dat file to a .root file and then open it in root. The script: [[File:Jeff.txt]].
 
Run the bash script titled 'jeff', which takes the run number as an argument. This script will automatically convert the .dat file to a .root file and then open it in root. The script: [[File:Jeff.txt]].
 
  bash jeff 4716
 
  bash jeff 4716
The first index of evt.TDC1190 is the hit #. The second index increases consecutively with TDC channel number, except the index starts from 1, while the TDC channels start at 0.  
+
The first index of evt.TDC1190 is the hit #. The second index increases consecutively with TDC channel number, but the index starts from 1, while the TDC channels start at 0.  
 
Common ROOT plot commands for copy-past:
 
Common ROOT plot commands for copy-past:
 
First hit minus second hit:
 
First hit minus second hit:
Line 16: Line 16:
 
  R1DC->Draw("(evt.TDC1190[1][2]+evt.TDC1190[1][3]-2*evt.TDC1190[1][1])/10>>h(1000,-500,500)","evt.TDC1190[1][2]!=0&&evt.TDC1190[1][3]!=0")
 
  R1DC->Draw("(evt.TDC1190[1][2]+evt.TDC1190[1][3]-2*evt.TDC1190[1][1])/10>>h(1000,-500,500)","evt.TDC1190[1][2]!=0&&evt.TDC1190[1][3]!=0")
  
 +
=TDC Calibration=
 
A linear fit was done by using a set delay of 500,600,700, and 800 ns.  
 
A linear fit was done by using a set delay of 500,600,700, and 800 ns.  
 
[[File:DAQCalibrtion.png|800 px|thumb|center]]
 
[[File:DAQCalibrtion.png|800 px|thumb|center]]

Revision as of 20:24, 7 March 2016

Back JB Analysis

DAQ commands

Source CODA and ROOT

source ~/CODA/2.6.2/setup
source /home/daq/src/root/root-5.34.00/bin/thisroot.csh

Run the bash script titled 'jeff', which takes the run number as an argument. This script will automatically convert the .dat file to a .root file and then open it in root. The script: File:Jeff.txt.

bash jeff 4716

The first index of evt.TDC1190 is the hit #. The second index increases consecutively with TDC channel number, but the index starts from 1, while the TDC channels start at 0. Common ROOT plot commands for copy-past: First hit minus second hit:

 R1DC->Draw("(evt.TDC1190[2][1]-evt.TDC1190[1][1])")

PMT difference:

R1DC->Draw("(evt.TDC1190[1][2]-evt.TDC1190[1][3])/10>>h(n,min,max)",(Long64_t)6394][2]!=0&&evt.TDC1190[1][3]!=0")

PMT Sum, where evt.TDC1190[1][1] is the trigger:

R1DC->Draw("(evt.TDC1190[1][2]+evt.TDC1190[1][3]-2*evt.TDC1190[1][1])/10>>h(1000,-500,500)","evt.TDC1190[1][2]!=0&&evt.TDC1190[1][3]!=0")

TDC Calibration

A linear fit was done by using a set delay of 500,600,700, and 800 ns.

DAQCalibrtion.png