This is the documentation about PixelNameTranslation... More...
#include <PixelPortCardConfig.h>
Public Member Functions | |
unsigned int | AOHBiasAddressFromAOHNumber (unsigned int AOHNumber) const |
unsigned int | AOHGainAddressFromAOHNumber (unsigned int AOHNumber) const |
unsigned int | getAOHBias (unsigned int AOHNumber) const |
unsigned int | getAOHGain (unsigned int AOHNumber) const |
unsigned int | getccuAddress () const |
unsigned int | getchannelAddress () const |
unsigned int | getdeviceAddress (unsigned int i) const |
unsigned int | getdeviceAddressForSetting (std::string settingName) const |
unsigned int | getdevicesize () const |
unsigned int | getdeviceValues (unsigned int i) const |
unsigned int | getdeviceValuesForAddress (unsigned int address) const |
unsigned int | getdeviceValuesForSetting (std::string settingName) const |
unsigned int | geti2cSpeed () const |
const std::string & | getPortCardName () const |
unsigned int | getringAddress () const |
std::string | getTKFECID () const |
std::string | gettype () const |
unsigned int | new_PLL_CTR2_value (std::string CTR4or5, unsigned int last_CTR2) const |
PixelPortCardConfig (std::string) | |
PixelPortCardConfig (std::vector< std::vector< std::string > > &tableMat) | |
void | setAOHGain (unsigned int AOHNumber, unsigned int value) |
void | setdeviceValues (unsigned int address, unsigned int value) |
void | setdeviceValues (std::string settingName, unsigned int value) |
void | setPortCardName (std::string newName) |
void | writeASCII (std::string dir="") const |
void | writeXML (pos::PixelConfigKey key, int version, std::string path) const |
virtual void | writeXML (std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const |
virtual void | writeXMLHeader (pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const |
virtual void | writeXMLTrailer (std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const |
Private Member Functions | |
std::string | AOHGainStringFromAOHNumber (unsigned int AOHNumber) const |
bool | containsDeviceAddress (unsigned int deviceAddress) const |
bool | containsSetting (std::string settingName) const |
void | fillDBToFileAddress () |
void | fillNameToAddress () |
void | setAOHGain (std::string settingName, unsigned int value) |
void | setDataBaseAOHGain (std::string settingName, unsigned int value) |
void | sortDeviceList () |
Private Attributes | |
unsigned int | aohcount_ |
unsigned int | ccuAddress_ |
unsigned int | channelAddress_ |
std::vector< std::pair < unsigned int, unsigned int > > | device_ |
unsigned int | i2cSpeed_ |
std::vector< unsigned int > | key_ |
key used for sorting device_ | |
std::map< std::string, std::string > | nameDBtoFileConversion_ |
std::map< std::string, unsigned int > | nameToAddress_ |
std::string | portcardname_ |
unsigned int | ringAddress_ |
std::string | TKFECID_ |
std::string | type_ |
This is the documentation about PixelNameTranslation...
" "
This class specifies the settings on the TKPCIFEC and the settings on the portcard
" "
This class provides the mapping between portcards and the modules controlled by the card
Definition at line 27 of file PixelPortCardConfig.h.
pos::PixelPortCardConfig::PixelPortCardConfig | ( | std::vector< std::vector< std::string > > & | tableMat | ) |
PixelPortCardConfig::PixelPortCardConfig | ( | std::string | filename | ) |
Definition at line 365 of file PixelPortCardConfig.cc.
References ccuAddress_, channelAddress_, containsSetting(), gather_cfg::cout, device_, fillDBToFileAddress(), fillNameToAddress(), getdeviceAddressForSetting(), getdeviceValuesForSetting(), i2cSpeed_, recoMuon::in, pos::PortCardSettingNames::k_PLL_CTR2, pos::PortCardSettingNames::k_PLL_CTR4, pos::PortCardSettingNames::k_PLL_CTR4or5, pos::PortCardSettingNames::k_PLL_CTR5, nameToAddress_, new_PLL_CTR2_value(), AlCaHLTBitMon_ParallelJobs::p, portcardname_, ringAddress_, setAOHGain(), TKFECID_, and type_.
: PixelConfigBase(" "," "," "){ string mthn = "[PixelPortCardConfig::PixelPortCardConfig()]\t\t " ; //std::cout << __LINE__ << "]\t" << mthn << "filename:"<<filename<<std::endl; size_t portcardpos=filename.find(std::string("portcard_")); //std::cout << __LINE__ << "]\t" << mthn << "portcardpos:"<<portcardpos<<std::endl; assert(portcardpos!=std::string::npos); size_t datpos=filename.find(std::string(".dat")); //std::cout << __LINE__ << "]\t" << mthn << "datpos:"<<datpos<<std::endl; assert(datpos!=std::string::npos); assert(datpos>portcardpos); portcardname_=filename.substr(portcardpos+9,datpos-portcardpos-9); //std::cout << "Portcard name extracted from file name:"<<portcardname_<<std::endl; std::ifstream in(filename.c_str()); if(!in.good()){ std::cout << __LINE__ << "]\t" << mthn << "Could not open: " << filename << std::endl; throw std::runtime_error("Failed to open file "+filename); } else { std::cout << __LINE__ << "]\t" << mthn << "Opened: " << filename << std::endl; } string dummy; in >> dummy; if ( dummy == "Name:" ) // check that port card name matches the file name { in >> dummy; assert( dummy==portcardname_ ); in >> dummy; } if ( dummy == "Type:" ) // read in the type, defaulting to "fpix" if not specified { in >> type_; assert( type_ == "fpix" || type_ == "bpix" ); in >> dummy; } else { type_ = "fpix"; } fillNameToAddress(); fillDBToFileAddress() ; assert(dummy=="TKFECID:"); in >> TKFECID_; in >> dummy; assert(dummy=="ringAddress:"); in >> std::hex >> ringAddress_; in >> dummy; assert(dummy=="ccuAddress:"); in >> std::hex >> ccuAddress_; in >> dummy; assert(dummy=="channelAddress:"); in >> std::hex >> channelAddress_; in >> dummy; assert(dummy=="i2cSpeed:"); in >> std::hex >> i2cSpeed_; //std::cout << __LINE__ << "]\t" << mthn // <<TKFECAddress_<<", "<<ringAddress_<<", "<<ccuAddress_<<", "<<channelAddress_<<", "<<i2cSpeed_<<std::endl; assert( nameToAddress_.size() != 0 ); do { std::string settingName; unsigned int i2c_address; unsigned int i2c_values; in >> settingName >> std::hex >> i2c_values >> std::dec; if (in.eof()) break; if ( settingName[settingName.size()-1] == ':' ) settingName.resize( settingName.size()-1 ); // remove ':' from end of string, if it's there // Special handling for AOHX_GainY if ( settingName.find("AOH") != string::npos && settingName.find("Gain") != string::npos // contains both "AOH" and "Gain" && settingName.find("123") == string::npos && settingName.find("456") == string::npos ) // does not contain "123" or "456" { setAOHGain(settingName, i2c_values); } else if ( settingName == k_PLL_CTR4 || settingName == k_PLL_CTR5 ) // special handling { unsigned int last_CTR2 = 0x0; if ( containsSetting(k_PLL_CTR2) ) last_CTR2 = getdeviceValuesForSetting( k_PLL_CTR2 ); device_.push_back( make_pair(getdeviceAddressForSetting(k_PLL_CTR2), new_PLL_CTR2_value(settingName, last_CTR2)) ); device_.push_back( make_pair(getdeviceAddressForSetting(k_PLL_CTR4or5), i2c_values) ); } else // no special handling for this name { std::map<std::string, unsigned int>::iterator foundName_itr = nameToAddress_.find(settingName); if ( foundName_itr != nameToAddress_.end() ) { i2c_address = foundName_itr->second; } else { i2c_address = strtoul(settingName.c_str(), 0, 16); // convert string to integer using base 16 } pair<unsigned int, unsigned int> p(i2c_address, i2c_values); device_.push_back(p); } } while (!in.eof()); in.close(); }
unsigned int PixelPortCardConfig::AOHBiasAddressFromAOHNumber | ( | unsigned int | AOHNumber | ) | const |
Definition at line 1171 of file PixelPortCardConfig.cc.
References gather_cfg::cout, pos::PortCardSettingNames::k_bpix_AOH1_Bias1_address, pos::PortCardSettingNames::k_bpix_AOH1_Bias2_address, pos::PortCardSettingNames::k_bpix_AOH1_Bias3_address, pos::PortCardSettingNames::k_bpix_AOH1_Bias4_address, pos::PortCardSettingNames::k_bpix_AOH1_Bias5_address, pos::PortCardSettingNames::k_bpix_AOH1_Bias6_address, pos::PortCardSettingNames::k_bpix_AOH2_Bias1_address, pos::PortCardSettingNames::k_bpix_AOH2_Bias2_address, pos::PortCardSettingNames::k_bpix_AOH2_Bias3_address, pos::PortCardSettingNames::k_bpix_AOH2_Bias4_address, pos::PortCardSettingNames::k_bpix_AOH2_Bias5_address, pos::PortCardSettingNames::k_bpix_AOH2_Bias6_address, pos::PortCardSettingNames::k_bpix_AOH3_Bias1_address, pos::PortCardSettingNames::k_bpix_AOH3_Bias2_address, pos::PortCardSettingNames::k_bpix_AOH3_Bias3_address, pos::PortCardSettingNames::k_bpix_AOH3_Bias4_address, pos::PortCardSettingNames::k_bpix_AOH3_Bias5_address, pos::PortCardSettingNames::k_bpix_AOH3_Bias6_address, pos::PortCardSettingNames::k_bpix_AOH4_Bias1_address, pos::PortCardSettingNames::k_bpix_AOH4_Bias2_address, pos::PortCardSettingNames::k_bpix_AOH4_Bias3_address, pos::PortCardSettingNames::k_bpix_AOH4_Bias4_address, pos::PortCardSettingNames::k_bpix_AOH4_Bias5_address, pos::PortCardSettingNames::k_bpix_AOH4_Bias6_address, pos::PortCardSettingNames::k_fpix_AOH_Bias1_address, pos::PortCardSettingNames::k_fpix_AOH_Bias2_address, pos::PortCardSettingNames::k_fpix_AOH_Bias3_address, pos::PortCardSettingNames::k_fpix_AOH_Bias4_address, pos::PortCardSettingNames::k_fpix_AOH_Bias5_address, pos::PortCardSettingNames::k_fpix_AOH_Bias6_address, and type_.
Referenced by getAOHBias().
{ std::string mthn = "[PixelPortCardConfig::AOHBiasAddressFromAOHNumber()] " ; if ( type_ == "fpix" ) { if (AOHNumber == 1) return PortCardSettingNames::k_fpix_AOH_Bias1_address; else if (AOHNumber == 2) return PortCardSettingNames::k_fpix_AOH_Bias2_address; else if (AOHNumber == 3) return PortCardSettingNames::k_fpix_AOH_Bias3_address; else if (AOHNumber == 4) return PortCardSettingNames::k_fpix_AOH_Bias4_address; else if (AOHNumber == 5) return PortCardSettingNames::k_fpix_AOH_Bias5_address; else if (AOHNumber == 6) return PortCardSettingNames::k_fpix_AOH_Bias6_address; else {std::cout << __LINE__ << "]\t" << mthn << "ERROR: For fpix, AOH number must be in the range 1-6, but the given AOH number was " << AOHNumber << "." << std::endl; assert(0);} } else if ( type_ == "bpix" ) { if (AOHNumber == 1) return PortCardSettingNames::k_bpix_AOH1_Bias1_address; else if (AOHNumber == 2) return PortCardSettingNames::k_bpix_AOH1_Bias2_address; else if (AOHNumber == 3) return PortCardSettingNames::k_bpix_AOH1_Bias3_address; else if (AOHNumber == 4) return PortCardSettingNames::k_bpix_AOH1_Bias4_address; else if (AOHNumber == 5) return PortCardSettingNames::k_bpix_AOH1_Bias5_address; else if (AOHNumber == 6) return PortCardSettingNames::k_bpix_AOH1_Bias6_address; else if (AOHNumber == 7) return PortCardSettingNames::k_bpix_AOH2_Bias1_address; else if (AOHNumber == 8) return PortCardSettingNames::k_bpix_AOH2_Bias2_address; else if (AOHNumber == 9) return PortCardSettingNames::k_bpix_AOH2_Bias3_address; else if (AOHNumber ==10) return PortCardSettingNames::k_bpix_AOH2_Bias4_address; else if (AOHNumber ==11) return PortCardSettingNames::k_bpix_AOH2_Bias5_address; else if (AOHNumber ==12) return PortCardSettingNames::k_bpix_AOH2_Bias6_address; else if (AOHNumber ==13) return PortCardSettingNames::k_bpix_AOH3_Bias1_address; else if (AOHNumber ==14) return PortCardSettingNames::k_bpix_AOH3_Bias2_address; else if (AOHNumber ==15) return PortCardSettingNames::k_bpix_AOH3_Bias3_address; else if (AOHNumber ==16) return PortCardSettingNames::k_bpix_AOH3_Bias4_address; else if (AOHNumber ==17) return PortCardSettingNames::k_bpix_AOH3_Bias5_address; else if (AOHNumber ==18) return PortCardSettingNames::k_bpix_AOH3_Bias6_address; else if (AOHNumber ==19) return PortCardSettingNames::k_bpix_AOH4_Bias1_address; else if (AOHNumber ==20) return PortCardSettingNames::k_bpix_AOH4_Bias2_address; else if (AOHNumber ==21) return PortCardSettingNames::k_bpix_AOH4_Bias3_address; else if (AOHNumber ==22) return PortCardSettingNames::k_bpix_AOH4_Bias4_address; else if (AOHNumber ==23) return PortCardSettingNames::k_bpix_AOH4_Bias5_address; else if (AOHNumber ==24) return PortCardSettingNames::k_bpix_AOH4_Bias6_address; else {std::cout << __LINE__ << "]\t" << mthn << "ERROR: For bpix, AOH number must be in the range 1-24, but the given AOH number was " << AOHNumber << "." << std::endl; assert(0);} } else assert(0); }
unsigned int PixelPortCardConfig::AOHGainAddressFromAOHNumber | ( | unsigned int | AOHNumber | ) | const |
Definition at line 1279 of file PixelPortCardConfig.cc.
References gather_cfg::cout, pos::PortCardSettingNames::k_bpix_AOH1_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH1_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH2_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH2_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH3_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH3_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH4_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH4_Gain456_address, pos::PortCardSettingNames::k_fpix_AOH_Gain123_address, pos::PortCardSettingNames::k_fpix_AOH_Gain456_address, and type_.
Referenced by getAOHGain().
{ std::string mthn = "[PixelPortCardConfig::AOHGainAddressFromAOHNumber()] " ; unsigned int address; if ( type_ == "fpix" ) { if (AOHNumber == 1) address = PortCardSettingNames::k_fpix_AOH_Gain123_address; else if (AOHNumber == 2) address = PortCardSettingNames::k_fpix_AOH_Gain123_address; else if (AOHNumber == 3) address = PortCardSettingNames::k_fpix_AOH_Gain123_address; else if (AOHNumber == 4) address = PortCardSettingNames::k_fpix_AOH_Gain456_address; else if (AOHNumber == 5) address = PortCardSettingNames::k_fpix_AOH_Gain456_address; else if (AOHNumber == 6) address = PortCardSettingNames::k_fpix_AOH_Gain456_address; else {std::cout << __LINE__ << "]\t" << mthn << "ERROR: For fpix, AOH number must be in the range 1-6, but the given AOH number was " << AOHNumber << "." << std::endl; assert(0);} } else if ( type_ == "bpix" ) { if (AOHNumber == 1) address = PortCardSettingNames::k_bpix_AOH1_Gain123_address; else if (AOHNumber == 2) address = PortCardSettingNames::k_bpix_AOH1_Gain123_address; else if (AOHNumber == 3) address = PortCardSettingNames::k_bpix_AOH1_Gain123_address; else if (AOHNumber == 4) address = PortCardSettingNames::k_bpix_AOH1_Gain456_address; else if (AOHNumber == 5) address = PortCardSettingNames::k_bpix_AOH1_Gain456_address; else if (AOHNumber == 6) address = PortCardSettingNames::k_bpix_AOH1_Gain456_address; else if (AOHNumber == 7) address = PortCardSettingNames::k_bpix_AOH2_Gain123_address; else if (AOHNumber == 8) address = PortCardSettingNames::k_bpix_AOH2_Gain123_address; else if (AOHNumber == 9) address = PortCardSettingNames::k_bpix_AOH2_Gain123_address; else if (AOHNumber ==10) address = PortCardSettingNames::k_bpix_AOH2_Gain456_address; else if (AOHNumber ==11) address = PortCardSettingNames::k_bpix_AOH2_Gain456_address; else if (AOHNumber ==12) address = PortCardSettingNames::k_bpix_AOH2_Gain456_address; else if (AOHNumber ==13) address = PortCardSettingNames::k_bpix_AOH3_Gain123_address; else if (AOHNumber ==14) address = PortCardSettingNames::k_bpix_AOH3_Gain123_address; else if (AOHNumber ==15) address = PortCardSettingNames::k_bpix_AOH3_Gain123_address; else if (AOHNumber ==16) address = PortCardSettingNames::k_bpix_AOH3_Gain456_address; else if (AOHNumber ==17) address = PortCardSettingNames::k_bpix_AOH3_Gain456_address; else if (AOHNumber ==18) address = PortCardSettingNames::k_bpix_AOH3_Gain456_address; else if (AOHNumber ==19) address = PortCardSettingNames::k_bpix_AOH4_Gain123_address; else if (AOHNumber ==20) address = PortCardSettingNames::k_bpix_AOH4_Gain123_address; else if (AOHNumber ==21) address = PortCardSettingNames::k_bpix_AOH4_Gain123_address; else if (AOHNumber ==22) address = PortCardSettingNames::k_bpix_AOH4_Gain456_address; else if (AOHNumber ==23) address = PortCardSettingNames::k_bpix_AOH4_Gain456_address; else if (AOHNumber ==24) address = PortCardSettingNames::k_bpix_AOH4_Gain456_address; else {std::cout << __LINE__ << "]\t" << mthn << "ERROR: For bpix, AOH number must be in the range 1-24, but the given AOH number was " << AOHNumber << "." << std::endl; assert(0);} } else assert(0); return address; }
std::string PixelPortCardConfig::AOHGainStringFromAOHNumber | ( | unsigned int | AOHNumber | ) | const [private] |
Definition at line 1225 of file PixelPortCardConfig.cc.
References gather_cfg::cout, and type_.
Referenced by setAOHGain().
{ std::string mthn = "[PixelPortCardConfig::AOHGainStringFromAOHNumber()] " ; if ( type_ == "fpix" ) { if (AOHNumber == 1) return "AOH_Gain1"; else if (AOHNumber == 2) return "AOH_Gain2"; else if (AOHNumber == 3) return "AOH_Gain3"; else if (AOHNumber == 4) return "AOH_Gain4"; else if (AOHNumber == 5) return "AOH_Gain5"; else if (AOHNumber == 6) return "AOH_Gain6"; else {std::cout << __LINE__ << "]\t" << mthn << "ERROR: For fpix, AOH number must be in the range 1-6, but the given AOH number was " << AOHNumber << "." << std::endl; assert(0);} } else if ( type_ == "bpix" ) { if (AOHNumber == 1) return "AOH1_Gain1"; else if (AOHNumber == 2) return "AOH1_Gain2"; else if (AOHNumber == 3) return "AOH1_Gain3"; else if (AOHNumber == 4) return "AOH1_Gain4"; else if (AOHNumber == 5) return "AOH1_Gain5"; else if (AOHNumber == 6) return "AOH1_Gain6"; else if (AOHNumber == 7) return "AOH2_Gain1"; else if (AOHNumber == 8) return "AOH2_Gain2"; else if (AOHNumber == 9) return "AOH2_Gain3"; else if (AOHNumber ==10) return "AOH2_Gain4"; else if (AOHNumber ==11) return "AOH2_Gain5"; else if (AOHNumber ==12) return "AOH2_Gain6"; else if (AOHNumber ==13) return "AOH3_Gain1"; else if (AOHNumber ==14) return "AOH3_Gain2"; else if (AOHNumber ==15) return "AOH3_Gain3"; else if (AOHNumber ==16) return "AOH3_Gain4"; else if (AOHNumber ==17) return "AOH3_Gain5"; else if (AOHNumber ==18) return "AOH3_Gain6"; else if (AOHNumber ==19) return "AOH4_Gain1"; else if (AOHNumber ==20) return "AOH4_Gain2"; else if (AOHNumber ==21) return "AOH4_Gain3"; else if (AOHNumber ==22) return "AOH4_Gain4"; else if (AOHNumber ==23) return "AOH4_Gain5"; else if (AOHNumber ==24) return "AOH4_Gain6"; else {std::cout << __LINE__ << "]\t" << mthn << "ERROR: For bpix, AOH number must be in the range 1-24, but the given AOH number was " << AOHNumber << "." << std::endl; assert(0);} } else assert(0); }
bool PixelPortCardConfig::containsDeviceAddress | ( | unsigned int | deviceAddress | ) | const [private] |
Definition at line 1162 of file PixelPortCardConfig.cc.
References device_.
Referenced by containsSetting().
bool pos::PixelPortCardConfig::containsSetting | ( | std::string | settingName | ) | const [inline, private] |
Definition at line 83 of file PixelPortCardConfig.h.
References containsDeviceAddress(), and getdeviceAddressForSetting().
Referenced by PixelPortCardConfig().
{ return containsDeviceAddress(getdeviceAddressForSetting(settingName)); }
void PixelPortCardConfig::fillDBToFileAddress | ( | ) | [private] |
Definition at line 728 of file PixelPortCardConfig.cc.
References pos::PortCardSettingNames::k_AOH1_Bias1, pos::PortCardSettingNames::k_AOH1_Bias2, pos::PortCardSettingNames::k_AOH1_Bias3, pos::PortCardSettingNames::k_AOH1_Bias4, pos::PortCardSettingNames::k_AOH1_Bias5, pos::PortCardSettingNames::k_AOH1_Bias6, pos::PortCardSettingNames::k_AOH2_Bias1, pos::PortCardSettingNames::k_AOH2_Bias2, pos::PortCardSettingNames::k_AOH2_Bias3, pos::PortCardSettingNames::k_AOH2_Bias4, pos::PortCardSettingNames::k_AOH2_Bias5, pos::PortCardSettingNames::k_AOH2_Bias6, pos::PortCardSettingNames::k_AOH3_Bias1, pos::PortCardSettingNames::k_AOH3_Bias2, pos::PortCardSettingNames::k_AOH3_Bias3, pos::PortCardSettingNames::k_AOH3_Bias4, pos::PortCardSettingNames::k_AOH3_Bias5, pos::PortCardSettingNames::k_AOH3_Bias6, pos::PortCardSettingNames::k_AOH4_Bias1, pos::PortCardSettingNames::k_AOH4_Bias2, pos::PortCardSettingNames::k_AOH4_Bias3, pos::PortCardSettingNames::k_AOH4_Bias4, pos::PortCardSettingNames::k_AOH4_Bias5, pos::PortCardSettingNames::k_AOH4_Bias6, pos::PortCardSettingNames::k_AOH_Bias1, pos::PortCardSettingNames::k_AOH_Bias2, pos::PortCardSettingNames::k_AOH_Bias3, pos::PortCardSettingNames::k_AOH_Bias4, pos::PortCardSettingNames::k_AOH_Bias5, pos::PortCardSettingNames::k_AOH_Bias6, pos::PortCardSettingNames::k_Delay25_GCR, pos::PortCardSettingNames::k_Delay25_RCL, pos::PortCardSettingNames::k_Delay25_RDA, pos::PortCardSettingNames::k_Delay25_SCL, pos::PortCardSettingNames::k_Delay25_SDA, pos::PortCardSettingNames::k_Delay25_TRG, pos::PortCardSettingNames::k_DOH_Ch0Bias_CLK, pos::PortCardSettingNames::k_DOH_Ch1Bias_Data, pos::PortCardSettingNames::k_DOH_Gain_SEU, pos::PortCardSettingNames::k_PLL_CTR1, pos::PortCardSettingNames::k_PLL_CTR2, pos::PortCardSettingNames::k_PLL_CTR3, pos::PortCardSettingNames::k_PLL_CTR4, pos::PortCardSettingNames::k_PLL_CTR5, nameDBtoFileConversion_, and type_.
Referenced by PixelPortCardConfig().
{ if(type_ == "fpix") { // nameDBtoFileConversion_["CONFIG_KEY_ID" ] = ; // nameDBtoFileConversion_["CONFIG_KEY" ] = ; // nameDBtoFileConversion_["VERSION" ] = ; // nameDBtoFileConversion_["CONDITION_DATA_SET_ID" ] = ; // nameDBtoFileConversion_["KIND_OF_CONDITION_ID" ] = ; // nameDBtoFileConversion_["KIND_OF_COND" ] = ; // nameDBtoFileConversion_["SERIAL_NUMBER" ] = ; // nameDBtoFileConversion_["PORT_CARD_ID" ] = ; // nameDBtoFileConversion_["PORT_CARD" ] = ; // nameDBtoFileConversion_["TRKFEC_NAME" ] = ; // nameDBtoFileConversion_["RINGADDRESS" ] = ; // nameDBtoFileConversion_["CHANNELADDRESS" ] = ; // nameDBtoFileConversion_["CCUADDRESS" ] = ; // nameDBtoFileConversion_["I2C_CNTRL" ] = ; // nameDBtoFileConversion_["I2CSPEED" ] = ; nameDBtoFileConversion_["AOH_BIAS1" ] = k_AOH_Bias1 ; nameDBtoFileConversion_["AOH_BIAS2" ] = k_AOH_Bias2 ; nameDBtoFileConversion_["AOH_BIAS3" ] = k_AOH_Bias3 ; nameDBtoFileConversion_["AOH_BIAS4" ] = k_AOH_Bias4 ; nameDBtoFileConversion_["AOH_BIAS5" ] = k_AOH_Bias5 ; nameDBtoFileConversion_["AOH_BIAS6" ] = k_AOH_Bias6 ; nameDBtoFileConversion_["AOH1_BIAS1" ] = k_AOH1_Bias1 ; nameDBtoFileConversion_["AOH1_BIAS2" ] = k_AOH1_Bias2 ; nameDBtoFileConversion_["AOH1_BIAS3" ] = k_AOH1_Bias3 ; nameDBtoFileConversion_["AOH1_BIAS4" ] = k_AOH1_Bias4 ; nameDBtoFileConversion_["AOH1_BIAS5" ] = k_AOH1_Bias5 ; nameDBtoFileConversion_["AOH1_BIAS6" ] = k_AOH1_Bias6 ; // nameDBtoFileConversion_["AOH1_GAIN1" ] = ; // nameDBtoFileConversion_["AOH1_GAIN2" ] = ; // nameDBtoFileConversion_["AOH1_GAIN3" ] = ; // nameDBtoFileConversion_["AOH1_GAIN4" ] = ; // nameDBtoFileConversion_["AOH1_GAIN5" ] = ; // nameDBtoFileConversion_["AOH1_GAIN6" ] = ; nameDBtoFileConversion_["AOH2_BIAS1" ] = k_AOH2_Bias1 ; nameDBtoFileConversion_["AOH2_BIAS2" ] = k_AOH2_Bias2 ; nameDBtoFileConversion_["AOH2_BIAS3" ] = k_AOH2_Bias3 ; nameDBtoFileConversion_["AOH2_BIAS4" ] = k_AOH2_Bias4 ; nameDBtoFileConversion_["AOH2_BIAS5" ] = k_AOH2_Bias5 ; nameDBtoFileConversion_["AOH2_BIAS6" ] = k_AOH2_Bias6 ; // nameDBtoFileConversion_["AOH2_GAIN1" ] = ; // nameDBtoFileConversion_["AOH2_GAIN2" ] = ; // nameDBtoFileConversion_["AOH2_GAIN3" ] = ; // nameDBtoFileConversion_["AOH2_GAIN4" ] = ; // nameDBtoFileConversion_["AOH2_GAIN5" ] = ; // nameDBtoFileConversion_["AOH2_GAIN6" ] = ; nameDBtoFileConversion_["AOH3_BIAS1" ] = k_AOH3_Bias1 ; nameDBtoFileConversion_["AOH3_BIAS2" ] = k_AOH3_Bias2 ; nameDBtoFileConversion_["AOH3_BIAS3" ] = k_AOH3_Bias3 ; nameDBtoFileConversion_["AOH3_BIAS4" ] = k_AOH3_Bias4 ; nameDBtoFileConversion_["AOH3_BIAS5" ] = k_AOH3_Bias5 ; nameDBtoFileConversion_["AOH3_BIAS6" ] = k_AOH3_Bias6 ; // nameDBtoFileConversion_["AOH3_GAIN1" ] = ; // nameDBtoFileConversion_["AOH3_GAIN2" ] = ; // nameDBtoFileConversion_["AOH3_GAIN3" ] = ; // nameDBtoFileConversion_["AOH3_GAIN4" ] = ; // nameDBtoFileConversion_["AOH3_GAIN5" ] = ; // nameDBtoFileConversion_["AOH3_GAIN6" ] = ; nameDBtoFileConversion_["AOH4_BIAS1" ] = k_AOH4_Bias1 ; nameDBtoFileConversion_["AOH4_BIAS2" ] = k_AOH4_Bias2 ; nameDBtoFileConversion_["AOH4_BIAS3" ] = k_AOH4_Bias3 ; nameDBtoFileConversion_["AOH4_BIAS4" ] = k_AOH4_Bias4 ; nameDBtoFileConversion_["AOH4_BIAS5" ] = k_AOH4_Bias5 ; nameDBtoFileConversion_["AOH4_BIAS6" ] = k_AOH4_Bias6 ; // nameDBtoFileConversion_["AOH4_GAIN1" ] = ; // nameDBtoFileConversion_["AOH4_GAIN2" ] = ; // nameDBtoFileConversion_["AOH4_GAIN3" ] = ; // nameDBtoFileConversion_["AOH4_GAIN4" ] = ; // nameDBtoFileConversion_["AOH4_GAIN5" ] = ; // nameDBtoFileConversion_["AOH4_GAIN6" ] = ; // nameDBtoFileConversion_["AOH5_BIAS1" ] = ; // nameDBtoFileConversion_["AOH5_BIAS2" ] = ; // nameDBtoFileConversion_["AOH5_BIAS3" ] = ; // nameDBtoFileConversion_["AOH5_BIAS4" ] = ; // nameDBtoFileConversion_["AOH5_BIAS5" ] = ; // nameDBtoFileConversion_["AOH5_BIAS6" ] = ; // nameDBtoFileConversion_["AOH5_GAIN1" ] = ; // nameDBtoFileConversion_["AOH5_GAIN2" ] = ; // nameDBtoFileConversion_["AOH5_GAIN3" ] = ; // nameDBtoFileConversion_["AOH5_GAIN4" ] = ; // nameDBtoFileConversion_["AOH5_GAIN5" ] = ; // nameDBtoFileConversion_["AOH5_GAIN6" ] = ; // nameDBtoFileConversion_["AOH6_BIAS1" ] = ; // nameDBtoFileConversion_["AOH6_BIAS2" ] = ; // nameDBtoFileConversion_["AOH6_BIAS3" ] = ; // nameDBtoFileConversion_["AOH6_BIAS4" ] = ; // nameDBtoFileConversion_["AOH6_BIAS5" ] = ; // nameDBtoFileConversion_["AOH6_BIAS6" ] = ; // nameDBtoFileConversion_["AOH6_GAIN1" ] = ; // nameDBtoFileConversion_["AOH6_GAIN2" ] = ; // nameDBtoFileConversion_["AOH6_GAIN3" ] = ; // nameDBtoFileConversion_["AOH6_GAIN4" ] = ; // nameDBtoFileConversion_["AOH6_GAIN5" ] = ; // nameDBtoFileConversion_["AOH6_GAIN6" ] = ; nameDBtoFileConversion_["DELAY25_GCR" ] = k_Delay25_GCR ; nameDBtoFileConversion_["DELAY25_SCL" ] = k_Delay25_SCL ; nameDBtoFileConversion_["DELAY25_TRG" ] = k_Delay25_TRG ; nameDBtoFileConversion_["DELAY25_SDA" ] = k_Delay25_SDA ; nameDBtoFileConversion_["DELAY25_RCL" ] = k_Delay25_RCL ; nameDBtoFileConversion_["DELAY25_RDA" ] = k_Delay25_RDA ; // nameDBtoFileConversion_["DEL3_GCR" ] = ; // nameDBtoFileConversion_["DEL3_SCL" ] = ; // nameDBtoFileConversion_["DEL3_TRG" ] = ; // nameDBtoFileConversion_["DEL3_SDA" ] = ; // nameDBtoFileConversion_["DEL3_RCL" ] = ; // nameDBtoFileConversion_["DEL3_RDA" ] = ; nameDBtoFileConversion_["DOH_BIAS0" ] = k_DOH_Ch0Bias_CLK ; nameDBtoFileConversion_["DOH_BIAS1" ] = k_DOH_Ch1Bias_Data ; nameDBtoFileConversion_["DOH_SEU_GAIN" ] = k_DOH_Gain_SEU ; // nameDBtoFileConversion_["DOH3_BIAS0" ] = ; // nameDBtoFileConversion_["DOH3_BIAS1" ] = ; // nameDBtoFileConversion_["DOH3_SEU_GAIN" ] = ; nameDBtoFileConversion_["PLL_CTR1" ] = k_PLL_CTR1 ; nameDBtoFileConversion_["PLL_CTR2" ] = k_PLL_CTR2 ; nameDBtoFileConversion_["PLL_CTR3" ] = k_PLL_CTR3 ; nameDBtoFileConversion_["PLL_CTR4" ] = k_PLL_CTR4 ; nameDBtoFileConversion_["PLL_CTR5" ] = k_PLL_CTR5 ; // nameDBtoFileConversion_["PLL3_CTR1" ] = ; // nameDBtoFileConversion_["PLL3_CTR2" ] = ; // nameDBtoFileConversion_["PLL3_CTR3" ] = ; // nameDBtoFileConversion_["PLL3_CTR4_5" ] = ; } else if(type_ == "bpix") { // nameDBtoFileConversion_["CONFIG_KEY_ID" ] = ; // nameDBtoFileConversion_["CONFIG_KEY" ] = ; // nameDBtoFileConversion_["VERSION" ] = ; // nameDBtoFileConversion_["CONDITION_DATA_SET_ID" ] = ; // nameDBtoFileConversion_["KIND_OF_CONDITION_ID" ] = ; // nameDBtoFileConversion_["KIND_OF_COND" ] = ; // nameDBtoFileConversion_["SERIAL_NUMBER" ] = ; // nameDBtoFileConversion_["PORT_CARD_ID" ] = ; // nameDBtoFileConversion_["PORT_CARD" ] = ; // nameDBtoFileConversion_["TRKFEC_NAME" ] = ; // nameDBtoFileConversion_["RINGADDRESS" ] = ; // nameDBtoFileConversion_["CHANNELADDRESS" ] = ; // nameDBtoFileConversion_["CCUADDRESS" ] = ; // nameDBtoFileConversion_["I2C_CNTRL" ] = ; // nameDBtoFileConversion_["I2CSPEED" ] = ; nameDBtoFileConversion_["AOH1_BIAS1" ] = k_AOH1_Bias1 ; nameDBtoFileConversion_["AOH1_BIAS2" ] = k_AOH1_Bias2 ; nameDBtoFileConversion_["AOH1_BIAS3" ] = k_AOH1_Bias3 ; nameDBtoFileConversion_["AOH1_BIAS4" ] = k_AOH1_Bias4 ; nameDBtoFileConversion_["AOH1_BIAS5" ] = k_AOH1_Bias5 ; nameDBtoFileConversion_["AOH1_BIAS6" ] = k_AOH1_Bias6 ; // nameDBtoFileConversion_["AOH1_GAIN1" ] = ; // nameDBtoFileConversion_["AOH1_GAIN2" ] = ; // nameDBtoFileConversion_["AOH1_GAIN3" ] = ; // nameDBtoFileConversion_["AOH1_GAIN4" ] = ; // nameDBtoFileConversion_["AOH1_GAIN5" ] = ; // nameDBtoFileConversion_["AOH1_GAIN6" ] = ; nameDBtoFileConversion_["AOH2_BIAS1" ] = k_AOH2_Bias1 ; nameDBtoFileConversion_["AOH2_BIAS2" ] = k_AOH2_Bias2 ; nameDBtoFileConversion_["AOH2_BIAS3" ] = k_AOH2_Bias3 ; nameDBtoFileConversion_["AOH2_BIAS4" ] = k_AOH2_Bias4 ; nameDBtoFileConversion_["AOH2_BIAS5" ] = k_AOH2_Bias5 ; nameDBtoFileConversion_["AOH2_BIAS6" ] = k_AOH2_Bias6 ; // nameDBtoFileConversion_["AOH2_GAIN1" ] = ; // nameDBtoFileConversion_["AOH2_GAIN2" ] = ; // nameDBtoFileConversion_["AOH2_GAIN3" ] = ; // nameDBtoFileConversion_["AOH2_GAIN4" ] = ; // nameDBtoFileConversion_["AOH2_GAIN5" ] = ; // nameDBtoFileConversion_["AOH2_GAIN6" ] = ; nameDBtoFileConversion_["AOH3_BIAS1" ] = k_AOH3_Bias1 ; nameDBtoFileConversion_["AOH3_BIAS2" ] = k_AOH3_Bias2 ; nameDBtoFileConversion_["AOH3_BIAS3" ] = k_AOH3_Bias3 ; nameDBtoFileConversion_["AOH3_BIAS4" ] = k_AOH3_Bias4 ; nameDBtoFileConversion_["AOH3_BIAS5" ] = k_AOH3_Bias5 ; nameDBtoFileConversion_["AOH3_BIAS6" ] = k_AOH3_Bias6 ; // nameDBtoFileConversion_["AOH3_GAIN1" ] = ; // nameDBtoFileConversion_["AOH3_GAIN2" ] = ; // nameDBtoFileConversion_["AOH3_GAIN3" ] = ; // nameDBtoFileConversion_["AOH3_GAIN4" ] = ; // nameDBtoFileConversion_["AOH3_GAIN5" ] = ; // nameDBtoFileConversion_["AOH3_GAIN6" ] = ; nameDBtoFileConversion_["AOH4_BIAS1" ] = k_AOH4_Bias1 ; nameDBtoFileConversion_["AOH4_BIAS2" ] = k_AOH4_Bias2 ; nameDBtoFileConversion_["AOH4_BIAS3" ] = k_AOH4_Bias3 ; nameDBtoFileConversion_["AOH4_BIAS4" ] = k_AOH4_Bias4 ; nameDBtoFileConversion_["AOH4_BIAS5" ] = k_AOH4_Bias5 ; nameDBtoFileConversion_["AOH4_BIAS6" ] = k_AOH4_Bias6 ; // nameDBtoFileConversion_["AOH4_GAIN1" ] = ; // nameDBtoFileConversion_["AOH4_GAIN2" ] = ; // nameDBtoFileConversion_["AOH4_GAIN3" ] = ; // nameDBtoFileConversion_["AOH4_GAIN4" ] = ; // nameDBtoFileConversion_["AOH4_GAIN5" ] = ; // nameDBtoFileConversion_["AOH4_GAIN6" ] = ; // nameDBtoFileConversion_["AOH5_BIAS1" ] = ; // nameDBtoFileConversion_["AOH5_BIAS2" ] = ; // nameDBtoFileConversion_["AOH5_BIAS3" ] = ; // nameDBtoFileConversion_["AOH5_BIAS4" ] = ; // nameDBtoFileConversion_["AOH5_BIAS5" ] = ; // nameDBtoFileConversion_["AOH5_BIAS6" ] = ; // nameDBtoFileConversion_["AOH5_GAIN1" ] = ; // nameDBtoFileConversion_["AOH5_GAIN2" ] = ; // nameDBtoFileConversion_["AOH5_GAIN3" ] = ; // nameDBtoFileConversion_["AOH5_GAIN4" ] = ; // nameDBtoFileConversion_["AOH5_GAIN5" ] = ; // nameDBtoFileConversion_["AOH5_GAIN6" ] = ; // nameDBtoFileConversion_["AOH6_BIAS1" ] = ; // nameDBtoFileConversion_["AOH6_BIAS2" ] = ; // nameDBtoFileConversion_["AOH6_BIAS3" ] = ; // nameDBtoFileConversion_["AOH6_BIAS4" ] = ; // nameDBtoFileConversion_["AOH6_BIAS5" ] = ; // nameDBtoFileConversion_["AOH6_BIAS6" ] = ; // nameDBtoFileConversion_["AOH6_GAIN1" ] = ; // nameDBtoFileConversion_["AOH6_GAIN2" ] = ; // nameDBtoFileConversion_["AOH6_GAIN3" ] = ; // nameDBtoFileConversion_["AOH6_GAIN4" ] = ; // nameDBtoFileConversion_["AOH6_GAIN5" ] = ; // nameDBtoFileConversion_["AOH6_GAIN6" ] = ; nameDBtoFileConversion_["DELAY25_GCR" ] = k_Delay25_GCR ; nameDBtoFileConversion_["DELAY25_SCL" ] = k_Delay25_SCL ; nameDBtoFileConversion_["DELAY25_TRG" ] = k_Delay25_TRG ; nameDBtoFileConversion_["DELAY25_SDA" ] = k_Delay25_SDA ; nameDBtoFileConversion_["DELAY25_RCL" ] = k_Delay25_RCL ; nameDBtoFileConversion_["DELAY25_RDA" ] = k_Delay25_RDA ; // nameDBtoFileConversion_["DEL3_GCR" ] = ; // nameDBtoFileConversion_["DEL3_SCL" ] = ; // nameDBtoFileConversion_["DEL3_TRG" ] = ; // nameDBtoFileConversion_["DEL3_SDA" ] = ; // nameDBtoFileConversion_["DEL3_RCL" ] = ; // nameDBtoFileConversion_["DEL3_RDA" ] = ; nameDBtoFileConversion_["DOH_BIAS0" ] = k_DOH_Ch0Bias_CLK ; nameDBtoFileConversion_["DOH_BIAS1" ] = k_DOH_Ch1Bias_Data ; nameDBtoFileConversion_["DOH_SEU_GAIN" ] = k_DOH_Gain_SEU ; // nameDBtoFileConversion_["DOH3_BIAS0" ] = ; // nameDBtoFileConversion_["DOH3_BIAS1" ] = ; // nameDBtoFileConversion_["DOH3_SEU_GAIN" ] = ; nameDBtoFileConversion_["PLL_CTR1" ] = k_PLL_CTR1 ; nameDBtoFileConversion_["PLL_CTR2" ] = k_PLL_CTR2 ; nameDBtoFileConversion_["PLL_CTR3" ] = k_PLL_CTR3 ; nameDBtoFileConversion_["PLL_CTR4" ] = k_PLL_CTR4 ; nameDBtoFileConversion_["PLL_CTR5" ] = k_PLL_CTR5 ; // nameDBtoFileConversion_["PLL3_CTR1" ] = ; // nameDBtoFileConversion_["PLL3_CTR2" ] = ; // nameDBtoFileConversion_["PLL3_CTR3" ] = ; // nameDBtoFileConversion_["PLL3_CTR4_5" ] = ; } }
void PixelPortCardConfig::fillNameToAddress | ( | ) | [private] |
Definition at line 636 of file PixelPortCardConfig.cc.
References pos::PortCardSettingNames::k_AOH1_Bias1, pos::PortCardSettingNames::k_AOH1_Bias2, pos::PortCardSettingNames::k_AOH1_Bias3, pos::PortCardSettingNames::k_AOH1_Bias4, pos::PortCardSettingNames::k_AOH1_Bias5, pos::PortCardSettingNames::k_AOH1_Bias6, pos::PortCardSettingNames::k_AOH1_Gain123, pos::PortCardSettingNames::k_AOH1_Gain456, pos::PortCardSettingNames::k_AOH2_Bias1, pos::PortCardSettingNames::k_AOH2_Bias2, pos::PortCardSettingNames::k_AOH2_Bias3, pos::PortCardSettingNames::k_AOH2_Bias4, pos::PortCardSettingNames::k_AOH2_Bias5, pos::PortCardSettingNames::k_AOH2_Bias6, pos::PortCardSettingNames::k_AOH2_Gain123, pos::PortCardSettingNames::k_AOH2_Gain456, pos::PortCardSettingNames::k_AOH3_Bias1, pos::PortCardSettingNames::k_AOH3_Bias2, pos::PortCardSettingNames::k_AOH3_Bias3, pos::PortCardSettingNames::k_AOH3_Bias4, pos::PortCardSettingNames::k_AOH3_Bias5, pos::PortCardSettingNames::k_AOH3_Bias6, pos::PortCardSettingNames::k_AOH3_Gain123, pos::PortCardSettingNames::k_AOH3_Gain456, pos::PortCardSettingNames::k_AOH4_Bias1, pos::PortCardSettingNames::k_AOH4_Bias2, pos::PortCardSettingNames::k_AOH4_Bias3, pos::PortCardSettingNames::k_AOH4_Bias4, pos::PortCardSettingNames::k_AOH4_Bias5, pos::PortCardSettingNames::k_AOH4_Bias6, pos::PortCardSettingNames::k_AOH4_Gain123, pos::PortCardSettingNames::k_AOH4_Gain456, pos::PortCardSettingNames::k_AOH_Bias1, pos::PortCardSettingNames::k_AOH_Bias2, pos::PortCardSettingNames::k_AOH_Bias3, pos::PortCardSettingNames::k_AOH_Bias4, pos::PortCardSettingNames::k_AOH_Bias5, pos::PortCardSettingNames::k_AOH_Bias6, pos::PortCardSettingNames::k_AOH_Gain123, pos::PortCardSettingNames::k_AOH_Gain456, pos::PortCardSettingNames::k_bpix_AOH1_Bias1_address, pos::PortCardSettingNames::k_bpix_AOH1_Bias2_address, pos::PortCardSettingNames::k_bpix_AOH1_Bias3_address, pos::PortCardSettingNames::k_bpix_AOH1_Bias4_address, pos::PortCardSettingNames::k_bpix_AOH1_Bias5_address, pos::PortCardSettingNames::k_bpix_AOH1_Bias6_address, pos::PortCardSettingNames::k_bpix_AOH1_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH1_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH2_Bias1_address, pos::PortCardSettingNames::k_bpix_AOH2_Bias2_address, pos::PortCardSettingNames::k_bpix_AOH2_Bias3_address, pos::PortCardSettingNames::k_bpix_AOH2_Bias4_address, pos::PortCardSettingNames::k_bpix_AOH2_Bias5_address, pos::PortCardSettingNames::k_bpix_AOH2_Bias6_address, pos::PortCardSettingNames::k_bpix_AOH2_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH2_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH3_Bias1_address, pos::PortCardSettingNames::k_bpix_AOH3_Bias2_address, pos::PortCardSettingNames::k_bpix_AOH3_Bias3_address, pos::PortCardSettingNames::k_bpix_AOH3_Bias4_address, pos::PortCardSettingNames::k_bpix_AOH3_Bias5_address, pos::PortCardSettingNames::k_bpix_AOH3_Bias6_address, pos::PortCardSettingNames::k_bpix_AOH3_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH3_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH4_Bias1_address, pos::PortCardSettingNames::k_bpix_AOH4_Bias2_address, pos::PortCardSettingNames::k_bpix_AOH4_Bias3_address, pos::PortCardSettingNames::k_bpix_AOH4_Bias4_address, pos::PortCardSettingNames::k_bpix_AOH4_Bias5_address, pos::PortCardSettingNames::k_bpix_AOH4_Bias6_address, pos::PortCardSettingNames::k_bpix_AOH4_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH4_Gain456_address, pos::PortCardSettingNames::k_bpix_Delay25_GCR_address, pos::PortCardSettingNames::k_bpix_Delay25_RCL_address, pos::PortCardSettingNames::k_bpix_Delay25_RDA_address, pos::PortCardSettingNames::k_bpix_Delay25_SCL_address, pos::PortCardSettingNames::k_bpix_Delay25_SDA_address, pos::PortCardSettingNames::k_bpix_Delay25_TRG_address, pos::PortCardSettingNames::k_bpix_DOH_Ch0Bias_CLK_address, pos::PortCardSettingNames::k_bpix_DOH_Ch1Bias_Data_address, pos::PortCardSettingNames::k_bpix_DOH_Dummy_address, pos::PortCardSettingNames::k_bpix_DOH_Gain_SEU_address, pos::PortCardSettingNames::k_bpix_PLL_CTR1_address, pos::PortCardSettingNames::k_bpix_PLL_CTR2_address, pos::PortCardSettingNames::k_bpix_PLL_CTR3_address, pos::PortCardSettingNames::k_bpix_PLL_CTR4or5_address, pos::PortCardSettingNames::k_Delay25_GCR, pos::PortCardSettingNames::k_Delay25_RCL, pos::PortCardSettingNames::k_Delay25_RDA, pos::PortCardSettingNames::k_Delay25_SCL, pos::PortCardSettingNames::k_Delay25_SDA, pos::PortCardSettingNames::k_Delay25_TRG, pos::PortCardSettingNames::k_DOH_Ch0Bias_CLK, pos::PortCardSettingNames::k_DOH_Ch1Bias_Data, pos::PortCardSettingNames::k_DOH_Dummy, pos::PortCardSettingNames::k_DOH_Gain_SEU, pos::PortCardSettingNames::k_fpix_AOH_Bias1_address, pos::PortCardSettingNames::k_fpix_AOH_Bias2_address, pos::PortCardSettingNames::k_fpix_AOH_Bias3_address, pos::PortCardSettingNames::k_fpix_AOH_Bias4_address, pos::PortCardSettingNames::k_fpix_AOH_Bias5_address, pos::PortCardSettingNames::k_fpix_AOH_Bias6_address, pos::PortCardSettingNames::k_fpix_AOH_Gain123_address, pos::PortCardSettingNames::k_fpix_AOH_Gain456_address, pos::PortCardSettingNames::k_fpix_Delay25_GCR_address, pos::PortCardSettingNames::k_fpix_Delay25_RCL_address, pos::PortCardSettingNames::k_fpix_Delay25_RDA_address, pos::PortCardSettingNames::k_fpix_Delay25_SCL_address, pos::PortCardSettingNames::k_fpix_Delay25_SDA_address, pos::PortCardSettingNames::k_fpix_Delay25_TRG_address, pos::PortCardSettingNames::k_fpix_DOH_Ch0Bias_CLK_address, pos::PortCardSettingNames::k_fpix_DOH_Ch1Bias_Data_address, pos::PortCardSettingNames::k_fpix_DOH_Dummy_address, pos::PortCardSettingNames::k_fpix_DOH_Gain_SEU_address, pos::PortCardSettingNames::k_fpix_PLL_CTR1_address, pos::PortCardSettingNames::k_fpix_PLL_CTR2_address, pos::PortCardSettingNames::k_fpix_PLL_CTR3_address, pos::PortCardSettingNames::k_fpix_PLL_CTR4or5_address, pos::PortCardSettingNames::k_PLL_CTR1, pos::PortCardSettingNames::k_PLL_CTR2, pos::PortCardSettingNames::k_PLL_CTR3, pos::PortCardSettingNames::k_PLL_CTR4or5, nameToAddress_, and type_.
Referenced by PixelPortCardConfig().
{ if ( nameToAddress_.size() != 0 ) return; if ( type_ == "fpix" ) { nameToAddress_[PortCardSettingNames::k_AOH_Bias1] = PortCardSettingNames::k_fpix_AOH_Bias1_address; nameToAddress_[PortCardSettingNames::k_AOH_Bias2] = PortCardSettingNames::k_fpix_AOH_Bias2_address; nameToAddress_[PortCardSettingNames::k_AOH_Bias3] = PortCardSettingNames::k_fpix_AOH_Bias3_address; nameToAddress_[PortCardSettingNames::k_AOH_Bias4] = PortCardSettingNames::k_fpix_AOH_Bias4_address; nameToAddress_[PortCardSettingNames::k_AOH_Bias5] = PortCardSettingNames::k_fpix_AOH_Bias5_address; nameToAddress_[PortCardSettingNames::k_AOH_Bias6] = PortCardSettingNames::k_fpix_AOH_Bias6_address; nameToAddress_[PortCardSettingNames::k_AOH_Gain123] = PortCardSettingNames::k_fpix_AOH_Gain123_address; nameToAddress_[PortCardSettingNames::k_AOH_Gain456] = PortCardSettingNames::k_fpix_AOH_Gain456_address; nameToAddress_[PortCardSettingNames::k_PLL_CTR1] = PortCardSettingNames::k_fpix_PLL_CTR1_address; nameToAddress_[PortCardSettingNames::k_PLL_CTR2] = PortCardSettingNames::k_fpix_PLL_CTR2_address; nameToAddress_[PortCardSettingNames::k_PLL_CTR3] = PortCardSettingNames::k_fpix_PLL_CTR3_address; nameToAddress_[PortCardSettingNames::k_PLL_CTR4or5] = PortCardSettingNames::k_fpix_PLL_CTR4or5_address; nameToAddress_[PortCardSettingNames::k_Delay25_RDA] = PortCardSettingNames::k_fpix_Delay25_RDA_address; nameToAddress_[PortCardSettingNames::k_Delay25_RCL] = PortCardSettingNames::k_fpix_Delay25_RCL_address; nameToAddress_[PortCardSettingNames::k_Delay25_SDA] = PortCardSettingNames::k_fpix_Delay25_SDA_address; nameToAddress_[PortCardSettingNames::k_Delay25_TRG] = PortCardSettingNames::k_fpix_Delay25_TRG_address; nameToAddress_[PortCardSettingNames::k_Delay25_SCL] = PortCardSettingNames::k_fpix_Delay25_SCL_address; nameToAddress_[PortCardSettingNames::k_Delay25_GCR] = PortCardSettingNames::k_fpix_Delay25_GCR_address; nameToAddress_[PortCardSettingNames::k_DOH_Ch0Bias_CLK] = PortCardSettingNames::k_fpix_DOH_Ch0Bias_CLK_address; nameToAddress_[PortCardSettingNames::k_DOH_Dummy] = PortCardSettingNames::k_fpix_DOH_Dummy_address; nameToAddress_[PortCardSettingNames::k_DOH_Ch1Bias_Data] = PortCardSettingNames::k_fpix_DOH_Ch1Bias_Data_address; nameToAddress_[PortCardSettingNames::k_DOH_Gain_SEU] = PortCardSettingNames::k_fpix_DOH_Gain_SEU_address; } else if ( type_ == "bpix" ) { nameToAddress_[PortCardSettingNames::k_AOH1_Bias1] = PortCardSettingNames::k_bpix_AOH1_Bias1_address; nameToAddress_[PortCardSettingNames::k_AOH1_Bias2] = PortCardSettingNames::k_bpix_AOH1_Bias2_address; nameToAddress_[PortCardSettingNames::k_AOH1_Bias3] = PortCardSettingNames::k_bpix_AOH1_Bias3_address; nameToAddress_[PortCardSettingNames::k_AOH1_Bias4] = PortCardSettingNames::k_bpix_AOH1_Bias4_address; nameToAddress_[PortCardSettingNames::k_AOH1_Bias5] = PortCardSettingNames::k_bpix_AOH1_Bias5_address; nameToAddress_[PortCardSettingNames::k_AOH1_Bias6] = PortCardSettingNames::k_bpix_AOH1_Bias6_address; nameToAddress_[PortCardSettingNames::k_AOH1_Gain123] = PortCardSettingNames::k_bpix_AOH1_Gain123_address; nameToAddress_[PortCardSettingNames::k_AOH1_Gain456] = PortCardSettingNames::k_bpix_AOH1_Gain456_address; nameToAddress_[PortCardSettingNames::k_AOH2_Bias1] = PortCardSettingNames::k_bpix_AOH2_Bias1_address; nameToAddress_[PortCardSettingNames::k_AOH2_Bias2] = PortCardSettingNames::k_bpix_AOH2_Bias2_address; nameToAddress_[PortCardSettingNames::k_AOH2_Bias3] = PortCardSettingNames::k_bpix_AOH2_Bias3_address; nameToAddress_[PortCardSettingNames::k_AOH2_Bias4] = PortCardSettingNames::k_bpix_AOH2_Bias4_address; nameToAddress_[PortCardSettingNames::k_AOH2_Bias5] = PortCardSettingNames::k_bpix_AOH2_Bias5_address; nameToAddress_[PortCardSettingNames::k_AOH2_Bias6] = PortCardSettingNames::k_bpix_AOH2_Bias6_address; nameToAddress_[PortCardSettingNames::k_AOH2_Gain123] = PortCardSettingNames::k_bpix_AOH2_Gain123_address; nameToAddress_[PortCardSettingNames::k_AOH2_Gain456] = PortCardSettingNames::k_bpix_AOH2_Gain456_address; nameToAddress_[PortCardSettingNames::k_AOH3_Bias1] = PortCardSettingNames::k_bpix_AOH3_Bias1_address; nameToAddress_[PortCardSettingNames::k_AOH3_Bias2] = PortCardSettingNames::k_bpix_AOH3_Bias2_address; nameToAddress_[PortCardSettingNames::k_AOH3_Bias3] = PortCardSettingNames::k_bpix_AOH3_Bias3_address; nameToAddress_[PortCardSettingNames::k_AOH3_Bias4] = PortCardSettingNames::k_bpix_AOH3_Bias4_address; nameToAddress_[PortCardSettingNames::k_AOH3_Bias5] = PortCardSettingNames::k_bpix_AOH3_Bias5_address; nameToAddress_[PortCardSettingNames::k_AOH3_Bias6] = PortCardSettingNames::k_bpix_AOH3_Bias6_address; nameToAddress_[PortCardSettingNames::k_AOH3_Gain123] = PortCardSettingNames::k_bpix_AOH3_Gain123_address; nameToAddress_[PortCardSettingNames::k_AOH3_Gain456] = PortCardSettingNames::k_bpix_AOH3_Gain456_address; nameToAddress_[PortCardSettingNames::k_AOH4_Bias1] = PortCardSettingNames::k_bpix_AOH4_Bias1_address; nameToAddress_[PortCardSettingNames::k_AOH4_Bias2] = PortCardSettingNames::k_bpix_AOH4_Bias2_address; nameToAddress_[PortCardSettingNames::k_AOH4_Bias3] = PortCardSettingNames::k_bpix_AOH4_Bias3_address; nameToAddress_[PortCardSettingNames::k_AOH4_Bias4] = PortCardSettingNames::k_bpix_AOH4_Bias4_address; nameToAddress_[PortCardSettingNames::k_AOH4_Bias5] = PortCardSettingNames::k_bpix_AOH4_Bias5_address; nameToAddress_[PortCardSettingNames::k_AOH4_Bias6] = PortCardSettingNames::k_bpix_AOH4_Bias6_address; nameToAddress_[PortCardSettingNames::k_AOH4_Gain123] = PortCardSettingNames::k_bpix_AOH4_Gain123_address; nameToAddress_[PortCardSettingNames::k_AOH4_Gain456] = PortCardSettingNames::k_bpix_AOH4_Gain456_address; nameToAddress_[PortCardSettingNames::k_PLL_CTR1] = PortCardSettingNames::k_bpix_PLL_CTR1_address; nameToAddress_[PortCardSettingNames::k_PLL_CTR2] = PortCardSettingNames::k_bpix_PLL_CTR2_address; nameToAddress_[PortCardSettingNames::k_PLL_CTR3] = PortCardSettingNames::k_bpix_PLL_CTR3_address; nameToAddress_[PortCardSettingNames::k_PLL_CTR4or5] = PortCardSettingNames::k_bpix_PLL_CTR4or5_address; nameToAddress_[PortCardSettingNames::k_Delay25_RDA] = PortCardSettingNames::k_bpix_Delay25_RDA_address; nameToAddress_[PortCardSettingNames::k_Delay25_RCL] = PortCardSettingNames::k_bpix_Delay25_RCL_address; nameToAddress_[PortCardSettingNames::k_Delay25_SDA] = PortCardSettingNames::k_bpix_Delay25_SDA_address; nameToAddress_[PortCardSettingNames::k_Delay25_TRG] = PortCardSettingNames::k_bpix_Delay25_TRG_address; nameToAddress_[PortCardSettingNames::k_Delay25_SCL] = PortCardSettingNames::k_bpix_Delay25_SCL_address; nameToAddress_[PortCardSettingNames::k_Delay25_GCR] = PortCardSettingNames::k_bpix_Delay25_GCR_address; nameToAddress_[PortCardSettingNames::k_DOH_Ch0Bias_CLK] = PortCardSettingNames::k_bpix_DOH_Ch0Bias_CLK_address; nameToAddress_[PortCardSettingNames::k_DOH_Dummy] = PortCardSettingNames::k_bpix_DOH_Dummy_address; nameToAddress_[PortCardSettingNames::k_DOH_Ch1Bias_Data] = PortCardSettingNames::k_bpix_DOH_Ch1Bias_Data_address; nameToAddress_[PortCardSettingNames::k_DOH_Gain_SEU] = PortCardSettingNames::k_bpix_DOH_Gain_SEU_address; } else assert(0); return; }
unsigned int pos::PixelPortCardConfig::getAOHBias | ( | unsigned int | AOHNumber | ) | const [inline] |
Definition at line 66 of file PixelPortCardConfig.h.
References AOHBiasAddressFromAOHNumber(), and getdeviceValuesForAddress().
{return getdeviceValuesForAddress(AOHBiasAddressFromAOHNumber(AOHNumber));}
unsigned int PixelPortCardConfig::getAOHGain | ( | unsigned int | AOHNumber | ) | const |
Definition at line 1336 of file PixelPortCardConfig.cc.
References AOHGainAddressFromAOHNumber(), and getdeviceValuesForAddress().
{ const unsigned int address = AOHGainAddressFromAOHNumber(AOHNumber); const unsigned int threeGainsValue = getdeviceValuesForAddress(address); if ( AOHNumber%3 == 1 ) return (((threeGainsValue) & 0x03)>>0); // return bits 0 & 1 if ( AOHNumber%3 == 2 ) return (((threeGainsValue) & 0x0c)>>2); // return bits 2 & 3 if ( AOHNumber%3 == 0 ) return (((threeGainsValue) & 0x30)>>4); // return bits 4 & 5 assert(0); }
unsigned int PixelPortCardConfig::getccuAddress | ( | ) | const |
Definition at line 1087 of file PixelPortCardConfig.cc.
References ccuAddress_.
{ return ccuAddress_; }
unsigned int PixelPortCardConfig::getchannelAddress | ( | ) | const |
Definition at line 1091 of file PixelPortCardConfig.cc.
References channelAddress_.
{ return channelAddress_; }
unsigned int PixelPortCardConfig::getdeviceAddress | ( | unsigned int | i | ) | const |
unsigned int PixelPortCardConfig::getdeviceAddressForSetting | ( | std::string | settingName | ) | const |
Definition at line 1136 of file PixelPortCardConfig.cc.
References nameToAddress_.
Referenced by containsSetting(), getdeviceValuesForSetting(), PixelPortCardConfig(), and setdeviceValues().
{ //std::cout << "[PixelPortCardConfig::getdeviceAddressForSetting()]\t settingName: " << settingName<< std::endl ; std::map<std::string, unsigned int>::const_iterator foundName_itr = nameToAddress_.find(settingName); assert( foundName_itr != nameToAddress_.end() ); return foundName_itr->second; }
unsigned int PixelPortCardConfig::getdevicesize | ( | ) | const |
Definition at line 1075 of file PixelPortCardConfig.cc.
References device_.
{ return device_.size(); }
unsigned int PixelPortCardConfig::getdeviceValues | ( | unsigned int | i | ) | const |
unsigned int PixelPortCardConfig::getdeviceValuesForAddress | ( | unsigned int | address | ) | const |
Definition at line 1149 of file PixelPortCardConfig.cc.
Referenced by getAOHBias(), getAOHGain(), and getdeviceValuesForSetting().
unsigned int PixelPortCardConfig::getdeviceValuesForSetting | ( | std::string | settingName | ) | const |
Definition at line 1144 of file PixelPortCardConfig.cc.
References getdeviceAddressForSetting(), and getdeviceValuesForAddress().
Referenced by PixelPortCardConfig().
{ return getdeviceValuesForAddress( getdeviceAddressForSetting(settingName) ); }
unsigned int PixelPortCardConfig::geti2cSpeed | ( | ) | const |
const std::string& pos::PixelPortCardConfig::getPortCardName | ( | ) | const [inline] |
Definition at line 51 of file PixelPortCardConfig.h.
References portcardname_.
{ return portcardname_; }
unsigned int PixelPortCardConfig::getringAddress | ( | ) | const |
Definition at line 1083 of file PixelPortCardConfig.cc.
References ringAddress_.
{ return ringAddress_; }
std::string PixelPortCardConfig::getTKFECID | ( | ) | const |
Definition at line 1079 of file PixelPortCardConfig.cc.
References TKFECID_.
Referenced by pos::PixelCalibConfiguration::getTKFECCrates().
{ return TKFECID_; }
std::string PixelPortCardConfig::gettype | ( | ) | const |
unsigned int PixelPortCardConfig::new_PLL_CTR2_value | ( | std::string | CTR4or5, |
unsigned int | last_CTR2 | ||
) | const |
Definition at line 492 of file PixelPortCardConfig.cc.
References pos::PortCardSettingNames::k_PLL_CTR4, and pos::PortCardSettingNames::k_PLL_CTR5.
Referenced by PixelPortCardConfig().
{ if ( CTR4or5 == k_PLL_CTR4 ) return 0xdf & last_CTR2; else if ( CTR4or5 == k_PLL_CTR5 ) return 0x20 | last_CTR2; else assert(0); }
void PixelPortCardConfig::setAOHGain | ( | std::string | settingName, |
unsigned int | value | ||
) | [private] |
Definition at line 499 of file PixelPortCardConfig.cc.
References device_, first, i, pos::PortCardSettingNames::k_bpix_AOH1_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH1_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH2_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH2_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH3_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH3_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH4_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH4_Gain456_address, pos::PortCardSettingNames::k_fpix_AOH_Gain123_address, pos::PortCardSettingNames::k_fpix_AOH_Gain456_address, AlCaHLTBitMon_ParallelJobs::p, and type_.
{ assert( settingName.find("AOH") != string::npos && settingName.find("Gain") != string::npos // contains both "AOH" and "Gain" && settingName.find("123") == string::npos && settingName.find("456") == string::npos ); // does not contain "123" or "456" unsigned int i2c_address; // Get the i2c address of this AOH, and the channel on the AOH. string::size_type GainPosition = settingName.find("Gain"); unsigned int whichAOH; if ( settingName[GainPosition-2] == 'H' ) whichAOH = 0; // fpix else // bpix { char whichAOHDigit[2]={0,0}; whichAOHDigit[0]=settingName[GainPosition-2]; whichAOH = atoi( whichAOHDigit ); } char digit[2]={0,0}; digit[0]=settingName[GainPosition+4]; unsigned int channelOnAOH = atoi( digit ); assert( (type_=="fpix" && whichAOH==0)||(type_=="bpix" && 1 <= whichAOH&&whichAOH <= 4) ); assert( 1 <= channelOnAOH && channelOnAOH <= 6 ); if ( whichAOH == 0 && channelOnAOH <= 3 ) i2c_address = k_fpix_AOH_Gain123_address; else if ( whichAOH == 0 && channelOnAOH >= 4 ) i2c_address = k_fpix_AOH_Gain456_address; else if ( whichAOH == 1 && channelOnAOH <= 3 ) i2c_address = k_bpix_AOH1_Gain123_address; else if ( whichAOH == 1 && channelOnAOH >= 4 ) i2c_address = k_bpix_AOH1_Gain456_address; else if ( whichAOH == 2 && channelOnAOH <= 3 ) i2c_address = k_bpix_AOH2_Gain123_address; else if ( whichAOH == 2 && channelOnAOH >= 4 ) i2c_address = k_bpix_AOH2_Gain456_address; else if ( whichAOH == 3 && channelOnAOH <= 3 ) i2c_address = k_bpix_AOH3_Gain123_address; else if ( whichAOH == 3 && channelOnAOH >= 4 ) i2c_address = k_bpix_AOH3_Gain456_address; else if ( whichAOH == 4 && channelOnAOH <= 3 ) i2c_address = k_bpix_AOH4_Gain123_address; else if ( whichAOH == 4 && channelOnAOH >= 4 ) i2c_address = k_bpix_AOH4_Gain456_address; else assert(0); // Search for this address in the previously-defined settings. bool foundOne = false; for (unsigned int i=0;i<device_.size();i++) { if ( device_[i].first == i2c_address ) // Change this setting in all previous instances { foundOne = true; unsigned int oldValue = device_[i].second; if ( channelOnAOH%3 == 1 ) device_[i].second = (0x3c & oldValue) + ((value & 0x3)<<0); // replace bits 0 and 1 with value else if ( channelOnAOH%3 == 2 ) device_[i].second = (0x33 & oldValue) + ((value & 0x3)<<2); // replace bits 2 and 3 with value else if ( channelOnAOH%3 == 0 ) device_[i].second = (0x0f & oldValue) + ((value & 0x3)<<4); // replace bits 4 and 5 with value else assert(0); //std::cout << "Changed setting "<< k_fpix_AOH_Gain123 <<"(address 0x"<<std::hex<<k_fpix_AOH_Gain123_address<<") from 0x"<<oldValue<<" to 0x"<< device_[i].second << std::dec <<"\n"; } } if ( foundOne ) return; else // If this was not set previously, add this setting with the other two gains set to zero. { unsigned int i2c_value; if ( channelOnAOH%3 == 1 ) i2c_value = ((value & 0x3)<<0); else if ( channelOnAOH%3 == 2 ) i2c_value = ((value & 0x3)<<2); else if ( channelOnAOH%3 == 0 ) i2c_value = ((value & 0x3)<<4); else assert(0); pair<unsigned int, unsigned int> p(i2c_address, i2c_value); device_.push_back(p); return; } }
void pos::PixelPortCardConfig::setAOHGain | ( | unsigned int | AOHNumber, |
unsigned int | value | ||
) | [inline] |
Definition at line 73 of file PixelPortCardConfig.h.
References AOHGainStringFromAOHNumber(), and setAOHGain().
Referenced by PixelPortCardConfig(), and setAOHGain().
{setAOHGain(AOHGainStringFromAOHNumber(AOHNumber),value);}
void PixelPortCardConfig::setDataBaseAOHGain | ( | std::string | settingName, |
unsigned int | value | ||
) | [private] |
Definition at line 567 of file PixelPortCardConfig.cc.
References aohcount_, device_, first, i, pos::PortCardSettingNames::k_bpix_AOH1_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH1_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH2_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH2_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH3_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH3_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH4_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH4_Gain456_address, pos::PortCardSettingNames::k_fpix_AOH_Gain123_address, pos::PortCardSettingNames::k_fpix_AOH_Gain456_address, key_, AlCaHLTBitMon_ParallelJobs::p, and type_.
{ unsigned int i2c_address; // Get the i2c address of this AOH, and the channel on the AOH. string::size_type GainPosition = settingName.find("GAIN"); unsigned int whichAOH; if(type_ == "fpix") { whichAOH = 0 ; // fpix } else // bpix { char whichAOHDigit[2]={0,0}; whichAOHDigit[0]=settingName[GainPosition-2]; whichAOH = atoi( whichAOHDigit ); } char digit[2]={0,0}; digit[0]=settingName[GainPosition+4]; unsigned int channelOnAOH = atoi( digit ); assert( (type_=="fpix" && whichAOH==0)||(type_=="bpix" && 1 <= whichAOH&&whichAOH <= 4) ); assert( 1 <= channelOnAOH && channelOnAOH <= 6 ); if ( whichAOH == 0 && channelOnAOH <= 3 ) i2c_address = k_fpix_AOH_Gain123_address; else if ( whichAOH == 0 && channelOnAOH >= 4 ) i2c_address = k_fpix_AOH_Gain456_address; else if ( whichAOH == 1 && channelOnAOH <= 3 ) i2c_address = k_bpix_AOH1_Gain123_address; else if ( whichAOH == 1 && channelOnAOH >= 4 ) i2c_address = k_bpix_AOH1_Gain456_address; else if ( whichAOH == 2 && channelOnAOH <= 3 ) i2c_address = k_bpix_AOH2_Gain123_address; else if ( whichAOH == 2 && channelOnAOH >= 4 ) i2c_address = k_bpix_AOH2_Gain456_address; else if ( whichAOH == 3 && channelOnAOH <= 3 ) i2c_address = k_bpix_AOH3_Gain123_address; else if ( whichAOH == 3 && channelOnAOH >= 4 ) i2c_address = k_bpix_AOH3_Gain456_address; else if ( whichAOH == 4 && channelOnAOH <= 3 ) i2c_address = k_bpix_AOH4_Gain123_address; else if ( whichAOH == 4 && channelOnAOH >= 4 ) i2c_address = k_bpix_AOH4_Gain456_address; else assert(0); // Search for this address in the previously-defined settings. bool foundOne = false; for (unsigned int i=0;i<device_.size();i++) { if ( device_[i].first == i2c_address ) // Change this setting in all previous instances { foundOne = true; unsigned int oldValue = device_[i].second; if ( channelOnAOH%3 == 1 ) device_[i].second = (0x3c & oldValue) + ((value & 0x3)<<0); // replace bits 0 and 1 with value else if ( channelOnAOH%3 == 2 ) device_[i].second = (0x33 & oldValue) + ((value & 0x3)<<2); // replace bits 2 and 3 with value else if ( channelOnAOH%3 == 0 ) device_[i].second = (0x0f & oldValue) + ((value & 0x3)<<4); // replace bits 4 and 5 with value else assert(0); //std::cout << "Changed setting "<< k_fpix_AOH_Gain123 <<"(address 0x"<<std::hex<<k_fpix_AOH_Gain123_address<<") from 0x"<<oldValue<<" to 0x"<< device_[i].second << std::dec <<"\n"; } } if ( foundOne ) return; else // If this was not set previously, add this setting with the other two gains set to zero. { unsigned int i2c_value; if ( channelOnAOH%3 == 1 ) i2c_value = ((value & 0x3)<<0); else if ( channelOnAOH%3 == 2 ) i2c_value = ((value & 0x3)<<2); else if ( channelOnAOH%3 == 0 ) i2c_value = ((value & 0x3)<<4); else assert(0); pair<unsigned int, unsigned int> p(i2c_address, i2c_value); device_.push_back(p); key_.push_back(aohcount_++); return; } }
void PixelPortCardConfig::setdeviceValues | ( | unsigned int | address, |
unsigned int | value | ||
) |
Definition at line 1113 of file PixelPortCardConfig.cc.
References device_, i, AlCaHLTBitMon_ParallelJobs::p, and relativeConstraints::value.
Referenced by setdeviceValues().
{ for (int i=device_.size()-1; i>=0; i--) // Change only the last occurance of address, if there are more than one. { if( device_.at(i).first==address ) { device_.at(i).second=value; return; } } // This address wasn't found in the list, so add it and its value. pair<unsigned int, unsigned int> p(address, value); device_.push_back(p); return; }
void PixelPortCardConfig::setdeviceValues | ( | std::string | settingName, |
unsigned int | value | ||
) |
Definition at line 1130 of file PixelPortCardConfig.cc.
References getdeviceAddressForSetting(), and setdeviceValues().
{ setdeviceValues( getdeviceAddressForSetting(settingName), value ); return; }
void pos::PixelPortCardConfig::setPortCardName | ( | std::string | newName | ) | [inline] |
Definition at line 52 of file PixelPortCardConfig.h.
References portcardname_.
{ portcardname_ = newName; }
void PixelPortCardConfig::sortDeviceList | ( | ) | [private] |
Definition at line 470 of file PixelPortCardConfig.cc.
References device_, i, and key_.
{ std::set < pair < unsigned int, pair <unsigned int, unsigned int> > > sorted; for (unsigned int i=0; i<device_.size(); i++ ) { //cout<<key_.at(i)<<"\t"<<device_.at(i).first<<" "<<device_.at(i).second<<endl; sorted.insert( make_pair(key_.at(i) , device_.at(i) )); } // cout<<" -=-=-=-= done with sorting -=-=-="<<endl; device_.clear(); for ( set < pair < unsigned int, pair <unsigned int, unsigned int> > >::iterator i=sorted.begin() ; i!=sorted.end() ; ++i) { device_.push_back(i->second); } // for (unsigned int i=0; i<device_.size(); i++ ) { // cout<<" \t"<<device_.at(i).first<<" "<<device_.at(i).second<<endl; // } }
void PixelPortCardConfig::writeASCII | ( | std::string | dir = "" | ) | const [virtual] |
Implements pos::PixelConfigBase.
Definition at line 975 of file PixelPortCardConfig.cc.
References ccuAddress_, channelAddress_, gather_cfg::cout, device_, lut2db_cfg::filename, i, i2cSpeed_, pos::PortCardSettingNames::k_bpix_AOH1_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH1_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH2_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH2_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH3_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH3_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH4_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH4_Gain456_address, pos::PortCardSettingNames::k_fpix_AOH_Gain123_address, pos::PortCardSettingNames::k_fpix_AOH_Gain456_address, pos::PortCardSettingNames::k_PLL_CTR2, pos::PortCardSettingNames::k_PLL_CTR4, pos::PortCardSettingNames::k_PLL_CTR4or5, pos::PortCardSettingNames::k_PLL_CTR5, nameToAddress_, dbtoconf::out, portcardname_, ringAddress_, TKFECID_, and type_.
{ std::string mthn = "[PixelPortCardConfig::writeASCII()]\t\t\t\t " ; if (dir!="") dir+="/"; std::string filename=dir+"portcard_"+portcardname_+".dat"; std::ofstream out(filename.c_str()); if (!out.good()){ std::cout << __LINE__ << "]\t" << mthn << "Could not open file: " << filename.c_str() << std::endl; assert(0); } out << "Name: " << portcardname_ << std::endl; out << "Type: " << type_ << std::endl; out << "TKFECID: " << TKFECID_ << std::endl; out << "ringAddress: 0x" <<std::hex<< ringAddress_ <<std::dec<< std::endl; out << "ccuAddress: 0x" <<std::hex<< ccuAddress_ <<std::dec<< std::endl; out << "channelAddress: 0x" <<std::hex<< channelAddress_ <<std::dec<< std::endl; out << "i2cSpeed: 0x" <<std::hex<< i2cSpeed_ <<std::dec<< std::endl; bool found_PLL_CTR2 = false; unsigned int last_PLL_CTR2_value = 0x0; for (unsigned int i=0;i<device_.size();i++) { unsigned int deviceAddress = device_.at(i).first; // Special handling for AOH gains if ( ( type_=="fpix" && deviceAddress == k_fpix_AOH_Gain123_address ) || ( type_=="fpix" && deviceAddress == k_fpix_AOH_Gain456_address ) || ( type_=="bpix" && deviceAddress == k_bpix_AOH1_Gain123_address ) || ( type_=="bpix" && deviceAddress == k_bpix_AOH1_Gain456_address ) || ( type_=="bpix" && deviceAddress == k_bpix_AOH2_Gain123_address ) || ( type_=="bpix" && deviceAddress == k_bpix_AOH2_Gain456_address ) || ( type_=="bpix" && deviceAddress == k_bpix_AOH3_Gain123_address ) || ( type_=="bpix" && deviceAddress == k_bpix_AOH3_Gain456_address ) || ( type_=="bpix" && deviceAddress == k_bpix_AOH4_Gain123_address ) || ( type_=="bpix" && deviceAddress == k_bpix_AOH4_Gain456_address ) ) { std::string whichAOHString; unsigned int zeroOrThree; if ( type_=="fpix" && deviceAddress == k_fpix_AOH_Gain123_address ) { whichAOHString = ""; zeroOrThree = 0; } else if ( type_=="fpix" && deviceAddress == k_fpix_AOH_Gain456_address ) { whichAOHString = ""; zeroOrThree = 3; } else if ( type_=="bpix" && deviceAddress == k_bpix_AOH1_Gain123_address ) { whichAOHString = "1"; zeroOrThree = 0; } else if ( type_=="bpix" && deviceAddress == k_bpix_AOH1_Gain456_address ) { whichAOHString = "1"; zeroOrThree = 3; } else if ( type_=="bpix" && deviceAddress == k_bpix_AOH2_Gain123_address ) { whichAOHString = "2"; zeroOrThree = 0; } else if ( type_=="bpix" && deviceAddress == k_bpix_AOH2_Gain456_address ) { whichAOHString = "2"; zeroOrThree = 3; } else if ( type_=="bpix" && deviceAddress == k_bpix_AOH3_Gain123_address ) { whichAOHString = "3"; zeroOrThree = 0; } else if ( type_=="bpix" && deviceAddress == k_bpix_AOH3_Gain456_address ) { whichAOHString = "3"; zeroOrThree = 3; } else if ( type_=="bpix" && deviceAddress == k_bpix_AOH4_Gain123_address ) { whichAOHString = "4"; zeroOrThree = 0; } else if ( type_=="bpix" && deviceAddress == k_bpix_AOH4_Gain456_address ) { whichAOHString = "4"; zeroOrThree = 3; } else assert(0); out << "AOH"<<whichAOHString<<"_Gain"<<zeroOrThree+1<<": 0x"<< (((device_[i].second) & 0x03)>>0) << std::endl; // output bits 0 & 1 out << "AOH"<<whichAOHString<<"_Gain"<<zeroOrThree+2<<": 0x"<< (((device_[i].second) & 0x0c)>>2) << std::endl; // output bits 2 & 3 out << "AOH"<<whichAOHString<<"_Gain"<<zeroOrThree+3<<": 0x"<< (((device_[i].second) & 0x30)>>4) << std::endl; // output bits 4 & 5 continue; } // End of special handling // Check to see if there's a name corresponding to this address. std::string settingName = ""; for ( std::map<std::string, unsigned int>::const_iterator nameToAddress_itr = nameToAddress_.begin(); nameToAddress_itr != nameToAddress_.end(); ++nameToAddress_itr ) { // cout << "[PixelPortCardConfig::WriteASCII()]\tnameToAddress.first: " << nameToAddress_itr->first << endl ; // cout << "[PixelPortCardConfig::WriteASCII()]\tnameToAddress.second: " << nameToAddress_itr->second << endl ; // cout << "[PixelPortCardConfig::WriteASCII()]\tdeviceAddress: " << deviceAddress << endl ; if ( nameToAddress_itr->second == deviceAddress ) {settingName = nameToAddress_itr->first; break;} if(nameToAddress_itr == (--nameToAddress_.end())) { cout << "[PixelPortCardConfig::WriteASCII()]\tdeviceAddress: " << deviceAddress << " NOT FOUND" << endl ; } } // Special handling for PLL addresses. if ( settingName == k_PLL_CTR2 ) { if ( found_PLL_CTR2 && last_PLL_CTR2_value == device_.at(i).second ) continue; // don't save duplicate CTR2 settings found_PLL_CTR2 = true; last_PLL_CTR2_value = device_.at(i).second; } if ( found_PLL_CTR2 && settingName == k_PLL_CTR4or5 ) // change name to PLL_CTR4 or PLL_CTR5 { if ( (last_PLL_CTR2_value & 0x20) == 0x0 ) settingName = k_PLL_CTR4; else settingName = k_PLL_CTR5; } // end of special handling if ( settingName=="" ) out << "0x" <<std::hex<< device_.at(i).first <<std::dec; else out << settingName << ":"; out << " 0x" <<std::hex<< device_.at(i).second <<std::dec<< std::endl; } out.close(); }
void pos::PixelPortCardConfig::writeXML | ( | pos::PixelConfigKey | key, |
int | version, | ||
std::string | path | ||
) | const [inline, virtual] |
void PixelPortCardConfig::writeXML | ( | std::ofstream * | out, |
std::ofstream * | out1 = NULL , |
||
std::ofstream * | out2 = NULL |
||
) | const [virtual] |
Reimplemented from pos::PixelConfigBase.
Definition at line 1389 of file PixelPortCardConfig.cc.
References ccuAddress_, channelAddress_, device_, i, i2cSpeed_, pos::PortCardSettingNames::k_bpix_AOH1_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH1_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH2_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH2_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH3_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH3_Gain456_address, pos::PortCardSettingNames::k_bpix_AOH4_Gain123_address, pos::PortCardSettingNames::k_bpix_AOH4_Gain456_address, pos::PortCardSettingNames::k_fpix_AOH_Gain123_address, pos::PortCardSettingNames::k_fpix_AOH_Gain456_address, pos::PortCardSettingNames::k_PLL_CTR2, pos::PortCardSettingNames::k_PLL_CTR4, pos::PortCardSettingNames::k_PLL_CTR4or5, pos::PortCardSettingNames::k_PLL_CTR5, nameDBtoFileConversion_, nameToAddress_, portcardname_, ringAddress_, TKFECID_, and type_.
{ std::string mthn = "[PixelPortCardConfig::writeXML()]\t\t\t " ; *outstream << " <DATA>" << std::endl; *outstream << " <PORT_CARD>" << portcardname_ << "</PORT_CARD>" << std::endl; *outstream << " <TRKFEC>" << TKFECID_ << "</TRKFEC>" << std::endl; *outstream << " <RING>" << ringAddress_ << "</RING>" << std::endl; *outstream << " <CCU_ADDR>" << ccuAddress_ << "</CCU_ADDR>" << std::endl; *outstream << " <CHANNEL>" << channelAddress_ << "</CHANNEL>" << std::endl; *outstream << " <I2C_SPEED>" << i2cSpeed_ << "</I2C_SPEED>" << std::endl; bool found_PLL_CTR2 = false; unsigned int last_PLL_CTR2_value = 0x0; for (unsigned int i=0;i<device_.size();i++) { unsigned int deviceAddress = device_.at(i).first; // Special handling for AOH gains if ( ( type_=="fpix" && deviceAddress == k_fpix_AOH_Gain123_address ) || ( type_=="fpix" && deviceAddress == k_fpix_AOH_Gain456_address ) || ( type_=="bpix" && deviceAddress == k_bpix_AOH1_Gain123_address ) || ( type_=="bpix" && deviceAddress == k_bpix_AOH1_Gain456_address ) || ( type_=="bpix" && deviceAddress == k_bpix_AOH2_Gain123_address ) || ( type_=="bpix" && deviceAddress == k_bpix_AOH2_Gain456_address ) || ( type_=="bpix" && deviceAddress == k_bpix_AOH3_Gain123_address ) || ( type_=="bpix" && deviceAddress == k_bpix_AOH3_Gain456_address ) || ( type_=="bpix" && deviceAddress == k_bpix_AOH4_Gain123_address ) || ( type_=="bpix" && deviceAddress == k_bpix_AOH4_Gain456_address ) ) { std::string whichAOHString; unsigned int zeroOrThree; if ( type_=="fpix" && deviceAddress == k_fpix_AOH_Gain123_address ) { whichAOHString = ""; zeroOrThree = 0; } else if ( type_=="fpix" && deviceAddress == k_fpix_AOH_Gain456_address ) { whichAOHString = ""; zeroOrThree = 3; } else if ( type_=="bpix" && deviceAddress == k_bpix_AOH1_Gain123_address ) { whichAOHString = "1"; zeroOrThree = 0; } else if ( type_=="bpix" && deviceAddress == k_bpix_AOH1_Gain456_address ) { whichAOHString = "1"; zeroOrThree = 3; } else if ( type_=="bpix" && deviceAddress == k_bpix_AOH2_Gain123_address ) { whichAOHString = "2"; zeroOrThree = 0; } else if ( type_=="bpix" && deviceAddress == k_bpix_AOH2_Gain456_address ) { whichAOHString = "2"; zeroOrThree = 3; } else if ( type_=="bpix" && deviceAddress == k_bpix_AOH3_Gain123_address ) { whichAOHString = "3"; zeroOrThree = 0; } else if ( type_=="bpix" && deviceAddress == k_bpix_AOH3_Gain456_address ) { whichAOHString = "3"; zeroOrThree = 3; } else if ( type_=="bpix" && deviceAddress == k_bpix_AOH4_Gain123_address ) { whichAOHString = "4"; zeroOrThree = 0; } else if ( type_=="bpix" && deviceAddress == k_bpix_AOH4_Gain456_address ) { whichAOHString = "4"; zeroOrThree = 3; } else assert(0); *outstream << " <AOH" << whichAOHString << "_GAIN" << zeroOrThree+1 << ">" << (((device_[i].second) & 0x03)>>0) << "</AOH" << whichAOHString << "_GAIN" << zeroOrThree+1 << ">" << std::endl; // output bits 0 & 1 *outstream << " <AOH" << whichAOHString << "_GAIN" << zeroOrThree+2 << ">" << (((device_[i].second) & 0x0c)>>2) << "</AOH" << whichAOHString << "_GAIN" << zeroOrThree+2 << ">" << std::endl; // output bits 2 & 3 *outstream << " <AOH" << whichAOHString << "_GAIN" << zeroOrThree+3 << ">" << (((device_[i].second) & 0x30)>>4) << "</AOH" << whichAOHString << "_GAIN" << zeroOrThree+3 << ">" << std::endl; // output bits 4 & 5 continue; } // End of special handling // Check to see if there's a name corresponding to this address. std::string settingName = ""; for ( std::map<std::string, unsigned int>::const_iterator nameToAddress_itr = nameToAddress_.begin(); nameToAddress_itr != nameToAddress_.end(); ++nameToAddress_itr ) { if ( nameToAddress_itr->second == deviceAddress ) {settingName = nameToAddress_itr->first; break;} } for ( std::map<std::string, std::string>::const_iterator nameDBtoFileConversion_itr = nameDBtoFileConversion_.begin(); nameDBtoFileConversion_itr != nameDBtoFileConversion_.end(); ++nameDBtoFileConversion_itr ) { if ( nameDBtoFileConversion_itr->second.find(settingName) != std::string::npos ) {settingName = nameDBtoFileConversion_itr->first; break;} } // Special handling for PLL addresses. if ( settingName == k_PLL_CTR2 ) { if ( found_PLL_CTR2 && last_PLL_CTR2_value == device_.at(i).second ) continue; // don't save duplicate CTR2 settings found_PLL_CTR2 = true; last_PLL_CTR2_value = device_.at(i).second; } if ( found_PLL_CTR2 && settingName == k_PLL_CTR4or5 ) // change name to PLL_CTR4 or PLL_CTR5 { if ( (last_PLL_CTR2_value & 0x20) == 0x0 ) settingName = k_PLL_CTR4; else settingName = k_PLL_CTR5; } // end of special handling if ( settingName=="" ) *outstream << device_.at(i).first; else *outstream << " <" << settingName << ">" ; *outstream << device_.at(i).second << "</" << settingName << ">" << std::endl; } *outstream << " </DATA>" << std::endl; }
void PixelPortCardConfig::writeXMLHeader | ( | pos::PixelConfigKey | key, |
int | version, | ||
std::string | path, | ||
std::ofstream * | out, | ||
std::ofstream * | out1 = NULL , |
||
std::ofstream * | out2 = NULL |
||
) | const [virtual] |
Reimplemented from pos::PixelConfigBase.
Definition at line 1348 of file PixelPortCardConfig.cc.
References gather_cfg::cout, pos::PixelConfigBase::getAuthor(), pos::PixelConfigBase::getComment(), pos::PixelTimeFormatter::getmSecTime(), and edm::service::getTime().
{ std::string mthn = "[PixelPortCardConfig::writeXMLHeader()]\t\t\t " ; std::stringstream fullPath ; fullPath << path << "/Pixel_PortCardSettings_" << PixelTimeFormatter::getmSecTime() << ".xml" ; std::cout << __LINE__ << "]\t" << mthn << "Writing to: " << fullPath.str() << std::endl ; outstream->open(fullPath.str().c_str()) ; *outstream << "<?xml version='1.0' encoding='UTF-8' standalone='yes'?>" << std::endl ; *outstream << "<ROOT xmlns:xsi='https://www.w3.org/2001/XMLSchema-instance'>" << std::endl ; *outstream << " <HEADER>" << std::endl ; *outstream << " <TYPE>" << std::endl ; *outstream << " <EXTENSION_TABLE_NAME>PIXEL_PORTCARD_SETTINGS</EXTENSION_TABLE_NAME>" << std::endl ; *outstream << " <NAME>Pixel Port Card Settings</NAME>" << std::endl ; *outstream << " </TYPE>" << std::endl ; *outstream << " <RUN>" << std::endl ; *outstream << " <RUN_TYPE>Pixel Port Card Settings</RUN_TYPE>" << std::endl ; *outstream << " <RUN_NUMBER>1</RUN_NUMBER>" << std::endl ; *outstream << " <RUN_BEGIN_TIMESTAMP>" << pos::PixelTimeFormatter::getTime() << "</RUN_BEGIN_TIMESTAMP>" << std::endl ; *outstream << " <LOCATION>CERN P5</LOCATION>" << std::endl ; *outstream << " </RUN>" << std::endl ; *outstream << " </HEADER>" << std::endl ; *outstream << "" << std::endl ; *outstream << " <DATA_SET>" << std::endl ; *outstream << " <PART>" << std::endl ; *outstream << " <NAME_LABEL>CMS-PIXEL-ROOT</NAME_LABEL>" << std::endl ; *outstream << " <KIND_OF_PART>Detector ROOT</KIND_OF_PART>" << std::endl ; *outstream << " </PART>" << std::endl ; *outstream << " <VERSION>" << version << "</VERSION>" << std::endl ; *outstream << " <COMMENT_DESCRIPTION>" << getComment() << "</COMMENT_DESCRIPTION>" << std::endl ; *outstream << " <CREATED_BY_USER>" << getAuthor() << "</CREATED_BY_USER>" << std::endl ; *outstream << "" << std::endl ; }
void PixelPortCardConfig::writeXMLTrailer | ( | std::ofstream * | out, |
std::ofstream * | out1 = NULL , |
||
std::ofstream * | out2 = NULL |
||
) | const [virtual] |
Reimplemented from pos::PixelConfigBase.
Definition at line 1479 of file PixelPortCardConfig.cc.
{ std::string mthn = "[PixelPortCardConfig::writeXMLTrailer()]\t\t\t " ; *outstream << " </DATA_SET>" << std::endl ; *outstream << "</ROOT> " << std::endl ; outstream->close() ; }
unsigned int pos::PixelPortCardConfig::aohcount_ [private] |
Definition at line 101 of file PixelPortCardConfig.h.
Referenced by setDataBaseAOHGain().
unsigned int pos::PixelPortCardConfig::ccuAddress_ [private] |
Definition at line 93 of file PixelPortCardConfig.h.
Referenced by getccuAddress(), PixelPortCardConfig(), writeASCII(), and writeXML().
unsigned int pos::PixelPortCardConfig::channelAddress_ [private] |
Definition at line 95 of file PixelPortCardConfig.h.
Referenced by getchannelAddress(), PixelPortCardConfig(), writeASCII(), and writeXML().
std::vector< std::pair<unsigned int, unsigned int> > pos::PixelPortCardConfig::device_ [private] |
Definition at line 96 of file PixelPortCardConfig.h.
Referenced by containsDeviceAddress(), getdeviceAddress(), getdevicesize(), getdeviceValues(), getdeviceValuesForAddress(), PixelPortCardConfig(), setAOHGain(), setDataBaseAOHGain(), setdeviceValues(), sortDeviceList(), writeASCII(), and writeXML().
unsigned int pos::PixelPortCardConfig::i2cSpeed_ [private] |
Definition at line 97 of file PixelPortCardConfig.h.
Referenced by geti2cSpeed(), PixelPortCardConfig(), writeASCII(), and writeXML().
std::vector< unsigned int > pos::PixelPortCardConfig::key_ [private] |
key used for sorting device_
Definition at line 100 of file PixelPortCardConfig.h.
Referenced by setDataBaseAOHGain(), and sortDeviceList().
std::map<std::string, std::string> pos::PixelPortCardConfig::nameDBtoFileConversion_ [private] |
Definition at line 107 of file PixelPortCardConfig.h.
Referenced by fillDBToFileAddress(), and writeXML().
std::map<std::string, unsigned int> pos::PixelPortCardConfig::nameToAddress_ [private] |
Definition at line 106 of file PixelPortCardConfig.h.
Referenced by fillNameToAddress(), getdeviceAddressForSetting(), PixelPortCardConfig(), writeASCII(), and writeXML().
std::string pos::PixelPortCardConfig::portcardname_ [private] |
Definition at line 89 of file PixelPortCardConfig.h.
Referenced by getPortCardName(), PixelPortCardConfig(), setPortCardName(), writeASCII(), and writeXML().
unsigned int pos::PixelPortCardConfig::ringAddress_ [private] |
Definition at line 92 of file PixelPortCardConfig.h.
Referenced by getringAddress(), PixelPortCardConfig(), writeASCII(), and writeXML().
std::string pos::PixelPortCardConfig::TKFECID_ [private] |
Definition at line 91 of file PixelPortCardConfig.h.
Referenced by getTKFECID(), PixelPortCardConfig(), writeASCII(), and writeXML().
std::string pos::PixelPortCardConfig::type_ [private] |
Definition at line 104 of file PixelPortCardConfig.h.
Referenced by AOHBiasAddressFromAOHNumber(), AOHGainAddressFromAOHNumber(), AOHGainStringFromAOHNumber(), fillDBToFileAddress(), fillNameToAddress(), gettype(), PixelPortCardConfig(), setAOHGain(), setDataBaseAOHGain(), writeASCII(), and writeXML().