31 std::cout <<
"--- Dumping QIEs - update ---" << std::endl;
35 std::ofstream outStream2(
dumprefs.c_str());
36 std::cout <<
"--- Dumping QIEs - reference ---" << std::endl;
45 std::vector<DetId>::iterator cell;
48 for (std::vector<DetId>::iterator it = listRefChan.begin(); it != listRefChan.end(); it++) {
50 cell =
std::find(listNewChan.begin(), listNewChan.end(), mydetid);
51 if (cell == listNewChan.end())
53 throw cms::Exception(
"DataDoesNotMatch") <<
"Value not found in reference" << std::endl;
59 bool failflag =
false;
125 throw cms::Exception(
"DataDoesNotMatch") <<
"Values are do not match";
127 listNewChan.erase(cell);
130 std::cout <<
"These are identical" << std::endl;
138 for (std::vector<DetId>::iterator it = listRefChan.begin(); it != listRefChan.end(); it++) {
140 cell =
std::find(listNewChan.begin(), listNewChan.end(), mydetid);
141 if (cell == listNewChan.end())
151 listNewChan.erase(cell);
154 for (std::vector<DetId>::iterator it = listNewChan.begin(); it != listNewChan.end(); it++)
162 std::ofstream outStream3(
outfile.c_str());
163 std::cout <<
"--- Dumping QIEs - the combined ones ---" << std::endl;
172 std::vector<HcalGenericDetId> listEMap = myRefEMap->
allPrecisionId();
173 for (std::vector<HcalGenericDetId>::const_iterator it = listEMap.begin(); it != listEMap.end(); it++) {
175 if (
std::find(listResult.begin(), listResult.end(), mydetid) == listResult.end()) {