GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - LDMX-Software/pflib: pretty fine library and tool for interacting with ECONs and ROCs

BranchesTags
Open more actions menu

Latest commit

 

History

711 Commits
711 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
ana
ana
 
 
app
app
 
 
config
config
 
 
docs
docs
 
 
env
env
 
 
include/pflib
include/pflib
 
 
register_maps
register_maps
 
 
scripts
scripts
 
 
src/pflib
src/pflib
 
 
test
test
 
 
.clang-format
.clang-format
 
 
.dir-locals.el
.dir-locals.el
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
CMakeLists.txt
CMakeLists.txt
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
GenerateVersionHeader.cmake
GenerateVersionHeader.cmake
 
 
README.md
README.md
 
 
justfile
justfile
 
 

Repository files navigation

pflib

The Pretty Fine Libary (pflib) encapsulates library functionality for communicating with the HGCROC on the HCAL and ECAL front ends and provides a simple user frontend for use with the ZCU102-based readouts (both direct readout and via lpGBT).

The library is separated from the rest of the development for efficiency at this time.

Quickstart

# SSH to a ZCU connected to an HGCROC
git clone https://github.com/LDMX-Software/pflib.git
cd pflib
cmake -B build -S . # may need to provide paths to dependencies
cd build
make
./pftool -h # print help

on DAQ server at SLAC

On this machine, conda is being used to standardize the environment.

source /u1/ldmx/miniconda3/etc/profile.d/conda.sh
conda activate ldmx-env-base

This activation needs to be done before you configure (cmake) or build (make) pflib. Notice that this environment is not ldmx-env. We cannot use the environment that the Rogue run control uses because that environment already has a build of pflib in it that will conflict with your developments.

Usage with Rogue Run Control

Python bindings for specific functions have been implemented here, so you can import them as long as you install pflib and update your environment accordingly.

cmake -DCMAKE_INSTALL_PREFIX=path/to/install -B build -S .
cd build
make install
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:path/to/install/lib
PYTHONPATH=${PYTHONPATH}:path/to/install/lib
  • PYTHONPATH tells Python where it can find pypflib
  • LD_LIBRARY_PATH allows pypflib to link to the other pflib libraries

If running Rogue Run Control within a conda environment, there is a conda recipe for pflib that can be used to build a local conda package that can be installed into the conda environment

Directory Structure

  • ana : shared Python snippets for useful analyses (mostly making plots)
  • app : executables and supporting source files for executables
  • config : helpful/example YAML files
  • docs : documentation generation
  • env : build context for a container image emulating the ZCU software environment
  • include : header files of pflib library
  • register_maps : files for mapping parameters to their registers on the chip
  • src : implementation files of pflib library
  • test : source files to build a testing executable with Boost.Test

Maintainer

@tomeichlersmith

Contributors

About

pretty fine library and tool for interacting with ECONs and ROCs

ldmx-software.github.io/pflib/

Topics

cpp

Resources

Readme

Contributing

Contributing
Activity
Custom properties

Stars

6 stars

Watchers

2 watching

Forks

4 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.