1 #ifndef PixelNameTranslation_h
2 #define PixelNameTranslation_h
28 class PixelDetectorConfig;
51 std::list<const PixelROCName*>
getROCs()
const;
52 std::list<const PixelModuleName*>
getModules()
const;
73 unsigned int fedchannel)
const;
77 unsigned int roc)
const;
81 unsigned int roc)
const;
85 bool FEDChannelExist(
unsigned int fednumber,
unsigned int fedchannel)
const;
96 std::ofstream *out1 =
NULL,
97 std::ofstream *out2 =
NULL
100 std::ofstream *out1 =
NULL ,
101 std::ofstream *out2 =
NULL )
const ;
103 std::ofstream *out1 =
NULL,
104 std::ofstream *out2 =
NULL
118 std::map<PixelHdwAddress, PixelROCName, PixelHdwAddress>
fedlookup_;
128 unsigned int fedchannel)
const;
std::vector< PixelROCName > getROCsFromModule(const PixelModuleName &aModule) const
const PixelHdwAddress * getHdwAddress(const PixelROCName &aROC) const
std::list< const PixelModuleName * > getModules() const
virtual void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) 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
Store mfec, mfecchannel etc.
bool checkROCExistence(const PixelROCName &aROC) const
std::map< PixelROCName, PixelHdwAddress > translationtable_
std::set< PixelChannel > getChannels() const
This class provides a translation from the naming documents standard to specify the ROC to the corres...
void writeXML(pos::PixelConfigKey key, int version, std::string path) const
This file contains the base class for "pixel configuration data" management.
virtual void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
bool FEDChannelExist(unsigned int fednumber, unsigned int fedchannel) const
tuple path
else: Piece not in the list, fine.
std::map< PixelHdwAddress, PixelChannel > hdwTranslationTable_
PixelROCName ROCNameFromFEDChannelROC(unsigned int fednumber, unsigned int channel, unsigned int roc) const
bool ROCNameFromFEDChannelROCExists(unsigned int fednumber, unsigned int channel, unsigned int roc) const
friend std::ostream & operator<<(std::ostream &s, const PixelNameTranslation &table)
bool ROCexists(PixelROCName theROC)
const PixelHdwAddress & firstHdwAddress(const PixelModuleName &aModule) const
This is the documentation about PixelDetectorConfig...
void writeASCII(std::string dir="") const
Store mfec, mfecchannel etc.
const bool checkFor(const PixelROCName &aROC) const
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
std::map< unsigned int, std::set< unsigned int > > getFEDsAndChannels() const
std::vector< PixelROCName > buildROCsFromFEDChannel(unsigned int fednumber, unsigned int fedchannel) const
virtual ~PixelNameTranslation()
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.