24 std::vector<DetId>::iterator cell;
25 bool failflag =
false;
26 for (std::vector<DetId>::iterator it = listRefChan.begin(); it != listRefChan.end(); it++) {
28 cell =
std::find(listNewChan.begin(), listNewChan.end(), mydetid);
29 if (cell == listNewChan.end()) {
33 const float* oldvalue = (myRefPeds->
getValues(mydetid))->getValues();
36 if ((*oldvalue - *
values) + (*(oldvalue + 1) - *(
values + 1)) + (*(oldvalue + 2) - *(
values + 2)) +
37 (*(oldvalue + 3) - *(
values + 3)) / 4 >
40 << (*oldvalue - *
values) <<
" " << (*(oldvalue + 1) - *(
values + 1)) <<
" "
41 << (*(oldvalue + 2) - *(
values + 2)) <<
" " << (*(oldvalue + 3) - *(
values + 3)) << std::endl;
44 listNewChan.erase(cell);
49 std::cout <<
"These are identical to within deltaP" << std::endl;
52 std::ofstream outStream3(
outfile.c_str());
53 std::cout <<
"--- Pedestals changed! ---" << std::endl;