Reimplemented from EcalLaserCondTools::CorrReader.
Definition at line 520 of file EcalLaserCondTools.cc.
References gather_cfg::cout, DetId::det(), EcalBarrel, EcalEndcap, Exception, EcalLaserCondTools::fnames_, mps_fire::i, EBDetId::ietaAbs(), EBDetId::iphi(), EEDetId::ix(), EEDetId::iy(), dqmiodumpmetadata::n, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p1, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p2, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p3, DetId::subdetId(), trim(), EBDetId::validDetId(), EEDetId::validDetId(), EcalLaserCondTools::verb_, and EEDetId::zside().
523 std::cout <<
"Requested to read p1..p3 parameter line while no file is closed.\n";
534 <<
"' while expecting 'P'\n";
537 std::cout <<
"Failed to read p1..p3 parameter line\n";
543 int n = fscanf(
f_,
"%d %f %f %f\n", &rawdetid, &corr.
p1, &corr.
p2, &corr.
p3);
551 <<
" raw id" << rawdetid <<
": " << corr.
p1 <<
", " << corr.
p2;
554 constexpr
int ECALID = 3;
555 if (detid.det() != ECALID)
557 <<
" contains an invalid det ID (detector code is not ECAL!)\n";
562 <<
" contains an invalid det ID (detector code is not ECAL!)\n";
568 <<
" contains an invalid det ID (detector code is not ECAL!)\n";
static bool validDetId(int i, int j)
check if a valid index combination
static bool validDetId(int crystal_ix, int crystal_iy, int iz)