Difference between revisions of "GeP ECal cosmics DAQ"
From Hall A Wiki
(→Run the DAQ) |
|||
(23 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
2 FADCs in slot 8 and 9 | 2 FADCs in slot 8 and 9 | ||
− | * | + | === Run the DAQ === |
+ | * Run CODA | ||
+ | # <code>ssh -Y adaq@adaq1</code> | ||
+ | # <code>ssh -Y sbs-onl@adaq1</code> | ||
+ | # <code>connect_daq_vnc</code> (use ada password) | ||
+ | # Open a terminal, and run <code>startCoda</code> | ||
+ | # Kill CODA: <code>kcoda</code> | ||
+ | * Run DiagGUI in the VNC session | ||
+ | # <code>cd SBS-ECAL/fe_diaggui</code> | ||
+ | # <code>./DiagGUI ROC_sbsecal.txt</code> | ||
+ | * Raw data files are saved at: <code>/chafs2/work1/sbs/ECAL/raw/</code> | ||
− | + | === ECAL VTP trigger === | |
+ | * Each block reports a hit that is above the TET threshold to VTP and its crossing threshold time. | ||
+ | * For a super module, if there are more than "VTP_SBS_ECAL_COSMIC_MLTP_THR" blocks having a hit within "VTP_SBS_ECAL_COSMIC_HIT_DT", it will register a trigger candidate at the time when the "VTP_SBS_ECAL_COSMIC_MLTP_THR" requirement is first met. The trigger candidate for each super module is reported. | ||
+ | * For all three super modules, if there are more than "VTP_SBS_ECAL_COSMIC_NSMO_THR" super modules having a trigger candidate within "VTP_SBS_ECAL_COSMIC_SMO_DT", a trigger is generated at the time units when the "VTP_SBS_ECAL_COSMIC_NSMO_THR" are met. The trigger is reported. | ||
+ | * VTP_SBS_ECAL_COSMIC_SMO_DT>= VTP_SBS_ECAL_COSMIC_HIT_DT | ||
− | + | === VNC connection === | |
+ | * ssh adaq@adaq1 | ||
+ | * ssh sbs-onl@eel124gemdaq | ||
+ | * Start a VNC session: start_daq_vnc | ||
+ | * Connect to a VNC session: connect_daq_vnc (same password as "adaq") | ||
− | ./ | + | === Set up CODA === |
+ | * Use "sbs-onl@eel124gemdaq" to run CODA | ||
+ | * In <code>sbs-onl@eel124gemdaq: .bashrc</code>, I changed <br/> | ||
+ | <pre>EXPID=EELDAQ | ||
+ | SESSION=EELRP | ||
+ | export CODA_SCRIPTS="${HOME}/SBS-GENRP/coda_scripts"</pre> | ||
+ | to | ||
+ | <pre> | ||
+ | EXPID=COSMICDAQ | ||
+ | SESSION=ECALDAQ | ||
+ | export CODA_SCRIPTS="${HOME}/SBS-ECAL/coda_scripts" | ||
+ | </pre> | ||
+ | * Create a softlink at "eel124gemdaq": <code>SBS-ECAL -> /adaqfs/home/sbs-onl/ecal/</code>, and add a component table: <code>SBS-ECAL/coda_scripts/config/ECALDAQ/coda_component_table.cfg</code> | ||
+ | * Change the <code>$COOL_HOME</code> and <code>$JAVA_HOME</code> in <code>SBS-ECAL/coda_scripts/setupCODA3.bash</code> | ||
+ | * Create a configuration "ecalcosmic" with "sbsvme22" and "hksvtp" in jceidt | ||
+ | * Change <code>$EXPID</code> and <code>$SESSION</code> in <code>SBS-ECAL/coda_scripts/coda_platform.sh</code> | ||
+ | * Modify <code>/etc/systemd/system/platform.service</code> to point to the above <code>coda_platform.sh</code>, and restart the platform.service | ||
+ | |||
+ | === Set up VTP === | ||
+ | * Update VTP firmware as root@adaq1: | ||
+ | # Update the firmware to use "fe_vtp_v7_sbs_ecal.bin" and "fe_vtp_hallb_z7.bin" | ||
+ | # Put the firmware under <code>/diskless/CentOS7-armv7/root/usr/local/vtp/params/firmwares</code> | ||
+ | # Add the host name and firmware versions to <code>/diskless/CentOS7-armv7/root/usr/local/vtp/params/firmwares/vtp_firmware.txt</code> | ||
+ | |||
+ | At sbs-onl@hksvtp: | ||
+ | * VTP configuration file: <code>vtp/cfg/ecalvtp.cnf</code> | ||
+ | * Readout list at <code>vtp/vtp/rol/vtp_list.c</code> | ||
+ | |||
+ | At sbs-onl@eel124gemdaq: | ||
+ | * Update the DiagGUI to the latest version with ECAL implemented: <code>SBS-ECAL/fe_diaggui/</code> | ||
+ | |||
+ | === FADC === | ||
+ | At sbs-onl@sbsvme22: | ||
+ | * Update the firmware to use "fe_fadc_adc_1b07.mcs" and "fe_fadc_ctrl_vxs_readout_bb.mcs" at <code>linuxvme/fadc/firmware</code> | ||
+ | * Readout list at <code>rol/ecal_list.c</code> | ||
+ | * Configuration file at <code>cfg/fadc250/ecal.cnf</code> | ||
+ | |||
+ | === FADC Scaler === | ||
+ | * Scaler server auto start is set at jceidt "Expert->Supervisor Process" |
Latest revision as of 16:17, 13 May 2024
- CPU : sbsvme22
- VTP : hksvtp portservhats4 port 3 geptestvxs.jlab.org
- VXS crate : 129.57.188.101
2 FADCs in slot 8 and 9
Contents
Run the DAQ
- Run CODA
-
ssh -Y adaq@adaq1
-
ssh -Y sbs-onl@adaq1
-
connect_daq_vnc
(use ada password) - Open a terminal, and run
startCoda
- Kill CODA:
kcoda
- Run DiagGUI in the VNC session
-
cd SBS-ECAL/fe_diaggui
-
./DiagGUI ROC_sbsecal.txt
- Raw data files are saved at:
/chafs2/work1/sbs/ECAL/raw/
ECAL VTP trigger
- Each block reports a hit that is above the TET threshold to VTP and its crossing threshold time.
- For a super module, if there are more than "VTP_SBS_ECAL_COSMIC_MLTP_THR" blocks having a hit within "VTP_SBS_ECAL_COSMIC_HIT_DT", it will register a trigger candidate at the time when the "VTP_SBS_ECAL_COSMIC_MLTP_THR" requirement is first met. The trigger candidate for each super module is reported.
- For all three super modules, if there are more than "VTP_SBS_ECAL_COSMIC_NSMO_THR" super modules having a trigger candidate within "VTP_SBS_ECAL_COSMIC_SMO_DT", a trigger is generated at the time units when the "VTP_SBS_ECAL_COSMIC_NSMO_THR" are met. The trigger is reported.
- VTP_SBS_ECAL_COSMIC_SMO_DT>= VTP_SBS_ECAL_COSMIC_HIT_DT
VNC connection
- ssh adaq@adaq1
- ssh sbs-onl@eel124gemdaq
- Start a VNC session: start_daq_vnc
- Connect to a VNC session: connect_daq_vnc (same password as "adaq")
Set up CODA
- Use "sbs-onl@eel124gemdaq" to run CODA
- In
sbs-onl@eel124gemdaq: .bashrc
, I changed
EXPID=EELDAQ SESSION=EELRP export CODA_SCRIPTS="${HOME}/SBS-GENRP/coda_scripts"
to
EXPID=COSMICDAQ SESSION=ECALDAQ export CODA_SCRIPTS="${HOME}/SBS-ECAL/coda_scripts"
- Create a softlink at "eel124gemdaq":
SBS-ECAL -> /adaqfs/home/sbs-onl/ecal/
, and add a component table:SBS-ECAL/coda_scripts/config/ECALDAQ/coda_component_table.cfg
- Change the
$COOL_HOME
and$JAVA_HOME
inSBS-ECAL/coda_scripts/setupCODA3.bash
- Create a configuration "ecalcosmic" with "sbsvme22" and "hksvtp" in jceidt
- Change
$EXPID
and$SESSION
inSBS-ECAL/coda_scripts/coda_platform.sh
- Modify
/etc/systemd/system/platform.service
to point to the abovecoda_platform.sh
, and restart the platform.service
Set up VTP
- Update VTP firmware as root@adaq1:
- Update the firmware to use "fe_vtp_v7_sbs_ecal.bin" and "fe_vtp_hallb_z7.bin"
- Put the firmware under
/diskless/CentOS7-armv7/root/usr/local/vtp/params/firmwares
- Add the host name and firmware versions to
/diskless/CentOS7-armv7/root/usr/local/vtp/params/firmwares/vtp_firmware.txt
At sbs-onl@hksvtp:
- VTP configuration file:
vtp/cfg/ecalvtp.cnf
- Readout list at
vtp/vtp/rol/vtp_list.c
At sbs-onl@eel124gemdaq:
- Update the DiagGUI to the latest version with ECAL implemented:
SBS-ECAL/fe_diaggui/
FADC
At sbs-onl@sbsvme22:
- Update the firmware to use "fe_fadc_adc_1b07.mcs" and "fe_fadc_ctrl_vxs_readout_bb.mcs" at
linuxvme/fadc/firmware
- Readout list at
rol/ecal_list.c
- Configuration file at
cfg/fadc250/ecal.cnf
FADC Scaler
- Scaler server auto start is set at jceidt "Expert->Supervisor Process"