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