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 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 |
~PixelNameTranslation () override | |
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 22 of file PixelNameTranslation.cc.
References cms::cuda::assert(), DummyCfis::c, channelTranslationTable_, counter, gather_cfg::cout, pos::PixelHdwAddress::fecnumber(), pos::PixelHdwAddress::fedchannel(), fedlookup_, pos::PixelHdwAddress::fednumber(), getFEDsAndChannels(), hdwTranslationTable_, pos::PixelHdwAddress::hubaddress(), createfilelist::int, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, pos::PixelHdwAddress::mfec(), pos::PixelHdwAddress::mfecchannel(), create_idmaps::n, pos::PixelROCName::rocname(), ROCNameFromFEDChannelROCExists(), rocsFromFEDidAndChannel_, AlCaHLTBitMon_QueryRunRegistry::string, createJobs::tmp, and translationtable_.
PixelNameTranslation::PixelNameTranslation | ( | std::string | filename | ) |
Definition at line 213 of file PixelNameTranslation.cc.
References cms::cuda::assert(), channelTranslationTable_, counter, gather_cfg::cout, pos::PixelHdwAddress::fecnumber(), pos::PixelHdwAddress::fedchannel(), fedlookup_, pos::PixelHdwAddress::fednumber(), corrVsCorr::filename, getFEDsAndChannels(), hdwTranslationTable_, pos::PixelHdwAddress::hubaddress(), recoMuon::in, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, pos::PixelHdwAddress::mfec(), pos::PixelHdwAddress::mfecchannel(), ROCNameFromFEDChannelROCExists(), rocsFromFEDidAndChannel_, AlCaHLTBitMon_QueryRunRegistry::string, createJobs::tmp, and translationtable_.
|
inlineoverride |
Definition at line 46 of file PixelNameTranslation.h.
|
private |
Definition at line 534 of file PixelNameTranslation.cc.
References cms::cuda::assert(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, createJobs::tmp, and translationtable_.
PixelChannel PixelNameTranslation::ChannelFromFEDChannel | ( | unsigned int | fednumber, |
unsigned int | fedchannel | ||
) | const |
Definition at line 592 of file PixelNameTranslation.cc.
References cms::cuda::assert(), channelTranslationTable_, gather_cfg::cout, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and AlCaHLTBitMon_QueryRunRegistry::string.
const bool PixelNameTranslation::checkFor | ( | const PixelROCName & | aROC | ) | const |
Definition at line 469 of file PixelNameTranslation.cc.
References translationtable_.
bool PixelNameTranslation::checkROCExistence | ( | const PixelROCName & | aROC | ) | const |
Definition at line 462 of file PixelNameTranslation.cc.
References AlCaHLTBitMon_QueryRunRegistry::string, and translationtable_.
bool PixelNameTranslation::FEDChannelExist | ( | unsigned int | fednumber, |
unsigned int | fedchannel | ||
) | const |
Definition at line 620 of file PixelNameTranslation.cc.
References cms::cuda::assert(), channelTranslationTable_, gather_cfg::cout, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by pos::PixelConfigurationVerifier::checkChannelEnable().
const PixelHdwAddress & PixelNameTranslation::firstHdwAddress | ( | const PixelModuleName & | aModule | ) | const |
Definition at line 484 of file PixelNameTranslation.cc.
References cms::cuda::assert(), gather_cfg::cout, getChannelsOnModule(), getHdwAddress(), and AlCaHLTBitMon_QueryRunRegistry::string.
const PixelChannel & PixelNameTranslation::getChannelForROC | ( | const PixelROCName & | aROC | ) | const |
Definition at line 497 of file PixelNameTranslation.cc.
References cms::cuda::assert(), getChannelFromHdwAddress(), and translationtable_.
Referenced by pos::PixelCalibConfiguration::buildObjectsDependingOnTheNameTranslation(), and pos::PixelCalibConfiguration::nextFECState().
const PixelChannel & PixelNameTranslation::getChannelFromHdwAddress | ( | const PixelHdwAddress & | aHdwAddress | ) | const |
Definition at line 641 of file PixelNameTranslation.cc.
References cms::cuda::assert(), gather_cfg::cout, hdwTranslationTable_, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getChannelForROC(), writeASCII(), and writeXML().
std::set< PixelChannel > PixelNameTranslation::getChannels | ( | ) | const |
Definition at line 426 of file PixelNameTranslation.cc.
References channelTranslationTable_.
Referenced by pos::PixelConfigurationVerifier::checkChannelEnable().
std::set< PixelChannel > PixelNameTranslation::getChannels | ( | const PixelDetectorConfig & | aDetectorConfig | ) | const |
Definition at line 437 of file PixelNameTranslation.cc.
References channelTranslationTable_, and pos::PixelDetectorConfig::containsModule().
std::set< PixelChannel > PixelNameTranslation::getChannelsOnModule | ( | const PixelModuleName & | aModule | ) | const |
Definition at line 503 of file PixelNameTranslation.cc.
References cms::cuda::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 882 of file PixelNameTranslation.cc.
References channelTranslationTable_, and createJobs::tmp.
Referenced by PixelNameTranslation().
const PixelHdwAddress * PixelNameTranslation::getHdwAddress | ( | const PixelROCName & | aROC | ) | const |
Definition at line 449 of file PixelNameTranslation.cc.
References cms::cuda::assert(), gather_cfg::cout, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, 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 477 of file PixelNameTranslation.cc.
References cms::cuda::assert(), and channelTranslationTable_.
std::list< const PixelModuleName * > PixelNameTranslation::getModules | ( | ) | const |
Definition at line 404 of file PixelNameTranslation.cc.
References channelTranslationTable_.
std::list< const PixelROCName * > PixelNameTranslation::getROCs | ( | ) | const |
Definition at line 393 of file PixelNameTranslation.cc.
References translationtable_.
Referenced by pos::PixelCalibConfiguration::buildROCAndModuleLists().
const std::vector< PixelROCName > & PixelNameTranslation::getROCsFromChannel | ( | const PixelChannel & | aChannel | ) | const |
Definition at line 850 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 516 of file PixelNameTranslation.cc.
References cms::cuda::assert(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and rocsFromFEDidAndChannel_.
Referenced by pos::PixelConfigurationVerifier::checkChannelEnable(), and getROCsFromChannel().
std::vector< PixelROCName > PixelNameTranslation::getROCsFromModule | ( | const PixelModuleName & | aModule | ) | const |
Definition at line 855 of file PixelNameTranslation.cc.
References getChannelsOnModule(), and getROCsFromChannel().
Referenced by pos::PixelCalibConfiguration::buildROCAndModuleLists().
bool PixelNameTranslation::ROCexists | ( | PixelROCName | theROC | ) |
Definition at line 875 of file PixelNameTranslation.cc.
References translationtable_.
PixelROCName PixelNameTranslation::ROCNameFromFEDChannelROC | ( | unsigned int | fednumber, |
unsigned int | channel, | ||
unsigned int | roc | ||
) | const |
Definition at line 570 of file PixelNameTranslation.cc.
References cms::cuda::assert(), gather_cfg::cout, fedlookup_, PixelMapPlotter::roc, AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::tmp.
bool PixelNameTranslation::ROCNameFromFEDChannelROCExists | ( | unsigned int | fednumber, |
unsigned int | channel, | ||
unsigned int | roc | ||
) | const |
Definition at line 562 of file PixelNameTranslation.cc.
References fedlookup_, PixelMapPlotter::roc, and createJobs::tmp.
Referenced by PixelNameTranslation().
|
overridevirtual |
Implements pos::PixelConfigBase.
Definition at line 672 of file PixelNameTranslation.cc.
References DeadROC_duringRun::dir, corrVsCorr::filename, getChannelFromHdwAddress(), MillePedeFileConverter_cfg::out, AlCaHLTBitMon_QueryRunRegistry::string, pos::PixelChannel::TBMChannelString(), and translationtable_.
|
overridevirtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 789 of file PixelNameTranslation.cc.
References cms::cuda::assert(), gather_cfg::cout, contentValuesFiles::fullPath, getChannelFromHdwAddress(), pos::PixelTimeFormatter::getTime(), MillePedeFileConverter_cfg::out, EnsembleCalibrationLA_cfg::path, AlCaHLTBitMon_QueryRunRegistry::string, pos::PixelChannel::TBMChannelString(), translationtable_, and relval_steps::version.
|
overridevirtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 748 of file PixelNameTranslation.cc.
References getChannelFromHdwAddress(), AlCaHLTBitMon_QueryRunRegistry::string, pos::PixelChannel::TBMChannelString(), and translationtable_.
|
overridevirtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 709 of file PixelNameTranslation.cc.
References gather_cfg::cout, contentValuesFiles::fullPath, pos::PixelConfigBase::getAuthor(), pos::PixelConfigBase::getComment(), pos::PixelTimeFormatter::getmSecTime(), pos::PixelTimeFormatter::getTime(), EnsembleCalibrationLA_cfg::path, AlCaHLTBitMon_QueryRunRegistry::string, and relval_steps::version.
|
overridevirtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 777 of file PixelNameTranslation.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
|
friend |
Definition at line 386 of file PixelNameTranslation.cc.
|
private |
Definition at line 108 of file PixelNameTranslation.h.
Referenced by ChannelFromFEDChannel(), FEDChannelExist(), getChannels(), getChannelsOnModule(), getFEDsAndChannels(), getHdwAddress(), getModules(), and PixelNameTranslation().
|
private |
Definition at line 105 of file PixelNameTranslation.h.
Referenced by PixelNameTranslation(), ROCNameFromFEDChannelROC(), and ROCNameFromFEDChannelROCExists().
|
private |
Definition at line 109 of file PixelNameTranslation.h.
Referenced by getChannelFromHdwAddress(), and PixelNameTranslation().
|
private |
Definition at line 111 of file PixelNameTranslation.h.
Referenced by getROCsFromFEDChannel(), and PixelNameTranslation().
|
private |
Definition at line 103 of file PixelNameTranslation.h.
Referenced by buildROCsFromFEDChannel(), checkFor(), checkROCExistence(), getChannelForROC(), getHdwAddress(), getROCs(), PixelNameTranslation(), ROCexists(), writeASCII(), and writeXML().