This is the documentation about PixelNameTranslation... More...
#include <PixelNameTranslation.h>
Public Member Functions | |
PixelChannel | ChannelFromFEDChannel (unsigned int fednumber, unsigned int fedchannel) const |
const bool | checkFor (const PixelROCName &aROC) const |
bool | checkROCExistence (const PixelROCName &aROC) const |
bool | FEDChannelExist (unsigned int fednumber, unsigned int fedchannel) const |
const PixelHdwAddress & | firstHdwAddress (const PixelModuleName &aModule) const |
const PixelChannel & | getChannelForROC (const PixelROCName &aROC) const |
const PixelChannel & | getChannelFromHdwAddress (const PixelHdwAddress &aHdwAddress) const |
std::set< PixelChannel > | getChannels () const |
std::set< PixelChannel > | getChannels (const PixelDetectorConfig &aDetectorConfig) const |
std::set< PixelChannel > | getChannelsOnModule (const PixelModuleName &aModule) const |
std::map< unsigned int, std::set< unsigned int > > | getFEDsAndChannels () const |
const PixelHdwAddress * | getHdwAddress (const PixelROCName &aROC) const |
const PixelHdwAddress & | getHdwAddress (const PixelChannel &aChannel) const |
std::list< const PixelModuleName * > | getModules () const |
std::list< const PixelROCName * > | getROCs () const |
const std::vector< PixelROCName > & | getROCsFromChannel (const PixelChannel &aChannel) const |
const std::vector< PixelROCName > & | getROCsFromFEDChannel (unsigned int fednumber, unsigned int fedchannel) const |
std::vector< PixelROCName > | getROCsFromModule (const PixelModuleName &aModule) const |
PixelNameTranslation (std::vector< std::vector< std::string > > &tableMat) | |
PixelNameTranslation (std::string filename) | |
bool | ROCexists (PixelROCName theROC) |
PixelROCName | ROCNameFromFEDChannelROC (unsigned int fednumber, unsigned int channel, unsigned int roc) const |
bool | ROCNameFromFEDChannelROCExists (unsigned int fednumber, unsigned int channel, unsigned int roc) const |
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 |
virtual | ~PixelNameTranslation () |
Public Member Functions inherited from pos::PixelConfigBase | |
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 () |
Private Member Functions | |
std::vector< PixelROCName > | buildROCsFromFEDChannel (unsigned int fednumber, unsigned int fedchannel) const |
Private Attributes | |
std::map< PixelChannel, PixelHdwAddress > | channelTranslationTable_ |
std::map< PixelHdwAddress, PixelROCName, PixelHdwAddress > | fedlookup_ |
std::map< PixelHdwAddress, PixelChannel > | hdwTranslationTable_ |
std::map< unsigned int, std::map< unsigned int, std::vector< PixelROCName > > > | rocsFromFEDidAndChannel_ |
std::map< PixelROCName, PixelHdwAddress > | translationtable_ |
Friends | |
std::ostream & | operator<< (std::ostream &s, const PixelNameTranslation &table) |
This is the documentation about PixelNameTranslation...
" "
This class provides a translation from the naming documents standard to specify the ROC to the corresponding set of mfec, mfecchanner, hubaddress portadd and rocid
Definition at line 41 of file PixelNameTranslation.h.
PixelNameTranslation::PixelNameTranslation | ( | std::vector< std::vector< std::string > > & | tableMat | ) |
Definition at line 23 of file PixelNameTranslation.cc.
References assert(), EnergyCorrector::c, channelTranslationTable_, counter, gather_cfg::cout, pos::PixelHdwAddress::fecnumber(), pos::PixelHdwAddress::fedchannel(), fedlookup_, pos::PixelHdwAddress::fednumber(), getFEDsAndChannels(), hdwTranslationTable_, pos::PixelHdwAddress::hubaddress(), cmsHarvester::index, pos::PixelHdwAddress::mfec(), pos::PixelHdwAddress::mfecchannel(), gen::n, alignCSCRings::r, pos::PixelROCName::rocname(), ROCNameFromFEDChannelROCExists(), rocsFromFEDidAndChannel_, AlCaHLTBitMon_QueryRunRegistry::string, tmp, and translationtable_.
PixelNameTranslation::PixelNameTranslation | ( | std::string | filename | ) |
Definition at line 230 of file PixelNameTranslation.cc.
References assert(), channelTranslationTable_, counter, gather_cfg::cout, pos::PixelHdwAddress::fecnumber(), pos::PixelHdwAddress::fedchannel(), fedlookup_, pos::PixelHdwAddress::fednumber(), getFEDsAndChannels(), hdwTranslationTable_, pos::PixelHdwAddress::hubaddress(), recoMuon::in, cmsHarvester::index, pos::PixelHdwAddress::mfec(), pos::PixelHdwAddress::mfecchannel(), ROCNameFromFEDChannelROCExists(), rocsFromFEDidAndChannel_, AlCaHLTBitMon_QueryRunRegistry::string, tmp, and translationtable_.
|
inlinevirtual |
Definition at line 48 of file PixelNameTranslation.h.
|
private |
Definition at line 588 of file PixelNameTranslation.cc.
References assert(), counter, cmsHarvester::index, tmp, and translationtable_.
PixelChannel PixelNameTranslation::ChannelFromFEDChannel | ( | unsigned int | fednumber, |
unsigned int | fedchannel | ||
) | const |
Definition at line 658 of file PixelNameTranslation.cc.
References assert(), channelTranslationTable_, gather_cfg::cout, and AlCaHLTBitMon_QueryRunRegistry::string.
const bool PixelNameTranslation::checkFor | ( | const PixelROCName & | aROC | ) | const |
Definition at line 517 of file PixelNameTranslation.cc.
References edm::false, translationtable_, and funct::true.
bool PixelNameTranslation::checkROCExistence | ( | const PixelROCName & | aROC | ) | const |
Definition at line 510 of file PixelNameTranslation.cc.
References AlCaHLTBitMon_QueryRunRegistry::string, translationtable_, and funct::true.
bool PixelNameTranslation::FEDChannelExist | ( | unsigned int | fednumber, |
unsigned int | fedchannel | ||
) | const |
Definition at line 691 of file PixelNameTranslation.cc.
References assert(), channelTranslationTable_, gather_cfg::cout, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by pos::PixelConfigurationVerifier::checkChannelEnable().
const PixelHdwAddress & PixelNameTranslation::firstHdwAddress | ( | const PixelModuleName & | aModule | ) | const |
Definition at line 535 of file PixelNameTranslation.cc.
References assert(), gather_cfg::cout, getChannelsOnModule(), getHdwAddress(), and AlCaHLTBitMon_QueryRunRegistry::string.
const PixelChannel & PixelNameTranslation::getChannelForROC | ( | const PixelROCName & | aROC | ) | const |
Definition at line 549 of file PixelNameTranslation.cc.
References assert(), getChannelFromHdwAddress(), and translationtable_.
Referenced by pos::PixelCalibConfiguration::buildObjectsDependingOnTheNameTranslation(), and pos::PixelCalibConfiguration::nextFECState().
const PixelChannel & PixelNameTranslation::getChannelFromHdwAddress | ( | const PixelHdwAddress & | aHdwAddress | ) | const |
Definition at line 716 of file PixelNameTranslation.cc.
References assert(), gather_cfg::cout, hdwTranslationTable_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getChannelForROC(), writeASCII(), and writeXML().
std::set< PixelChannel > PixelNameTranslation::getChannels | ( | ) | const |
Definition at line 474 of file PixelNameTranslation.cc.
References channelTranslationTable_.
Referenced by pos::PixelConfigurationVerifier::checkChannelEnable().
std::set< PixelChannel > PixelNameTranslation::getChannels | ( | const PixelDetectorConfig & | aDetectorConfig | ) | const |
Definition at line 484 of file PixelNameTranslation.cc.
References channelTranslationTable_, and pos::PixelDetectorConfig::containsModule().
std::set< PixelChannel > PixelNameTranslation::getChannelsOnModule | ( | const PixelModuleName & | aModule | ) | const |
Definition at line 556 of file PixelNameTranslation.cc.
References assert(), and channelTranslationTable_.
Referenced by firstHdwAddress(), pos::PixelCalibConfiguration::getFECCrates(), pos::PixelCalibConfiguration::getFEDCrates(), pos::PixelDetectorConfig::getFEDs(), pos::PixelDetectorConfig::getFEDsAndChannels(), and getROCsFromModule().
std::map< unsigned int, std::set< unsigned int > > PixelNameTranslation::getFEDsAndChannels | ( | ) | const |
Definition at line 977 of file PixelNameTranslation.cc.
References channelTranslationTable_, and tmp.
Referenced by PixelNameTranslation().
const PixelHdwAddress * PixelNameTranslation::getHdwAddress | ( | const PixelROCName & | aROC | ) | const |
Definition at line 494 of file PixelNameTranslation.cc.
References assert(), gather_cfg::cout, AlCaHLTBitMon_QueryRunRegistry::string, and translationtable_.
Referenced by pos::PixelConfigurationVerifier::checkChannelEnable(), pos::PixelCalibConfiguration::fedCardsAndChannels(), firstHdwAddress(), pos::PixelTrimCommon::generateConfiguration(), pos::PixelTBMSettings::generateConfiguration(), pos::PixelTrimAllPixels::generateConfiguration(), pos::PixelDACSettings::generateConfiguration(), pos::PixelCalibConfiguration::getFECCrates(), pos::PixelCalibConfiguration::getFEDCrates(), pos::PixelDetectorConfig::getFEDs(), pos::PixelDetectorConfig::getFEDsAndChannels(), pos::PixelCalibConfiguration::getFEDsAndChannels(), getROCsFromChannel(), pos::PixelCalibConfiguration::nextFECState(), pos::PixelDACSettings::setVcthrDisable(), and pos::PixelDACSettings::setVcthrEnable().
const PixelHdwAddress & PixelNameTranslation::getHdwAddress | ( | const PixelChannel & | aChannel | ) | const |
Definition at line 528 of file PixelNameTranslation.cc.
References assert(), and channelTranslationTable_.
std::list< const PixelModuleName * > PixelNameTranslation::getModules | ( | ) | const |
Definition at line 454 of file PixelNameTranslation.cc.
References channelTranslationTable_.
std::list< const PixelROCName * > PixelNameTranslation::getROCs | ( | ) | const |
Definition at line 443 of file PixelNameTranslation.cc.
References translationtable_.
Referenced by pos::PixelCalibConfiguration::buildROCAndModuleLists().
const std::vector< PixelROCName > & PixelNameTranslation::getROCsFromChannel | ( | const PixelChannel & | aChannel | ) | const |
Definition at line 943 of file PixelNameTranslation.cc.
References pos::PixelHdwAddress::fedchannel(), pos::PixelHdwAddress::fednumber(), getHdwAddress(), and getROCsFromFEDChannel().
Referenced by pos::PixelCalibConfiguration::buildObjectsDependingOnTheNameTranslation(), pos::PixelConfigurationVerifier::checkChannelEnable(), and getROCsFromModule().
const std::vector< PixelROCName > & PixelNameTranslation::getROCsFromFEDChannel | ( | unsigned int | fednumber, |
unsigned int | fedchannel | ||
) | const |
Definition at line 568 of file PixelNameTranslation.cc.
References assert(), and rocsFromFEDidAndChannel_.
Referenced by pos::PixelConfigurationVerifier::checkChannelEnable(), and getROCsFromChannel().
std::vector< PixelROCName > PixelNameTranslation::getROCsFromModule | ( | const PixelModuleName & | aModule | ) | const |
Definition at line 951 of file PixelNameTranslation.cc.
References getChannelsOnModule(), and getROCsFromChannel().
Referenced by pos::PixelCalibConfiguration::buildROCAndModuleLists().
bool PixelNameTranslation::ROCexists | ( | PixelROCName | theROC | ) |
Definition at line 970 of file PixelNameTranslation.cc.
References edm::false, translationtable_, and funct::true.
PixelROCName PixelNameTranslation::ROCNameFromFEDChannelROC | ( | unsigned int | fednumber, |
unsigned int | channel, | ||
unsigned int | roc | ||
) | const |
Definition at line 633 of file PixelNameTranslation.cc.
References assert(), gather_cfg::cout, fedlookup_, AlCaHLTBitMon_QueryRunRegistry::string, and tmp.
bool PixelNameTranslation::ROCNameFromFEDChannelROCExists | ( | unsigned int | fednumber, |
unsigned int | channel, | ||
unsigned int | roc | ||
) | const |
Definition at line 621 of file PixelNameTranslation.cc.
References fedlookup_, and tmp.
Referenced by PixelNameTranslation().
|
virtual |
Implements pos::PixelConfigBase.
Definition at line 749 of file PixelNameTranslation.cc.
References lut2db_cfg::filename, getChannelFromHdwAddress(), dbtoconf::out, AlCaHLTBitMon_QueryRunRegistry::string, pos::PixelChannel::TBMChannelString(), and translationtable_.
|
virtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 880 of file PixelNameTranslation.cc.
References assert(), gather_cfg::cout, contentValuesFiles::fullPath, getChannelFromHdwAddress(), pos::PixelTimeFormatter::getTime(), dbtoconf::out, AlCaHLTBitMon_QueryRunRegistry::string, pos::PixelChannel::TBMChannelString(), and translationtable_.
|
virtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 836 of file PixelNameTranslation.cc.
References getChannelFromHdwAddress(), AlCaHLTBitMon_QueryRunRegistry::string, pos::PixelChannel::TBMChannelString(), and translationtable_.
|
virtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 795 of file PixelNameTranslation.cc.
References gather_cfg::cout, contentValuesFiles::fullPath, pos::PixelConfigBase::getAuthor(), pos::PixelConfigBase::getComment(), pos::PixelTimeFormatter::getmSecTime(), pos::PixelTimeFormatter::getTime(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 867 of file PixelNameTranslation.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
|
friend |
Definition at line 434 of file PixelNameTranslation.cc.
|
private |
Definition at line 121 of file PixelNameTranslation.h.
Referenced by ChannelFromFEDChannel(), FEDChannelExist(), getChannels(), getChannelsOnModule(), getFEDsAndChannels(), getHdwAddress(), getModules(), and PixelNameTranslation().
|
private |
Definition at line 118 of file PixelNameTranslation.h.
Referenced by PixelNameTranslation(), ROCNameFromFEDChannelROC(), and ROCNameFromFEDChannelROCExists().
|
private |
Definition at line 122 of file PixelNameTranslation.h.
Referenced by getChannelFromHdwAddress(), and PixelNameTranslation().
|
private |
Definition at line 124 of file PixelNameTranslation.h.
Referenced by getROCsFromFEDChannel(), and PixelNameTranslation().
|
private |
Definition at line 116 of file PixelNameTranslation.h.
Referenced by buildROCsFromFEDChannel(), checkFor(), checkROCExistence(), getChannelForROC(), getHdwAddress(), getROCs(), PixelNameTranslation(), ROCexists(), writeASCII(), and writeXML().