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::vector< PixelROCName > getROCsFromModule(const PixelModuleName &aModule) const
const PixelHdwAddress * getHdwAddress(const PixelROCName &aROC) const
std::list< const PixelModuleName * > getModules() const
This file contains the base class for "pixel configuration data" management.
PixelChannel ChannelFromFEDChannel(unsigned int fednumber, unsigned int fedchannel) const
PixelNameTranslation(std::vector< std::vector< std::string > > &tableMat)
const PixelChannel & getChannelFromHdwAddress(const PixelHdwAddress &aHdwAddress) 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
std::set< PixelChannel > getChannels() const
This class provides a translation from the naming documents standard to specify the ROC to the corres...
std::map< PixelHdwAddress, PixelChannel > hdwTranslationTable_
This file contains the base class for "pixel configuration data" management.
bool FEDChannelExist(unsigned int fednumber, unsigned int fedchannel) const
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 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)
tuple key
prepare the HTCondor submission files and eventually submit them
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
const PixelHdwAddress & firstHdwAddress(const PixelModuleName &aModule) const
This is the documentation about PixelDetectorConfig...
Store mfec, mfecchannel etc.
const bool checkFor(const PixelROCName &aROC) const
~PixelNameTranslation() override
std::map< unsigned int, std::set< unsigned int > > getFEDsAndChannels() const
void writeASCII(std::string dir="") const override
std::vector< PixelROCName > buildROCsFromFEDChannel(unsigned int fednumber, unsigned int fedchannel) const
std::list< const PixelROCName * > getROCs() const
std::set< PixelChannel > getChannelsOnModule(const PixelModuleName &aModule) const
This is the documentation about PixelNameTranslation...
std::map< PixelHdwAddress, PixelROCName, PixelHdwAddress > fedlookup_
const std::vector< PixelROCName > & getROCsFromFEDChannel(unsigned int fednumber, unsigned int fedchannel) const
const std::vector< PixelROCName > & getROCsFromChannel(const PixelChannel &aChannel) const
std::map< unsigned int, std::map< unsigned int, std::vector< PixelROCName > > > rocsFromFEDidAndChannel_
const PixelChannel & getChannelForROC(const PixelROCName &aROC) const
std::map< PixelChannel, PixelHdwAddress > channelTranslationTable_
This class stores the name and related hardware mappings for a ROC.