28 for (
auto ifed = cabling.
fedIds().begin() ; ifed != cabling.
fedIds().end(); ++ifed ) {
31 for(
auto ichan = conns.begin(); ichan != conns.end(); ichan++ ) {
32 if( ichan->fedId() ) {
43 ichan->lldChannel() ).
key();
46 ichan->apvPairNumber() );
49 det_to_fec[det] = fec;
50 fed_to_fec[fed] = fec;
57 <<
"[ViewTranslator::" << __func__ <<
"]" 58 <<
" Size of FedToFec std::map: " << fed_to_fec.size()
59 <<
", size of DetToFec std::map: " << det_to_fec.size();
72 <<
"[ViewTranslator::" << __func__ <<
"]" 73 <<
" Input std::map is empty!";
A container class for generic run and event-related info, information required by the commissioning a...
std::map< uint32_t, uint32_t > Mapping
uint32_t fedToFec(const uint32_t &fed_key_mask, const Mapping &input, Mapping &output)
uint32_t detToFec(const uint32_t &det_key_mask, const Mapping &input, Mapping &output)
static std::string const input
const uint32_t & key() const
Utility class that identifies a position within the strip tracker control structure, down to the level of an APV25.
static const char mlCabling_[]
static void buildMaps(const SiStripFedCabling &, Mapping &det_to_fec, Mapping &fed_to_fec)
FedsConstIterRange fedIds() const
Utility class that identifies a position within the strip tracker geometrical structure, down to the level of an APV25 chip.
Detector identifier class for the strip tracker.
const uint16_t & feUnit() const
void writeMapsToFile(std::string root_filename, Mapping &det_to_fec, Mapping &fed_to_fec)
ConnsConstIterRange fedConnections(uint16_t fed_id) const
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
const uint16_t & feChan() const