11 if (a->getCh().first == b->getCh().first)
12 return a->getCh().second < b->getCh().second;
14 return a->getCh().first < b->getCh().first;
17 if (a->getCh().first == b.first)
18 return a->getCh().second < b.second;
20 return a->getCh().first < b.first;
26 return a->getDetid() < b->getDetid();
32 return a->getGbtid() < b->getGbtid();
87 if (itid !=
fedCabling_.end() && (*itid)->getCh() == fedch)
91 <<
"No connection corresponding to FED id/ch = " << fedch.first <<
"/" << fedch.second;
97 if (itch !=
detCabling_.end() && (*itch)->getDetid() == detid)
101 <<
"No connection corresponding to detid = 0x" << std::hex << detid <<
std::dec;
107 if (itch !=
gbtCabling_.end() && (*itch)->getGbtid() == gbtid)
111 <<
"No connection corresponding to gbtid = 0x" << std::hex << gbtid <<
std::dec;
123 std::pair<key, key>
range = std::equal_range(resultStore.begin(),
140 std::sort(resultStore.begin(), resultStore.end(),
powerOrdering);
142 std::pair<key, key>
range = std::equal_range(resultStore.begin(),
153 std::string mystring(
"Summary of the cabling\n======================\n");
154 std::stringstream
ss;
156 ss <<
"Number of modules: " <<
connections_.size() << std::endl;
158 ss <<
"Number of FEDs: ";
161 ss <<
"Number of cooling loops: ";
165 ss <<
"Number of power groups: ";
169 mystring += ss.str();
176 mystring += it->description(compact);
static bool powerOrdering(const Phase2TrackerModule &a, const Phase2TrackerModule &b)
Phase2TrackerCabling filterByCoolingLine(uint32_t coolingLine) const
Phase2TrackerCabling filterByPowerGroup(uint32_t powerGroup) const
const Phase2TrackerModule & findFedCh(std::pair< unsigned int, unsigned int > fedch) const
static bool gbtidOrdering(key a, key b)
static bool coolingOrdering(const Phase2TrackerModule &a, const Phase2TrackerModule &b)
static bool powerComp(const Phase2TrackerModule &a, uint32_t b)
uint32_t getPowerGroup() const
uint32_t getCoolingLoop() const
static bool chOrdering(key a, key b)
static bool cooleq(const Phase2TrackerModule &a, const Phase2TrackerModule &b)
static bool coolingComp(const Phase2TrackerModule &a, uint32_t b)
const uint16_t range(const Frame &aFrame)
static bool poweq(const Phase2TrackerModule &a, const Phase2TrackerModule &b)
std::vector< Phase2TrackerModule >::const_iterator key
static bool detidOrdering(key a, key b)
std::string summaryDescription() const
std::string description(bool compact=false) const
static bool detidComp(key a, uint32_t b)
static bool chComp(key a, std::pair< unsigned int, unsigned int > b)
static bool fedeq(key a, key b)
__host__ __device__ constexpr RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
static bool gbtidComp(key a, uint32_t b)
const Phase2TrackerModule & findDetid(uint32_t detid) const
std::vector< Phase2TrackerModule > store
const Phase2TrackerModule & findGbtid(uint32_t gbtid) const
std::vector< key > cabling