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();
38 return a.getCoolingLoop() <
b.getCoolingLoop();
42 return (
a.getCoolingLoop() ==
b.getCoolingLoop());
47 return a.getPowerGroup() <
b.getPowerGroup();
51 return (
a.getPowerGroup() ==
b.getPowerGroup());
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(),
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;
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
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)
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)
static bool poweq(const Phase2TrackerModule &a, const Phase2TrackerModule &b)
Phase2TrackerCabling filterByPowerGroup(uint32_t powerGroup) const
const Phase2TrackerModule & findGbtid(uint32_t gbtid) const
std::vector< Phase2TrackerModule >::const_iterator key
static bool detidOrdering(key a, key b)
def unique(seq, keepstr=True)
const Phase2TrackerModule & findFedCh(std::pair< unsigned int, unsigned int > fedch) const
static bool detidComp(key a, uint32_t b)
const Phase2TrackerModule & findDetid(uint32_t detid) const
std::string summaryDescription() const
static bool chComp(key a, std::pair< unsigned int, unsigned int > b)
static bool fedeq(key a, key b)
static bool gbtidComp(key a, uint32_t b)
std::string description(bool compact=false) const
std::vector< Phase2TrackerModule > store
std::vector< key > cabling