|
unsigned int | crateFromFECNumber (unsigned int fecnumber) const |
|
unsigned int | FECSlotFromFECNumber (unsigned int fecnumber) |
|
unsigned int | getCrate (unsigned int i) const |
|
unsigned int | getFECNumber (unsigned int i) const |
|
unsigned int | getFECSlot (unsigned int i) |
|
unsigned int | getNFECBoards () const |
|
unsigned int | getVMEBaseAddress (unsigned int i) const |
|
| PixelFECConfig (std::string filename) |
|
| PixelFECConfig (std::vector< std::vector< std::string > > &tableMat) |
|
unsigned int | VMEBaseAddressFromFECNumber (unsigned int fecnumber) const |
|
void | writeASCII (std::string dir="") const override |
|
void | writeXML (pos::PixelConfigKey key, int version, std::string path) const override |
|
void | writeXML (std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override |
|
void | writeXMLHeader (pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override |
|
void | writeXMLTrailer (std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override |
|
std::string | creator () |
|
std::string | date () |
|
std::string | description () |
|
std::string | getAuthor () const |
|
std::string | getComment () const |
|
| PixelConfigBase (std::string description, std::string creator, std::string date) |
|
void | setAuthor (std::string author) |
|
void | setComment (std::string comment) |
|
virtual void | writeXML (std::ofstream *out) const |
|
virtual void | writeXMLHeader (pos::PixelConfigKey key, int version, std::string path, std::ofstream *out) const |
|
virtual void | writeXMLTrailer (std::ofstream *out) const |
|
virtual | ~PixelConfigBase () |
|
This class specifies which FEC boards are used and how they are addressed.
" "
Definition at line 24 of file PixelFECConfig.h.
PixelFECConfig::PixelFECConfig |
( |
std::vector< std::vector< std::string > > & |
tableMat | ) |
|
EXTENSION_TABLE_NAME: (VIEW: )
CONFIG_KEY NOT NULL VARCHAR2(80) KEY_TYPE NOT NULL VARCHAR2(80) KEY_ALIAS NOT NULL VARCHAR2(80) VERSION VARCHAR2(40) KIND_OF_COND NOT NULL VARCHAR2(40) PIXFEC_NAME NOT NULL VARCHAR2(200) CRATE_NUMBER NOT NULL NUMBER(38) SLOT_NUMBER NUMBER(38) VME_ADDR NOT NULL VARCHAR2(200)
Definition at line 18 of file PixelFECConfig.cc.
19 std::map<std::string, int> colM;
20 std::vector<std::string> colNames;
36 colNames.push_back(
"CONFIG_KEY");
37 colNames.push_back(
"KEY_TYPE");
38 colNames.push_back(
"KEY_ALIAS");
39 colNames.push_back(
"VERSION");
40 colNames.push_back(
"KIND_OF_COND");
41 colNames.push_back(
"PIXFEC_NAME");
42 colNames.push_back(
"CRATE_NUMBER");
43 colNames.push_back(
"SLOT_NUMBER");
44 colNames.push_back(
"VME_ADDR");
46 for (
unsigned int c = 0;
c < tableMat[0].size();
c++) {
47 for (
unsigned int n = 0;
n < colNames.size();
n++) {
48 if (tableMat[0][
c] == colNames[
n]) {
49 colM[colNames[
n]] =
c;
65 for (
unsigned int r = 1;
r < tableMat.size();
r++)
67 unsigned int fecnumber;
69 unsigned int vme_base_address;
75 fecnumber = atoi(tableMat[
r][colM[
"PIXFEC_NAME"]].c_str());
76 crate = atoi(tableMat[
r][colM[
"CRATE_NUMBER"]].c_str());
77 string hexVMEAddr = tableMat[
r][colM[
"VME_ADDR"]];
78 sscanf(hexVMEAddr.c_str(),
"%x", &vme_base_address);
81 tmp.setFECParameters(fecnumber, crate, vme_base_address);
References c, fecconfig_, dqmiodumpmetadata::n, alignCSCRings::r, and createJobs::tmp.