Difference between revisions of "CH Starting CODA & Reading CODA Data"

From New IAC Wiki
Jump to navigation Jump to search
Line 41: Line 41:
 
Source CODA 2.6.2 in each with the following command
 
Source CODA 2.6.2 in each with the following command
  
  source CODA/2.6.2/setup
+
  ''source CODA/2.6.2/setup''
 
 
 
 
  
 
====old====
 
====old====

Revision as of 17:49, 26 August 2021

Current as of 8/9/21

For data analysis

DAQ1

Commands

  • source ~/CODA/coda_scripts/setupCODA3.bash
  • source ~/src/ROOT/root-6.22.00/obj/bin/thisroot.sh
  • cd /data/
  • ~daq/CODA/CODAreader/ROOT_V6.22/PAA/evio2nt -fr####.dat > /dev/null
  • Since future me is probably just as dumb as I am now, the r####.dat is the dat file output from the event manager (should match what is in RCGUI)
  • Example: r7074.dat

DAQ2

  • source CODA/3.10/coda_scripts/setupCODA3.tcsh
  • source ~/src/ROOT/v6.20/builddir/bin/thisroot.tcsh
  • cd /data/
  • ~daq/CODA?CODAreader/ROOT_V6.22/PAA/evio2nt -fr####.dat >/dev/null

Starting CODA and RCGUI

DAQ2

2.6.2

new

First open 7 different terminal windows

Source CODA 2.6.2 in each with the following command

source CODA/2.6.2/setup

old

Startup CODA programs in separate xterminal sessions

type the following to setup the CODA environmental variables in every xterm

source CODA/2.6.2/setup

Then start the following processes in the separate xterminals

start up msqld, et_start, rcplatform   . 

(do the following two commands in a csh & separate xterms)

coda_eb_rc3 -i -s DAQ -n eb1 -t CDEB
coda_er_rc3 -i -s DAQ -n LDS_ER -t ER

login to the ROC (ssh rocdaq1) and start the process

ssh root@rocdaq1
csh
source CODA/2.6.2/setup
coda_roc_rc3 -t ROC -n rocdaq1

now startup the runcontrol GUI

rcgui

do the following menu calls in rcgui

Configuration->Cool

select "PAA"

click the Configure button (wrench & screwdriver icon on upper left)

click the download button (floppy disk icon)

click "Prestart" and then "Go" buttons

error FAQ

Discrepancy between run numbers

I see the following error message when I click pre start in CODA. Discrepancy between run numbers: Coda2 db = 4384 Cool db = 4385 CodaRcPrestart service aborted.


The fastest fix is to go to the "expert" menu un rcgui and choose Set Run Number for both databases.
This will resync the two databases.

CODA2 dp communication error

Restart the process "et_start"

rm /tmp/et_sys_DAQ
et_start

If et_start fails to restart with the following error message:

"ERROR: et_system_start, ET system process already exists!"

find the PID number with

 netstat -ap | grep et_start

, kill the process, then try again.

ERROR: Data not ready in event 12164121 evStored = 0

The above error started happening.

Its not a multiple TDC hit just before a DAQ trigger


The problem was the the TDC sopt pulse was too close to the 25 ns width limit. I increased it to 40 ns and the problem went away.

Lost connection to the platform

rcgui killed EB and ER because it "lost connection to the platform".

The above error happens intermittently.

I think this is because the host computers hard disk is failing. Ben has made an image of the current disk which we will transfer, OS and all, to a new disk to see if this error stops.


Can not find container_admin

2013/06/12 10:03:01 Component = eb1 Host = daq2.physics.isu.edu registered with the platform.

ControlDesigner ERROR :Can not find container_admin on the node daq2.physics.isu.edu

Cant connect to MSQL server=

moved daq2 to the IAC. hardcoded the IP addresses to the names in /etc/hosts file to bypass DNS server

The ROC appears to still be unable to talk to the MSQL server running on daq2 because it is using daq2's old IP address event though it pings the right address through the /etc/hosts file. perhaps the MSQL server address is cardcoded somewhere?

[root@rocdaq1 /etc]# coda_roc_rc3 -t ROC -n rocdaq1 Connect: Connection timed out msql error : Can't connect to MSQL server on 134.50.3.130 Connect: Connection timed out MSQL_Cmd_Connect: error 'cause socket < 0 msql: Can't connect to MSQL server on 134.50.3.130

solution, the MSQL_HOME environmental variable was set to the IP address instead of the computer name

turn off the firewall

On CentOS 7 you use the command

systemctl status firewalld

to check the firewall status

to turn off the firewall

systemctl stop firewalld



PAS_Experiment