22 std::vector<DetId>::iterator cell;
23 bool failflag =
false;
24 for (std::vector<DetId>::iterator it = listRefChan.begin(); it != listRefChan.end(); it++) {
26 cell =
std::find(listNewChan.begin(), listNewChan.end(), mydetid);
27 if (cell == listNewChan.end()) {
31 const float* oldvalue = (myRefPeds->
getValues(mydetid))->getValues();
34 if ((*oldvalue - *
values) + (*(oldvalue + 1) - *(
values + 1)) + (*(oldvalue + 2) - *(
values + 2)) +
35 (*(oldvalue + 3) - *(
values + 3)) / 4 >
38 << (*oldvalue - *
values) <<
" " << (*(oldvalue + 1) - *(
values + 1)) <<
" "
39 << (*(oldvalue + 2) - *(
values + 2)) <<
" " << (*(oldvalue + 3) - *(
values + 3)) << std::endl;
42 listNewChan.erase(cell);
47 std::cout <<
"These are identical to within deltaP" << std::endl;
50 std::ofstream outStream3(
outfile.c_str());
51 std::cout <<
"--- Pedestals changed! ---" << std::endl;