Reimplemented from EcalLaserCondTools::CorrReader.
Definition at line 521 of file EcalLaserCondTools.cc.
References alignCSCRings::corr, DetId::det(), EcalBarrel, EcalEndcap, Exception, EcalLaserCondTools::fnames_, mps_fire::i, EBDetId::ietaAbs(), EBDetId::iphi(), EEDetId::ix(), EEDetId::iy(), dqmiodumpmetadata::n, DetId::subdetId(), trim(), EBDetId::validDetId(), EEDetId::validDetId(), EcalLaserCondTools::verb_, and EEDetId::zside().
524 edm::LogPrint(
"EcalLaserCondTools") <<
"Requested to read p1..p3 parameter line while no file is closed.\n";
535 <<
": unexpected line type, '" << (char)
i <<
"' while expecting 'P'\n";
538 edm::LogPrint(
"EcalLaserCondTools") <<
"Failed to read p1..p3 parameter line\n";
544 int n = fscanf(
f_,
"%d %f %f %f\n", &rawdetid, &
corr.p1, &
corr.p2, &
corr.p3);
552 <<
" raw id" << rawdetid <<
": " <<
corr.p1 <<
", " <<
corr.p2;
555 constexpr
int ECALID = 3;
556 if (detid.det() != ECALID)
558 <<
" contains an invalid det ID (detector code is not ECAL!)\n";
563 <<
" contains an invalid det ID (detector code is not ECAL!)\n";
569 <<
" contains an invalid det ID (detector code is not ECAL!)\n";
static bool validDetId(int i, int j)
check if a valid index combination
Log< level::Warning, true > LogPrint
static bool validDetId(int crystal_ix, int crystal_iy, int iz)