Presentation is loading. Please wait.

Presentation is loading. Please wait.

DAQ_HowTo_2003-11-07.ppt1 How to use DAQ for Argonne Beam Test Tsunefumi Mizuno November 07, 2003 History.

Similar presentations


Presentation on theme: "DAQ_HowTo_2003-11-07.ppt1 How to use DAQ for Argonne Beam Test Tsunefumi Mizuno November 07, 2003 History."— Presentation transcript:

1 DAQ_HowTo_2003-11-07.ppt1 How to use DAQ for Argonne Beam Test Tsunefumi Mizuno (mizuno@SLAC.Stanford.EDU)mizuno@SLAC.Stanford.EDU November 07, 2003 History of changes Novebmer 07, 2003 First written by T. Mizuno

2 DAQ_HowTo_2003-11-07.ppt2 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.

3 DAQ_HowTo_2003-11-07.ppt3 DAQ System (2) 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 data file names (waveform data and peak data) 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. 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.

4 DAQ_HowTo_2003-11-07.ppt4 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.

5 DAQ_HowTo_2003-11-07.ppt5 ROOT analysis macro(2) Type “root QlHistogram.cc”. Then 8 windows will pop up and you can see peak voltage distributions.

6 DAQ_HowTo_2003-11-07.ppt6 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);

7 DAQ_HowTo_2003-11-07.ppt7 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. 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). 12 345 67 30degree


Download ppt "DAQ_HowTo_2003-11-07.ppt1 How to use DAQ for Argonne Beam Test Tsunefumi Mizuno November 07, 2003 History."

Similar presentations


Ads by Google