pflib v3.9.4-7-gb2e7f4f
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
pftool::State Class Reference

static variables to share across menu More...

#include <pftool.h>

Collaboration diagram for pftool::State:
[legend]

Public Member Functions

void init (Target *tgt, int readout_config)
 initialize the state with a Target
 
const std::vector< std::string > & roc_page_names () const
 get page names for tab completion
 
const std::vector< std::string > & roc_param_names (const std::string &page) const
 get the parameter names for tab completion
 
const std::vector< std::string > & econ_page_names (pflib::ECON econ) const
 get page names for tab completion
 
const std::vector< std::string > & econ_param_names (pflib::ECON econ, const std::string &page) const
 get the parameter names for tab completion
 
int readout_config () const
 get the readout configurion
 
bool readout_config_is_zcu () const
 check if we are reading out on a zcu
 
bool readout_config_is_hcal () const
 check if we are reading out a Hcal HGCROC Board
 

Public Attributes

int iroc {0}
 index of HGCROC currently being interacted with
 
int iecon {0}
 index of ECON currently being interacted with
 
int ilink {0}
 index of link currently being interacted with
 
Target::DaqFormat daq_format_mode {Target::DaqFormat::SIMPLEROC}
 current format mode to use
 
int daq_contrib_id {20}
 contributor ID of daq
 
int daq_rate {100}
 daq collection rate in Hz
 
std::string last_run_file {".last_run_file"}
 path to where the run number is stored
 

Static Public Attributes

static constexpr int CFG_HCALFMC = 1
 
static constexpr int CFG_HCALOPTO_ZCU = 11
 
static constexpr int CFG_ECALOPTO_ZCU = 12
 
static constexpr int CFG_HCALOPTO_BW = 21
 
static constexpr int CFG_ECALOPTO_BW = 22
 

Private Attributes

std::map< int, std::vector< std::string > > roc_page_names_
 list of page names for tab completion per ROC ID
 
std::map< int, std::map< std::string, std::vector< std::string > > > roc_param_names_
 list of parameter names for tab-completion per ROC ID
 
std::map< std::string, std::vector< std::string > > econ_page_names_
 list of page names for tab completion per ECON type
 
std::map< std::string, std::map< std::string, std::vector< std::string > > > econ_param_names_
 list of parameter names for tab-completion per ECON type
 
int cfg_
 readout configuration
 

Detailed Description

static variables to share across menu

Member Function Documentation

◆ init()

void pftool::State::init ( Target * tgt,
int readout_config )

initialize the state with a Target

set default format mode depending on readout config

if fiberless, default to SIMPLEROC, otherwise assume ECOND readout

copy over page and param names for tab completion


The documentation for this class was generated from the following files: