In order for pgpread to read the data, gui.py and pgpread needs to run as follows

python scripts/gui.py --enVcMask 0xD --dataDebug 0
 
./psdaq/build/drp/pgpread -d /dev/datadev_0 -c 1
 
#or for more recent
#./psdaq/build/drp/pgpread_timetool -d /dev/datadev_0 -c 1 -t -f

 

install lcls2

git clone git@github.com:slac-lcls/lcls2.git
 
source setup_env.sh

./build_all.sh 

 

add lcls2-pcie-apps to the lcls2 directory.  This allows one to make changes to the lcls2-pcie-apps code and see the results.  Not part of the production or package deployment process.

cd $TOP/slac-lcls/lcls2/ 
 
conda activate lcls2daq_ttdev
 
source setup_env.sh

cd $TOP/lcls2-pcie-apps
 
python setup.py develop --prefix=/u1/sioan/slac-lcls/lcls2/install

 

to run gui.py without pgp read use the following

 python scripts/gui.py --enVcMask 0xff --dataDebug 1

 

the pgpread.cc source file is located in 

$TOP/slac-lcls/lcls2/psdaq/drp

 

and make file is located in 

$TOP/slac-lcls/lcls2/psdaq/build

 

to build pgpread, navigate to build directory,

conda activate lcls2daq
 
make

____________________________________________________________________________

to create the conda environment from the yaml file.

open up env_create.yaml and change PYTHONVER to 3.7.4.  Not sure where PYTHONVER can be picked up from with manually changing the - python entry it in the yaml file.

also, for timetooldev, rogue-ne needs to be set to "v3.5.0".  The "v" is needed at the beginning.

#create the conda environment
conda env create --name lcls2daq --file relmanage/env_create.yaml
 
#to use local pcieapps package instead of conda pcieapps
pip uninstall package timetooldev
# and then proceed to use python setup.py as described for lcls-pcie-apps.
 
###don't do this below
#conda remove pcieapps
#but this will also remove libboost and py-bost.  Those dependencies don't get reinstalled with a conda install pcieapps.  Instead, need to manually reinstall them.
#conda install -c anaconda libboost
#conda install -c anaconda py-boost

____________________________________________________________________________

 

the cmakelist is located in 

$TOP/slac-lcls/lcls2/psdaq/drp
conda activate lcls2daq
 
make

 

 

instructions for creating a conda package

conda activate lcls2daq
 
conda install -c anaconda anaconda-client
conda install conda-build
conda build /u1/sioan/slac-lcls/relmanage/recipes/pcieapps/

 

uploading the conda package

conda install anaconda-client  #only needs to be done once per machine.
 
anaconda login                 #only needs to be done once a year.  Need to register the account on anaconda.org
 
anaconda upload -u lcls-ii /u1/sioan/miniconda3/conda-bld/noarch/pcieapps-0.0.1-py_0.tar.bz2 --force