Difference between revisions of "NPS DAQ in Hall C"

From Cuawiki
Jump to navigation Jump to search
Line 1: Line 1:
 
== Environment Setup ==
 
== Environment Setup ==
- The CODA environment is setup using [https://github.com/JeffersonLab/coda_scripts coda_scripts]
+
* The CODA environment is setup using [https://github.com/JeffersonLab/coda_scripts coda_scripts]
- User Defined CODA environment variables
+
* User Defined CODA environment variables
 
  # CODA for ROC/VTP
 
  # CODA for ROC/VTP
 
  setenv CODA ${HOME}/coda_3.10_devel
 
  setenv CODA ${HOME}/coda_3.10_devel
Line 11: Line 11:
 
  setenv SESSION NPS
 
  setenv SESSION NPS
 
  setenv EXPID NPS
 
  setenv EXPID NPS
- then source the coda scripts setup
+
* then source the coda scripts setup
 
  source ${CODA_SCRIPTS}/setupCODA3.tcsh
 
  source ${CODA_SCRIPTS}/setupCODA3.tcsh
 
   
 
   
Line 29: Line 29:
  
 
=== VTP ROC ===
 
=== VTP ROC ===
- CODA environment loaded from .tcshrc from setup script:
+
* CODA environment loaded from .tcshrc from setup script:
 
  hccoda@nps-vtp1:~/setup_nps-vtp_3.10
 
  hccoda@nps-vtp1:~/setup_nps-vtp_3.10
  
 
=== PEB ===
 
=== PEB ===
- CODA environment loaded from .cshrc from setup script:
+
* CODA environment loaded from .cshrc from setup script:
 
  coda@cdaql6:~/bin/nps_coda_user_setup
 
  coda@cdaql6:~/bin/nps_coda_user_setup
  

Revision as of 00:33, 16 May 2023

Environment Setup

  • The CODA environment is setup using coda_scripts
  • User Defined CODA environment variables
# CODA for ROC/VTP
setenv CODA ${HOME}/coda_3.10_devel
# ---OR--- CODA for Platform/PEB
#setenv CODA ${HOME}/coda/3.10_devel
setenv CODA_SCRIPTS ${CODA}/coda_scripts

setenv SESSION NPS
setenv EXPID NPS
  • then source the coda scripts setup
source ${CODA_SCRIPTS}/setupCODA3.tcsh

VME ROC

  • CODA environment loaded from .tcshrc from setup script:
hccoda@nps-vme1:~/setup_nps-vme_3.10
  • Other environment settings
    • LINUXVME
setenv LINUXVME ${HOME}/nps-vme/linuxvme
setenv LINUXVME_INC $LINUXVME/include
setenv LINUXVME_LIB $LINUXVME/$MACHINE/lib
setenv LINUXVME_BIN $LINUXVME/$MACHINE/bin

setenv PATH ${LINUXVME_BIN}:$PATH
setenv LD_LIBRARY_PATH ${LINUXVME_LIB}:${LD_LIBRARY_PATH}

VTP ROC

  • CODA environment loaded from .tcshrc from setup script:
hccoda@nps-vtp1:~/setup_nps-vtp_3.10

PEB

  • CODA environment loaded from .cshrc from setup script:
coda@cdaql6:~/bin/nps_coda_user_setup

VME Module Configuration

FADC250 Configuration

hccoda@nps-vme2:~/nps-vme/cfg/nps-vme2.cfg

VME Readout Lists

hccoda@nps-vme2:~/nps-vme/rol/

nps_vme_list.c

  • readout of TI and fadc250
  • compiles as
nps_vme_master_list.so
nps_vme_slave_list.so
  • master configured for triggers from TSINPUTS: TS#1, TS#2
  • fadc250 configuration file read from "User Configuration file"
  • ti configuration read from "User String" - not yet implemented
    • vtp - not yet implemented
    • slaveN, N=[1,8] - not yet implemented

ti_list.c

  • readout of TI
  • compiles as
ti_master_list.so
ti_slave_list.so
  • master configured for triggers from TSINPUTS: TS#1, TS#2
  • ti configuration read from "User String"
    • vtp
    • slaveN, N=[1,8] - not yet implemented

event_list.crl

  • Required for user events from VME ROC.
  • compiles as
event_list.so

CODA Configurations

  • vme2
    • ROCs
      • npsvme2
ROL1: nps-vme/rol/nps_vme_master_list.so
ROL2: nps-vme/rol/event_list.so
User Config: nps-vme/cfg/nps-vme2.cfg
    • PEBs: PEB1
  • COOL_HOME defined as
hccoda@cdaql6:~/coda/cool
  • CODA_COMPONENT_TABLE defined as
hccoda@cdaql6:~/coda/coda_scripts/config/NPS/coda_component_table.cfg
#
# CODA Component table - NPS EELsetup
#
# hostname	component type    component name
nps-vme1	ROC	  	  npsvme1
cdaql6		PEB		  PEB1