1 #ifndef PixelNameTranslation_h 2 #define PixelNameTranslation_h 28 class PixelDetectorConfig;
49 std::list<const PixelROCName*>
getROCs()
const;
50 std::list<const PixelModuleName*>
getModules()
const;
71 const std::vector<PixelROCName>&
getROCsFromFEDChannel(
unsigned int fednumber,
unsigned int fedchannel)
const;
79 bool FEDChannelExist(
unsigned int fednumber,
unsigned int fedchannel)
const;
90 std::ofstream*
out1 =
nullptr,
91 std::ofstream*
out2 =
nullptr)
const override;
92 void writeXML(std::ofstream*
out, std::ofstream*
out1 =
nullptr, std::ofstream*
out2 =
nullptr)
const override;
94 std::ofstream*
out1 =
nullptr,
95 std::ofstream*
out2 =
nullptr)
const override;
105 std::map<PixelHdwAddress, PixelROCName, PixelHdwAddress>
fedlookup_;
std::set< PixelChannel > getChannelsOnModule(const PixelModuleName &aModule) const
This file contains the base class for "pixel configuration data" management.
std::vector< PixelROCName > getROCsFromModule(const PixelModuleName &aModule) const
std::vector< PixelROCName > buildROCsFromFEDChannel(unsigned int fednumber, unsigned int fedchannel) const
bool FEDChannelExist(unsigned int fednumber, unsigned int fedchannel) const
const PixelChannel & getChannelForROC(const PixelROCName &aROC) const
PixelNameTranslation(std::vector< std::vector< std::string > > &tableMat)
const std::vector< PixelROCName > & getROCsFromChannel(const PixelChannel &aChannel) const
PixelChannel ChannelFromFEDChannel(unsigned int fednumber, unsigned int fedchannel) const
const bool checkFor(const PixelROCName &aROC) const
std::map< PixelROCName, PixelHdwAddress > translationtable_
Store mfec, mfecchannel etc.
bool checkROCExistence(const PixelROCName &aROC) const
void writeXML(pos::PixelConfigKey key, int version, std::string path) const override
This class provides a translation from the naming documents standard to specify the ROC to the corres...
const std::vector< PixelROCName > & getROCsFromFEDChannel(unsigned int fednumber, unsigned int fedchannel) const
std::map< PixelHdwAddress, PixelChannel > hdwTranslationTable_
bool ROCNameFromFEDChannelROCExists(unsigned int fednumber, unsigned int channel, unsigned int roc) const
This file contains the base class for "pixel configuration data" management.
PixelROCName ROCNameFromFEDChannelROC(unsigned int fednumber, unsigned int channel, unsigned int roc) const
void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
friend std::ostream & operator<<(std::ostream &s, const PixelNameTranslation &table)
bool ROCexists(PixelROCName theROC)
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
std::set< PixelChannel > getChannels() const
This is the documentation about PixelDetectorConfig...
Store mfec, mfecchannel etc.
const PixelHdwAddress * getHdwAddress(const PixelROCName &aROC) const
std::map< unsigned int, std::set< unsigned int > > getFEDsAndChannels() const
~PixelNameTranslation() override
void writeASCII(std::string dir="") const override
This is the documentation about PixelNameTranslation...
std::map< PixelHdwAddress, PixelROCName, PixelHdwAddress > fedlookup_
std::list< const PixelROCName * > getROCs() const
std::list< const PixelModuleName * > getModules() const
const PixelHdwAddress & firstHdwAddress(const PixelModuleName &aModule) const
const PixelChannel & getChannelFromHdwAddress(const PixelHdwAddress &aHdwAddress) const
std::map< unsigned int, std::map< unsigned int, std::vector< PixelROCName > > > rocsFromFEDidAndChannel_
std::map< PixelChannel, PixelHdwAddress > channelTranslationTable_
This class stores the name and related hardware mappings for a ROC.