12 <<
"Scenario: " << theScenarioId <<
" is already in the map!" << std::endl;
22 SiPixelBadFEDChannelsScenarioMap::const_iterator it =
m_scenarioMap.find(theScenarioId);
28 <<
"No Bad Pixel FEDChannels defined for Scenario id: " << theScenarioId <<
"\n";
35 SiPixelBadFEDChannelsScenarioMap::const_iterator it =
m_scenarioMap.find(theScenarioId);
41 <<
"No Bad Pixel FEDChannels defined for Scenario id: " << theScenarioId <<
"\n";
48 SiPixelBadFEDChannelsScenarioMap::const_iterator it =
m_scenarioMap.find(theScenarioId);
52 <<
"No Bad Pixel FEDChannels defined for Scenario id: " << theScenarioId <<
"\n";
54 SiPixelFEDChannelCollection::const_iterator it2 = (it->second).
find(theDetId);
56 if (it2 == (it->second).end()) {
58 <<
"No Bad Pixel FEDChannels defined for DetId:" << theDetId <<
" in Scenario id: " << theScenarioId <<
"\n";
67 SiPixelBadFEDChannelsScenarioMap::const_iterator it =
m_scenarioMap.find(theScenarioId);
71 <<
"No Bad Pixel FEDChannels defined for Scenario id: " << theScenarioId <<
"\n";
74 std::unique_ptr<PixelFEDChannelCollection> disabled_channelcollection =
75 std::make_unique<edmNew::DetSetVector<PixelFEDChannel> >();
76 auto SiPixelBadFedChannels = it->second;
77 for (
const auto &
entry : SiPixelBadFedChannels) {
78 disabled_channelcollection->insert(
entry.first,
entry.second.data(),
entry.second.size());
80 return disabled_channelcollection;
85 edm::LogVerbatim(
"SiPixelFEDChannelContainer") <<
"SiPixelFEDChannelContainer::printAll()";
86 edm::LogVerbatim(
"SiPixelFEDChannelContainer") <<
" ================================================================="
87 "==================================================";
89 edm::LogVerbatim(
"SiPixelFEDChannelContainer") <<
"run :" << it->first <<
" \n ";
90 for (
const auto &thePixelFEDChannel : it->second) {
91 DetId detId = thePixelFEDChannel.first;
93 edm::LogVerbatim(
"SiPixelFEDChannelContainer") <<
"DetId :" << detId <<
" \n ";
95 for (
const auto &
entry : thePixelFEDChannel.second) {
98 <<
" fed : " <<
entry.fed <<
" link : " <<
entry.link <<
" roc_first : " <<
entry.roc_first
99 <<
" roc_last: : " <<
entry.roc_last;
108 os <<
"run :" << it->first <<
" \n ";
109 for (
const auto &thePixelFEDChannel : it->second) {
110 DetId detId = thePixelFEDChannel.first;
111 os <<
"DetId :" << detId <<
" \n ";
112 for (
const auto &
entry : thePixelFEDChannel.second) {
113 os <<
" fed : " <<
entry.fed <<
" link : " <<
entry.link <<
" roc_first : " <<
entry.roc_first
114 <<
" roc_last: : " <<
entry.roc_last;
133 std::stringstream
ss;