Difference between revisions of "Data Acquisition System"

From Ciswikidb
Jump to navigation Jump to search
 
(123 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==DAQ Hardware==
+
=='''DAQ Hardware'''==
  
* Electronic Map of Mott Crates (January 29, 2013):
+
* Electronic Map of Mott Crates (May 06, 2014):
[[Media:ElectronicsMap_20130129.pdf]]
+
[[Media:ElectronicsMap_May062014.pdf]]
  
[[Media:ElectronicsMap_20130129.ppt]]
+
[[Media:ElectronicsMap_May062014.pptx]]
  
* Cabling of FADC, Scalers, and TDC (January 29, 2013):  
+
* Cabling of FADC, Scalers, and TDC (February 12, 2014):  
[[Media:Cable_20130129.pdf]]
+
[[Media:Cable_Feb122014.pdf]]
  
[[Media:Cable_20130129.pptx]]
+
[[Media:Cable_Feb122014.pptx]]
  
* DAQ Timing (January 29, 2013):  
+
* DAQ Timing (February 12, 2014):  
[[Media:DAQ_Timing_20130129.pdf]]
+
[[Media:DAQ_Timing_Feb122014.pdf]]
  
[[Media:DAQ_Timing_20130129.pptx]]
+
[[Media:DAQ_Timing_Feb122014.pptx]]
  
 +
* Discriminator threshold adjustments (18January2015):
 +
[[Media:Discriminator_threshold_adjustment.odt]]
  
= How to run CODA =
+
[[Media:Discriminator_threshold_adjust.ods]]
  
* From an accelerator machine: '''ssh -X idaq@opsmdaq0''' (Note: '''idaq''' is the injector DAQ account and uses ssh authorized_keys for login - no need to enter password) and open few '''xterm &''' windows.
 
  
  xterm 1: telnet iocmdaq1
 
  
  xterm 2: msqld (the CODA msqld database is usually running unless opsmdaq0 was rebooted)
 
  
  xterm 3: platform
+
=='''DAQ Software'''==
  
  xterm 4: codamaster
+
* '''[[How to run CODA]]'''
  
Choose the configuration: '''Mott_Sample'''
+
* '''[[Online Monitoring]]'''
  
When the CODA MASTER panel appears, select '''Config''' => '''Enable Buttons'''.
+
* '''[[Mott Analysis]]'''
  
Select '''ET System''', '''Event Builder''', '''Event Recorder''' and '''Run Control'''.
+
* '''[[CODA Summary]]'''
After doing that if you will click on '''Get Status''' you will find status of ''' ER1''', '''EB1''' and '''ROC1'''. All buttons must be green.
 
  
Select '''Run Control''' and the main CODA panel will appear.
+
* '''[[CODA Scripts]]'''
  
  
== Start and Stop a Run ==
 
  
From Run Control panel, select in the following order:
 
# '''Sessions''' => '''inj'''
 
# '''Configurations''' => '''Cool''' => '''Mott_Sample'''
 
# '''Platform''' => '''Connect'''
 
# '''Configure'''
 
# '''Download'''
 
# '''Prestart'''
 
# '''Start'''
 
  
At the end:
+
=='''Manuals and References'''==
<ol start="8">
+
* Jefferson Lab Data Acquisition Group CODA Wiki [https://coda.jlab.org/drupal/]
<li>'''Stop'''</li>
 
</ol>
 
and if you want to apply a change or you need a new configuration:
 
<ol start="9">
 
<li>'''Reset'''</li>
 
</ol>
 
and start from number 5.
 
  
 +
* CAEN VME Crate Manual - VME8200 9U 21Slot (VME64x backplane with no P0 connector) [[media:VME8200_Manual.pdf]]
  
== Mott DAQ iocmdaq1 ==
 
  
* There are two ways to access the Mott DAQ ioc:
 
# From an accelerator machine: '''telnet iocmdaq1'''
 
# From an accelerator machine: '''ioc_concole iocmdaq1'''. Here you need to enter a password to this cannot be done with the idaq account.
 
  
  
= Online Monitoring =
+
=='''To-do List'''==
  
== Scalers: '''xscaler''' ==
+
* Analysis List:
 +
# Add delayed helicity analysis for Mott_Sample and Mott_SemiInt Modes. Delayed analysis is already included for Scalers and PEPPo_Int Modes.
 +
# Modify decoder for the updated Mott_SemiInt mode. Started: /work/idaq/Mott/Analysis/1, Runs: 7642, 7672. Sample: 7673
 +
# Update MottOnline
 +
# Replace "PEPPo" with "Mott" in scripts, decoder, ... .
  
"xscaler" is a graphical display of the scalers from the Mott DAQ. 
 
  
If you login to opsmdaq0 as the "idaq" user, and type "xscaler", it will tell you exactly what to do.
+
* '''[[New Delayed Helicity Readout Scheme for Physics Events Trigger]]'''
And that is:
 
  
cd /opt/idaq/xscaler ; ./xscaler
 
  
 
+
* Things to do to speed up the DAQ and reduce deadtime:
== Dead Time: '''datamon''' ==
+
# Use the new SemiIntFast Mode:
 
+
## Upgrade the time-of-flight readout to the FADC TDC mode
There is a display to monitor the DAQ dead time. To run it use the idaq user on opsmdaq0. Type:
+
## Upgrade the scalers readout to the FADC Scaler mode
 
+
## Add Block Readout
  datamon
+
# Reduce the Mott Trigger rate by rejecting low energy electrons or dump events:
 
+
## Increase E-detector discriminator thresholds
 
+
## Veto dump events using beam timing signal
== Scaler Data written to EPICS ==
 
 
 
The scaler data which appears in xscaler (see above for xscaler) is also written to EPICS.
 
The data are rates in Hz.
 
 
 
The EPICS channels are of the form "Inj_ScalerN_ChM" where N = 1,2,3 and M = 1,2,3,4,...32.
 
See xscaler for channels assignments.
 
 
 
To retrieve data from EPICS you can, for example, do this:
 
 
 
'''caget Inj_Scaler1_Ch24'''
 
Inj_Scaler1_Ch24              484195
 
 
 
The number here means 484195 Hz.
 
 
 
 
 
== Online Histogram Display ==
 
 
 
Log on opsmdaq0 using idaq user and from the idaq home directory and type: '''peppoOnline'''.
 
 
 
Two windows open, the smaller one have buttons to control the plot to see, the biggest one shows the plot to monitor.
 
 
 
 
 
=Analysis=
 
Documents about runs, data taking and decoder are available here:
 
https://positron.jlab.org/wiki/index.php/Run_Information
 
 
 
 
 
 
 
== Macros for the Analysis ==
 
There are several macroes to be used for the analysis. All are in opsmdaq0 in the directory:
 
 
 
  /work/idaq/Analysis/macrofiles/
 
 
 
The macroes are:
 
* '''Pedestal_Int.cpp =>''' Pedestal_Int.cpp provides a gaussian fit of the pedestals. ONLY for the integral method. It generates the file:  
 
                        ''/work/idaq/Analysis/pedestalfiles/Pedestal_Int_Fit_(runnumber).dat''
 
To run it:
 
                          root
 
                          .L Pedestal_int.cpp
 
            main()
 
                          insert filename when asked with no extensions (.root)
 
 
 
== Issues and FAQ ==
 
* RunNumber: if the in the msql is different from the one in cool database, coda doesn't work. To solve it open dbedit => localhost => sessions and change the RunNumber
 
 
 
*If VME is completly stuck, to do hard reboot remotely :
 
login on opsmdaq0
 
type : sudo killall minicom
 
and : sudo minicom
 
If nothing appear, type in : CAEN
 
choose crate control
 
hit O to turn off and O again to turn back on
 
 
 
If some numbers already display the menu is already activated then hit O to turn off and O to turn back on
 

Latest revision as of 15:03, 30 May 2017

DAQ Hardware

  • Electronic Map of Mott Crates (May 06, 2014):

Media:ElectronicsMap_May062014.pdf

Media:ElectronicsMap_May062014.pptx

  • Cabling of FADC, Scalers, and TDC (February 12, 2014):

Media:Cable_Feb122014.pdf

Media:Cable_Feb122014.pptx

  • DAQ Timing (February 12, 2014):

Media:DAQ_Timing_Feb122014.pdf

Media:DAQ_Timing_Feb122014.pptx

  • Discriminator threshold adjustments (18January2015):

Media:Discriminator_threshold_adjustment.odt

Media:Discriminator_threshold_adjust.ods



DAQ Software



Manuals and References

  • Jefferson Lab Data Acquisition Group CODA Wiki [1]



To-do List

* Analysis List:
  1. Add delayed helicity analysis for Mott_Sample and Mott_SemiInt Modes. Delayed analysis is already included for Scalers and PEPPo_Int Modes.
  2. Modify decoder for the updated Mott_SemiInt mode. Started: /work/idaq/Mott/Analysis/1, Runs: 7642, 7672. Sample: 7673
  3. Update MottOnline
  4. Replace "PEPPo" with "Mott" in scripts, decoder, ... .


* New Delayed Helicity Readout Scheme for Physics Events Trigger


* Things to do to speed up the DAQ and reduce deadtime:
  1. Use the new SemiIntFast Mode:
    1. Upgrade the time-of-flight readout to the FADC TDC mode
    2. Upgrade the scalers readout to the FADC Scaler mode
    3. Add Block Readout
  2. Reduce the Mott Trigger rate by rejecting low energy electrons or dump events:
    1. Increase E-detector discriminator thresholds
    2. Veto dump events using beam timing signal