12 using namespace sistrip;
28 std::vector<uint16_t>::const_iterator ifed = cabling.
feds().begin();
29 for ( ; ifed != cabling.
feds().end(); ifed++ ) {
31 const std::vector<FedChannelConnection>& conns = cabling.
connections( *ifed );
32 std::vector<FedChannelConnection>::const_iterator ichan;
33 for( ichan = conns.begin(); ichan != conns.end(); ichan++ ) {
34 if( ichan->fedId() ) {
45 ichan->lldChannel() ).
key();
48 ichan->apvPairNumber() );
51 det_to_fec[det] = fec;
52 fed_to_fec[fed] = fec;
59 <<
"[ViewTranslator::" << __func__ <<
"]"
60 <<
" Size of FedToFec std::map: " << fed_to_fec.size()
61 <<
", size of DetToFec std::map: " << det_to_fec.size();
74 <<
"[ViewTranslator::" << __func__ <<
"]"
75 <<
" Input std::map is empty!";
const std::vector< uint16_t > & feds() const
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)
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)
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)
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
const uint16_t & feChan() const
const std::vector< FedChannelConnection > & connections(uint16_t fed_id) const