1#ifndef PFLIB_ROC_H_INCLUDED
2#define PFLIB_ROC_H_INCLUDED
11#include "pflib/logging/Logging.h"
19 static const int N_REGISTERS_PER_PAGE = 32;
25 void setRunMode(
bool active =
true);
30 uint8_t getValue(
int page,
int offset);
31 void setValue(
int page,
int offset, uint8_t value);
35 bool getDirectAccess(
int reg,
int bit);
36 void setDirectAccess(
const std::string& name,
bool val);
37 void setDirectAccess(
int reg,
int bit,
bool val);
116 const uint64_t& val);
157 const uint64_t& val);
Definition of compiling and decompiling functions between page numbers, register numbers,...
The object that does the compiling.
Definition Compile.h:55
Build a TestParameters parameter by parameter.
Definition ROC.h:150
test certain parameters before setting them back to old values
Definition ROC.h:130
TestParameters(const TestParameters &)=delete
cannot copy or assign this lock
~TestParameters()
applies the unset parameters to the ROC
Definition ROC.cxx:356
TestParameters(ROC &roc, std::map< std::string, std::map< std::string, uint64_t > > new_params)
Construct a set of test parameters.
Definition ROC.cxx:350
void dumpSettings(const std::string &filepath, bool decompile)
Dump the settings of the HGCROC into the input filepath.
Definition ROC.cxx:301
std::map< int, std::map< int, uint8_t > > applyParameters(const std::map< std::string, std::map< std::string, uint64_t > > ¶meters)
Apply the input parameter mapping onto the chip.
Definition ROC.cxx:240
void loadParameters(const std::string &file_path, bool prepend_defaults)
Load the input parameters onto the chip.
Definition ROC.cxx:272
std::map< std::string, uint64_t > getParameters(const std::string &page)
Get the parameters for the input page.
Definition ROC.cxx:214
TestParameters::Builder testParameters()
start a set of test parameters
Definition ROC.cxx:380
void setRegisters(const std::map< int, std::map< int, uint8_t > > ®isters)
set registers on the HGCROC to specific values
Definition ROC.cxx:163
void loadRegisters(const std::string &file_path)
set registers on the HGCROC to specific values
Definition ROC.cxx:203
std::map< std::string, std::map< std::string, uint64_t > > defaults()
Retrieve all of the manual-documented defaults for all parameters.
Definition ROC.cxx:236
std::map< int, std::map< int, uint8_t > > getRegisters(const std::map< int, std::map< int, uint8_t > > &selected={})
get registers from the HGCROC
Definition ROC.cxx:171
void applyParameter(const std::string &page, const std::string ¶m, const uint64_t &val)
Short-hand for applying a single parameter.
Definition ROC.cxx:294
logger get(const std::string &name)
Gets a logger with the input name for its channel.
Definition Logging.cxx:24
This version of the fast control code interfaces with the CMS Fast control library which can be contr...
Definition Backend.cxx:3
static void roc(const std::string &cmd, Target *pft)
ROC menu commands.
Definition roc.cxx:121