Difference between revisions of "JB DAQ"

From New IAC Wiki
Jump to navigation Jump to search
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Back [[JB Analysis]]
 
Back [[JB Analysis]]
==DAQ commands==
+
 
 +
=AccApp poster=
 +
[[File:AccAppPoster(FinalDraft).pdf]]
 +
 
 +
=DAQ commands=
 
Source CODA and ROOT
 
Source CODA and ROOT
  source ~/CODA/2.6.2/setup
+
  source ~/CODA/2.6.2/setup  
 
  source /home/daq/src/root/root-5.34.00/bin/thisroot.csh
 
  source /home/daq/src/root/root-5.34.00/bin/thisroot.csh
  
Line 10: Line 14:
 
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.  
 
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===
 +
  R1DC->Draw("(evt.TDC1190[2][16]-evt.TDC1190[1][16])")
  
First hit minus second hit:
+
 
  R1DC->Draw("(evt.TDC1190[2][1]-evt.TDC1190[1][1])")
+
===Top-Bottom difference===
PMT difference:
 
 
  R1DC->Draw("(evt.TDC1190[1][2]-evt.TDC1190[1][3])/10","evt.TDC1190[1][2]!=0 && evt.TDC1190[1][3]!=0 && evt.TDC1190[1][1]!=0")
 
  R1DC->Draw("(evt.TDC1190[1][2]-evt.TDC1190[1][3])/10","evt.TDC1190[1][2]!=0 && evt.TDC1190[1][3]!=0 && evt.TDC1190[1][1]!=0")
PMT Sum, where evt.TDC1190[1][1] is the trigger:
+
 
  R1DC->Draw("(evt.TDC1190[1][3]/10+evt.TDC1190[1][2]/10)/2-evt.TDC1190[1][1]/10>>PMTSum(1000,-500,500)","evt.TDC1190[1][2]!=0 && evt.TDC1190[1][3]!=0 && evt.TDC1190[1][1]!=0")
+
===ToF===
 +
For FF config:
 +
  FF->Draw("(TDC.TDC1190[1][9]/10+TDC.TDC1190[1][10]/10)/2-TDC.TDC1190[1][25]/10>>ToF(1000,-200,800)","TDC.TDC1190[1][9]!=0 && TDC.TDC1190[1][10]!=0 && TDC.TDC1190[1][25]!=0")
 +
 
 +
For R1DC config:
 +
 
 +
R1DC->Draw("0.1*((TDC1190[1][3]+TDC1190[1][4])/2-TDC1190[1][25])>>ToF(1000,-200,800)","TDC1190[1][3]!=0 && TDC1190[1][4]!=0 && TDC1190[1][25]!=0")
  
 
=TDC Calibration=
 
=TDC Calibration=
The data was collected by taking the channel difference between two pulses with a delay of 500,600,700, and 800 ns.  
+
Double pulses separated by 500,600,700, and 800 ns (as measured by an oscilloscope) were used to determine the constant of proportionality between TDC channels and ns. There are 0.1 ns per ch.
[[File:DaqCali.png|800 px|thumb|center]]
+
 
 +
 
 +
[[File:DaqCali.png|350px|center]]
  
 
=Miscellaneous=
 
=Miscellaneous=
Line 30: Line 44:
 
When an input receives 2 or more pulses over a duration less than or equal to (the delay) +
 
When an input receives 2 or more pulses over a duration less than or equal to (the delay) +
 
(the output pulse width) + (~0-20 ns), '''only the final pulse''' received during this duration will appear in the delayed output signal.
 
(the output pulse width) + (~0-20 ns), '''only the final pulse''' received during this duration will appear in the delayed output signal.
 +
 +
'''solution:'''
 +
 +
Connect one of the two available the outputs (OUT) to the VETO. This causes the device to reject multiple pulses during the delay duration, ensuring that the delay is constant with respect to the initial pulse.
 +
 +
==CAEN N841 discriminator channel multiplicity==
 +
The device has an output in the rear labeled <math>\Sigma</math> which outputs a 50*N mV signal, where N is the number of channels over threshold. This can be used to do coincidence counting such as "three of greater active channels", by feeding the <math>\Sigma</math> output into a discriminator channel and setting the threshold accordingly.
 +
 +
== NIM/ECL translator channel to ROOT channel==
 +
e.g. NIM/ECL channel 2A maps to evt.TDC1190[1][3]
 +
 +
[[File:NIM ECL2R1DC.png|500px]]

Latest revision as of 21:04, 28 July 2017

Back JB Analysis

AccApp poster

File:AccAppPoster(FinalDraft).pdf

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][16]-evt.TDC1190[1][16])")


Top-Bottom difference

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

ToF

For FF config:

FF->Draw("(TDC.TDC1190[1][9]/10+TDC.TDC1190[1][10]/10)/2-TDC.TDC1190[1][25]/10>>ToF(1000,-200,800)","TDC.TDC1190[1][9]!=0 && TDC.TDC1190[1][10]!=0 && TDC.TDC1190[1][25]!=0")

For R1DC config:

R1DC->Draw("0.1*((TDC1190[1][3]+TDC1190[1][4])/2-TDC1190[1][25])>>ToF(1000,-200,800)","TDC1190[1][3]!=0 && TDC1190[1][4]!=0 && TDC1190[1][25]!=0")

TDC Calibration

Double pulses separated by 500,600,700, and 800 ns (as measured by an oscilloscope) were used to determine the constant of proportionality between TDC channels and ns. There are 0.1 ns per ch.


DaqCali.png

Miscellaneous

Pace of signal

The pace of a signal in a 223/U cable is 1.5 ns/ft.

Backwards dead time of digital delay modules

When an input receives 2 or more pulses over a duration less than or equal to (the delay) + (the output pulse width) + (~0-20 ns), only the final pulse received during this duration will appear in the delayed output signal.

solution:

Connect one of the two available the outputs (OUT) to the VETO. This causes the device to reject multiple pulses during the delay duration, ensuring that the delay is constant with respect to the initial pulse.

CAEN N841 discriminator channel multiplicity

The device has an output in the rear labeled [math]\Sigma[/math] which outputs a 50*N mV signal, where N is the number of channels over threshold. This can be used to do coincidence counting such as "three of greater active channels", by feeding the [math]\Sigma[/math] output into a discriminator channel and setting the threshold accordingly.

NIM/ECL translator channel to ROOT channel

e.g. NIM/ECL channel 2A maps to evt.TDC1190[1][3]

NIM ECL2R1DC.png