pflib v3.15.1-5-ge6391b0
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
roc.cxx File Reference

ROC menu commands and support functions. More...

#include <yaml-cpp/yaml.h>
#include <algorithm>
#include "pftool.h"
Include dependency graph for roc.cxx:

Functions

 ENABLE_LOGGING ()
 
static void roc_render (Target *pft)
 Simply print the currently selective ROC so that user is aware which ROC they are interacting with by default.
 
static void roc_expert_render (Target *tgt)
 Extra instruction for user.
 
static void roc_expert (const std::string &cmd, Target *tgt)
 ROC.EXPERT menu commands.
 
static void apply_calib (Target *pft, const std::string &fname)
 ROC menu commands.
 
static void roc (const std::string &cmd, Target *pft)
 

Detailed Description

ROC menu commands and support functions.

Function Documentation

◆ apply_calib()

static void apply_calib ( Target * pft,
const std::string & fname )
static

ROC menu commands.

When necessary, the ROC interaction object pflib::ROC is created via pflib::Target::roc with the currently active roc.

Commands

Parameters
[in]cmdROC command
[in]pftactive target Load a calibration set onto the ROCs of this target

The file holds an optional base settings file applied to every ROC, one rocN block of settings per ROC, masks (rocN -> mask parameter -> list of channels) and an optional fc.calib_delay. Other keys (meta, expected_pedestal) are bookkeeping and ignored here.

◆ roc_expert()

static void roc_expert ( const std::string & cmd,
Target * tgt )
static

ROC.EXPERT menu commands.

Detailed interaction with ROC doing things like interacting with the registers that hold the HGCROC parameters without using the compiler

Commands

  • PAGE : print a page of raw registers pflib::ROC::readPage
  • POKE : set a specific register to a specific value pflib::ROC::setValue
  • LOAD : load a CSV of register values onto chip pflib::ROC::loadRegisters
  • DUMP : dump HGCROC registers to CSV pflib::ROC::dumpSettings with decompile=false
  • DIRECT_ACCESS_PARAMETERS : prints all direct access parameters in the ROC
  • GET_DIRECT_ACCESS : print direct access parameters and their values
  • SET_DIRECT_ACCESS : set direct access parameter to specific value

◆ roc_render()

static void roc_render ( Target * pft)
static

Simply print the currently selective ROC so that user is aware which ROC they are interacting with by default.

Parameters
[in]pftactive target (not used)