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 23 of file PixelNameTranslation.cc.
References EnergyCorrector::c, channelTranslationTable_, counter, gather_cfg::cout, pos::PixelHdwAddress::fecnumber(), pos::PixelHdwAddress::fedchannel(), fedlookup_, pos::PixelHdwAddress::fednumber(), getFEDsAndChannels(), hdwTranslationTable_, pos::PixelHdwAddress::hubaddress(), createfilelist::int, 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 channelTranslationTable_, counter, gather_cfg::cout, pos::PixelHdwAddress::fecnumber(), pos::PixelHdwAddress::fedchannel(), fedlookup_, pos::PixelHdwAddress::fednumber(), getFEDsAndChannels(), hdwTranslationTable_, pos::PixelHdwAddress::hubaddress(), recoMuon::in, pos::PixelHdwAddress::mfec(), pos::PixelHdwAddress::mfecchannel(), ROCNameFromFEDChannelROCExists(), rocsFromFEDidAndChannel_, AlCaHLTBitMon_QueryRunRegistry::string, tmp, and translationtable_.
|
inlineoverride |
Definition at line 48 of file PixelNameTranslation.h.
References ChannelFromFEDChannel(), checkFor(), checkROCExistence(), dir, FEDChannelExist(), firstHdwAddress(), getChannelForROC(), getChannelFromHdwAddress(), getChannels(), getChannelsOnModule(), getFEDsAndChannels(), getHdwAddress(), getModules(), getROCs(), getROCsFromChannel(), getROCsFromFEDChannel(), getROCsFromModule(), crabWrapper::key, operator<<, MillePedeFileConverter_cfg::out, callgraph::path, ROCexists(), ROCNameFromFEDChannelROC(), ROCNameFromFEDChannelROCExists(), alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, jets_cff::version, writeASCII(), writeXML(), writeXMLHeader(), and writeXMLTrailer().
|
private |
Definition at line 588 of file PixelNameTranslation.cc.
References tmp, and translationtable_.
PixelChannel PixelNameTranslation::ChannelFromFEDChannel | ( | unsigned int | fednumber, |
unsigned int | fedchannel | ||
) | const |
Definition at line 658 of file PixelNameTranslation.cc.
References channelTranslationTable_, gather_cfg::cout, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ~PixelNameTranslation().
const bool PixelNameTranslation::checkFor | ( | const PixelROCName & | aROC | ) | const |
Definition at line 517 of file PixelNameTranslation.cc.
References funct::false, translationtable_, and funct::true.
Referenced by ~PixelNameTranslation().
bool PixelNameTranslation::checkROCExistence | ( | const PixelROCName & | aROC | ) | const |
Definition at line 510 of file PixelNameTranslation.cc.
References AlCaHLTBitMon_QueryRunRegistry::string, translationtable_, and funct::true.
Referenced by ~PixelNameTranslation().
bool PixelNameTranslation::FEDChannelExist | ( | unsigned int | fednumber, |
unsigned int | fedchannel | ||
) | const |
Definition at line 691 of file PixelNameTranslation.cc.
References channelTranslationTable_, gather_cfg::cout, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by pos::PixelConfigurationVerifier::checkChannelEnable(), and ~PixelNameTranslation().
const PixelHdwAddress & PixelNameTranslation::firstHdwAddress | ( | const PixelModuleName & | aModule | ) | const |
Definition at line 535 of file PixelNameTranslation.cc.
References gather_cfg::cout, getChannelsOnModule(), getHdwAddress(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ~PixelNameTranslation().
const PixelChannel & PixelNameTranslation::getChannelForROC | ( | const PixelROCName & | aROC | ) | const |
Definition at line 549 of file PixelNameTranslation.cc.
References getChannelFromHdwAddress(), and translationtable_.
Referenced by pos::PixelCalibConfiguration::buildObjectsDependingOnTheNameTranslation(), pos::PixelCalibConfiguration::nextFECState(), and ~PixelNameTranslation().
const PixelChannel & PixelNameTranslation::getChannelFromHdwAddress | ( | const PixelHdwAddress & | aHdwAddress | ) | const |
Definition at line 716 of file PixelNameTranslation.cc.
References gather_cfg::cout, hdwTranslationTable_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getChannelForROC(), writeASCII(), writeXML(), and ~PixelNameTranslation().
std::set< PixelChannel > PixelNameTranslation::getChannels | ( | ) | const |
Definition at line 474 of file PixelNameTranslation.cc.
References channelTranslationTable_.
Referenced by pos::PixelConfigurationVerifier::checkChannelEnable(), and ~PixelNameTranslation().
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 channelTranslationTable_.
Referenced by firstHdwAddress(), pos::PixelCalibConfiguration::getFECCrates(), pos::PixelCalibConfiguration::getFEDCrates(), pos::PixelDetectorConfig::getFEDs(), pos::PixelDetectorConfig::getFEDsAndChannels(), getROCsFromModule(), and ~PixelNameTranslation().
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(), and ~PixelNameTranslation().
const PixelHdwAddress * PixelNameTranslation::getHdwAddress | ( | const PixelROCName & | aROC | ) | const |
Definition at line 494 of file PixelNameTranslation.cc.
References 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(), pos::PixelDACSettings::setVcthrEnable(), and ~PixelNameTranslation().
const PixelHdwAddress & PixelNameTranslation::getHdwAddress | ( | const PixelChannel & | aChannel | ) | const |
Definition at line 528 of file PixelNameTranslation.cc.
References channelTranslationTable_.
std::list< const PixelModuleName * > PixelNameTranslation::getModules | ( | ) | const |
Definition at line 454 of file PixelNameTranslation.cc.
References channelTranslationTable_.
Referenced by ~PixelNameTranslation().
std::list< const PixelROCName * > PixelNameTranslation::getROCs | ( | ) | const |
Definition at line 443 of file PixelNameTranslation.cc.
References translationtable_.
Referenced by pos::PixelCalibConfiguration::buildROCAndModuleLists(), and ~PixelNameTranslation().
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(), getROCsFromModule(), and ~PixelNameTranslation().
const std::vector< PixelROCName > & PixelNameTranslation::getROCsFromFEDChannel | ( | unsigned int | fednumber, |
unsigned int | fedchannel | ||
) | const |
Definition at line 568 of file PixelNameTranslation.cc.
References rocsFromFEDidAndChannel_.
Referenced by pos::PixelConfigurationVerifier::checkChannelEnable(), getROCsFromChannel(), and ~PixelNameTranslation().
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(), and ~PixelNameTranslation().
bool PixelNameTranslation::ROCexists | ( | PixelROCName | theROC | ) |
Definition at line 970 of file PixelNameTranslation.cc.
References funct::false, translationtable_, and funct::true.
Referenced by ~PixelNameTranslation().
PixelROCName PixelNameTranslation::ROCNameFromFEDChannelROC | ( | unsigned int | fednumber, |
unsigned int | channel, | ||
unsigned int | roc | ||
) | const |
Definition at line 633 of file PixelNameTranslation.cc.
References gather_cfg::cout, fedlookup_, AlCaHLTBitMon_QueryRunRegistry::string, and tmp.
Referenced by ~PixelNameTranslation().
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(), and ~PixelNameTranslation().
|
overridevirtual |
Implements pos::PixelConfigBase.
Definition at line 749 of file PixelNameTranslation.cc.
References corrVsCorr::filename, getChannelFromHdwAddress(), MillePedeFileConverter_cfg::out, AlCaHLTBitMon_QueryRunRegistry::string, pos::PixelChannel::TBMChannelString(), and translationtable_.
Referenced by ~PixelNameTranslation().
|
overridevirtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 880 of file PixelNameTranslation.cc.
References gather_cfg::cout, getChannelFromHdwAddress(), pos::PixelTimeFormatter::getTime(), MillePedeFileConverter_cfg::out, AlCaHLTBitMon_QueryRunRegistry::string, pos::PixelChannel::TBMChannelString(), and translationtable_.
Referenced by ~PixelNameTranslation().
|
overridevirtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 836 of file PixelNameTranslation.cc.
References getChannelFromHdwAddress(), AlCaHLTBitMon_QueryRunRegistry::string, pos::PixelChannel::TBMChannelString(), and translationtable_.
|
overridevirtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 795 of file PixelNameTranslation.cc.
References gather_cfg::cout, pos::PixelConfigBase::getAuthor(), pos::PixelConfigBase::getComment(), pos::PixelTimeFormatter::getmSecTime(), pos::PixelTimeFormatter::getTime(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ~PixelNameTranslation().
|
overridevirtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 867 of file PixelNameTranslation.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ~PixelNameTranslation().
|
friend |
|
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().