70 likes | 174 Views
How to use DAQ for Argonne Beam Test. History of changes Novebmer 07, 2003 First written by T. Mizuno. Tsunefumi Mizuno ( mizuno@SLAC.Stanford.EDU ) November 07, 2003. DAQ system (1). Install sensors and analog modules in beam area, and others in monitor room (if possible).
E N D
How to use DAQ for Argonne Beam Test • History of changes • Novebmer 07, 2003 First written by T. Mizuno Tsunefumi Mizuno (mizuno@SLAC.Stanford.EDU) November 07, 2003 DAQ_HowTo_2003-11-07.ppt
DAQ system (1) • Install sensors and analog modules in beam area, and others in monitor room (if possible). • If there is significant energy deposition in any one of surrounding scintillators (greater than ~20keV), DAQ trigger is generated. We will see if there is hit in central scintillator or not in off-line analysis. DAQ_HowTo_2003-11-07.ppt
DAQ System (2) • Double-click the file “C:\ADLINK\PCIS-LVIEW\Test\Two_card_data_acq_20031021.vi”. Then, the following window pops up. • Press white arrow in upper left and then press the “start” bottom at the center of the window. Then the DAQ starts. • Default settings are as below. They are user adjustable but some other combination of parameters makes the DAQ unstable. • sampling rate: 5MHz. • 1000points/card = 250points/channel • 230points after the trigger and 20 before the trigger. • First 50 points are displayed and recorded. display waveforms Trigger conditions, user adjustable For every 10 events the DAQ records data to a disk and displays waveform of the last event in the packet. data file names (waveform data and peak data) DAQ_HowTo_2003-11-07.ppt
ROOT analysis macro(1) • copy data files (test.dat and test_p.dat) to c:\root\PoGO • start->”command prompt” if you have not done yet. • Then type the following commands. • cd c:\root • setup.bat • cd PoGO • Now you are ready to analyze data. Three root macros could be useful. (see following pages) • Don’t forget to rename data file name before copying next data files. DAQ_HowTo_2003-11-07.ppt
ROOT analysis macro(2) Type “root QlHistogram.cc”. Then 8 windows will pop up and you can see peak voltage distributions. DAQ_HowTo_2003-11-07.ppt
ROOT analysis macro(3) Type “root Analysis.cc” and ROOT fits data with gaussian plus background. You can (and have to) specify some parameters in the macro. void Analysis(){ // You can (and have to) specify data file name. ifstream data("test_p.dat"); // You can (and have to) specify the ACD channel. // Channel number is 1-4 for card 0 and 5-8 for card 1 int channel(1); // You can (and have to) specify the range of data used for the fitting. double Min(1.7); double Max(4.5); DAQ_HowTo_2003-11-07.ppt
ROOT analysis macro(4) Type “root Histogram.cc”. Then 22 histograms will pop up. h1-h8: deposit energy distribution of each channel h9: total deposit energy h10: # of scintillators with hit h11-h18: depE1(2,3,..8)+depE4, where depE4 is deposit energy of center scint. h19: total deposit energy h20: # of scintillators with hit h21, h22: # of events of each scintillator. 30degree 1 2 3 4 5 6 7 • In h11-h22, following selection criteria are applied. • # of scint. with hit=2 • depE4<=20keV • 40keV<=totDepE<=80keV • Please modify Histogram.cc to change the criteria and calibration constants (voltage<->energy conversion factor). DAQ_HowTo_2003-11-07.ppt