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.
PixelNameTranslation::PixelNameTranslation | ( | std::string | filename | ) |
Definition at line 230 of file PixelNameTranslation.cc.
|
inlinevirtual |
Definition at line 48 of file PixelNameTranslation.h.
|
private |
Definition at line 588 of file PixelNameTranslation.cc.
PixelChannel PixelNameTranslation::ChannelFromFEDChannel | ( | unsigned int | fednumber, |
unsigned int | fedchannel | ||
) | const |
Definition at line 658 of file PixelNameTranslation.cc.
const bool PixelNameTranslation::checkFor | ( | const PixelROCName & | aROC | ) | const |
Definition at line 517 of file PixelNameTranslation.cc.
bool PixelNameTranslation::checkROCExistence | ( | const PixelROCName & | aROC | ) | const |
Definition at line 510 of file PixelNameTranslation.cc.
bool PixelNameTranslation::FEDChannelExist | ( | unsigned int | fednumber, |
unsigned int | fedchannel | ||
) | const |
Definition at line 691 of file PixelNameTranslation.cc.
Referenced by pos::PixelConfigurationVerifier::checkChannelEnable().
const PixelHdwAddress & PixelNameTranslation::firstHdwAddress | ( | const PixelModuleName & | aModule | ) | const |
Definition at line 535 of file PixelNameTranslation.cc.
const PixelChannel & PixelNameTranslation::getChannelForROC | ( | const PixelROCName & | aROC | ) | const |
Definition at line 549 of file PixelNameTranslation.cc.
const PixelChannel & PixelNameTranslation::getChannelFromHdwAddress | ( | const PixelHdwAddress & | aHdwAddress | ) | const |
Definition at line 716 of file PixelNameTranslation.cc.
std::set< PixelChannel > PixelNameTranslation::getChannels | ( | ) | const |
Definition at line 474 of file PixelNameTranslation.cc.
Referenced by pos::PixelConfigurationVerifier::checkChannelEnable().
std::set< PixelChannel > PixelNameTranslation::getChannels | ( | const PixelDetectorConfig & | aDetectorConfig | ) | const |
Definition at line 484 of file PixelNameTranslation.cc.
std::set< PixelChannel > PixelNameTranslation::getChannelsOnModule | ( | const PixelModuleName & | aModule | ) | const |
Definition at line 556 of file PixelNameTranslation.cc.
std::map< unsigned int, std::set< unsigned int > > PixelNameTranslation::getFEDsAndChannels | ( | ) | const |
Definition at line 977 of file PixelNameTranslation.cc.
const PixelHdwAddress * PixelNameTranslation::getHdwAddress | ( | const PixelROCName & | aROC | ) | const |
Definition at line 494 of file PixelNameTranslation.cc.
Referenced by pos::PixelConfigurationVerifier::checkChannelEnable(), and pos::PixelTrimCommon::generateConfiguration().
const PixelHdwAddress & PixelNameTranslation::getHdwAddress | ( | const PixelChannel & | aChannel | ) | const |
Definition at line 528 of file PixelNameTranslation.cc.
std::list< const PixelModuleName * > PixelNameTranslation::getModules | ( | ) | const |
Definition at line 454 of file PixelNameTranslation.cc.
std::list< const PixelROCName * > PixelNameTranslation::getROCs | ( | ) | const |
Definition at line 443 of file PixelNameTranslation.cc.
const std::vector< PixelROCName > & PixelNameTranslation::getROCsFromChannel | ( | const PixelChannel & | aChannel | ) | const |
Definition at line 943 of file PixelNameTranslation.cc.
Referenced by pos::PixelConfigurationVerifier::checkChannelEnable().
const std::vector< PixelROCName > & PixelNameTranslation::getROCsFromFEDChannel | ( | unsigned int | fednumber, |
unsigned int | fedchannel | ||
) | const |
Definition at line 568 of file PixelNameTranslation.cc.
Referenced by pos::PixelConfigurationVerifier::checkChannelEnable().
std::vector< PixelROCName > PixelNameTranslation::getROCsFromModule | ( | const PixelModuleName & | aModule | ) | const |
Definition at line 951 of file PixelNameTranslation.cc.
bool PixelNameTranslation::ROCexists | ( | PixelROCName | theROC | ) |
Definition at line 970 of file PixelNameTranslation.cc.
PixelROCName PixelNameTranslation::ROCNameFromFEDChannelROC | ( | unsigned int | fednumber, |
unsigned int | channel, | ||
unsigned int | roc | ||
) | const |
Definition at line 633 of file PixelNameTranslation.cc.
bool PixelNameTranslation::ROCNameFromFEDChannelROCExists | ( | unsigned int | fednumber, |
unsigned int | channel, | ||
unsigned int | roc | ||
) | const |
Definition at line 621 of file PixelNameTranslation.cc.
|
virtual |
Implements pos::PixelConfigBase.
Definition at line 749 of file PixelNameTranslation.cc.
|
virtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 880 of file PixelNameTranslation.cc.
|
virtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 836 of file PixelNameTranslation.cc.
|
virtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 795 of file PixelNameTranslation.cc.
|
virtual |
Reimplemented from pos::PixelConfigBase.
Definition at line 867 of file PixelNameTranslation.cc.
|
friend |
Definition at line 434 of file PixelNameTranslation.cc.
|
private |
Definition at line 121 of file PixelNameTranslation.h.
|
private |
Definition at line 118 of file PixelNameTranslation.h.
|
private |
Definition at line 122 of file PixelNameTranslation.h.
|
private |
Definition at line 124 of file PixelNameTranslation.h.
|
private |
Definition at line 116 of file PixelNameTranslation.h.