21 #ifdef WITH_ECAL_COND_DB
77 std::cout <<
" Laser wavelengths:" << std::endl;
259 sprintf(histo,
"EELT laser quality L1 %s",
Numbers::sEE(ism).c_str());
267 sprintf(histo,
"EELT laser quality L2 %s",
Numbers::sEE(ism).c_str());
275 sprintf(histo,
"EELT laser quality L3 %s",
Numbers::sEE(ism).c_str());
283 sprintf(histo,
"EELT laser quality L4 %s",
Numbers::sEE(ism).c_str());
291 sprintf(histo,
"EELT laser quality L1 PNs G01 %s",
Numbers::sEE(ism).c_str());
298 sprintf(histo,
"EELT laser quality L2 PNs G01 %s",
Numbers::sEE(ism).c_str());
305 sprintf(histo,
"EELT laser quality L3 PNs G01 %s",
Numbers::sEE(ism).c_str());
312 sprintf(histo,
"EELT laser quality L4 PNs G01 %s",
Numbers::sEE(ism).c_str());
319 sprintf(histo,
"EELT laser quality L1 PNs G16 %s",
Numbers::sEE(ism).c_str());
326 sprintf(histo,
"EELT laser quality L2 PNs G16 %s",
Numbers::sEE(ism).c_str());
333 sprintf(histo,
"EELT laser quality L3 PNs G16 %s",
Numbers::sEE(ism).c_str());
340 sprintf(histo,
"EELT laser quality L4 PNs G16 %s",
Numbers::sEE(ism).c_str());
348 sprintf(histo,
"EELT amplitude L1 %s",
Numbers::sEE(ism).c_str());
355 sprintf(histo,
"EELT amplitude L2 %s",
Numbers::sEE(ism).c_str());
362 sprintf(histo,
"EELT amplitude L3 %s",
Numbers::sEE(ism).c_str());
369 sprintf(histo,
"EELT amplitude L4 %s",
Numbers::sEE(ism).c_str());
377 sprintf(histo,
"EELT laser timing L1 %s",
Numbers::sEE(ism).c_str());
384 sprintf(histo,
"EELT laser timing L2 %s",
Numbers::sEE(ism).c_str());
391 sprintf(histo,
"EELT laser timing L3 %s",
Numbers::sEE(ism).c_str());
398 sprintf(histo,
"EELT laser timing L4 %s",
Numbers::sEE(ism).c_str());
406 sprintf(histo,
"EELT laser timing mean L1 %s",
Numbers::sEE(ism).c_str());
412 sprintf(histo,
"EELT laser timing mean L2 %s",
Numbers::sEE(ism).c_str());
418 sprintf(histo,
"EELT laser timing mean L3 %s",
Numbers::sEE(ism).c_str());
424 sprintf(histo,
"EELT laser timing mean L4 %s",
Numbers::sEE(ism).c_str());
431 sprintf(histo,
"EELT laser timing rms L1 %s",
Numbers::sEE(ism).c_str());
437 sprintf(histo,
"EELT laser timing rms L2 %s",
Numbers::sEE(ism).c_str());
443 sprintf(histo,
"EELT laser timing rms L3 %s",
Numbers::sEE(ism).c_str());
449 sprintf(histo,
"EELT laser timing rms L4 %s",
Numbers::sEE(ism).c_str());
456 sprintf(histo,
"EELT amplitude over PN L1 %s",
Numbers::sEE(ism).c_str());
463 sprintf(histo,
"EELT amplitude over PN L2 %s",
Numbers::sEE(ism).c_str());
470 sprintf(histo,
"EELT amplitude over PN L3 %s",
Numbers::sEE(ism).c_str());
477 sprintf(histo,
"EELT amplitude over PN L4 %s",
Numbers::sEE(ism).c_str());
485 sprintf(histo,
"EELT PNs pedestal rms %s G01 L1",
Numbers::sEE(ism).c_str());
491 sprintf(histo,
"EELT PNs pedestal rms %s G01 L2",
Numbers::sEE(ism).c_str());
497 sprintf(histo,
"EELT PNs pedestal rms %s G01 L3",
Numbers::sEE(ism).c_str());
503 sprintf(histo,
"EELT PNs pedestal rms %s G01 L4",
Numbers::sEE(ism).c_str());
509 sprintf(histo,
"EELT PNs pedestal rms %s G16 L1",
Numbers::sEE(ism).c_str());
515 sprintf(histo,
"EELT PNs pedestal rms %s G16 L2",
Numbers::sEE(ism).c_str());
521 sprintf(histo,
"EELT PNs pedestal rms %s G16 L3",
Numbers::sEE(ism).c_str());
527 sprintf(histo,
"EELT PNs pedestal rms %s G16 L4",
Numbers::sEE(ism).c_str());
534 sprintf(histo,
"EELT laser shape L1 %s",
Numbers::sEE(ism).c_str());
541 sprintf(histo,
"EELT laser shape L2 %s",
Numbers::sEE(ism).c_str());
548 sprintf(histo,
"EELT laser shape L3 %s",
Numbers::sEE(ism).c_str());
555 sprintf(histo,
"EELT laser shape L4 %s",
Numbers::sEE(ism).c_str());
581 for (
int ix = 1; ix <= 50; ix++ ) {
582 for (
int iy = 1; iy <= 50; iy++ ) {
592 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
604 for (
int i = 1;
i <= 10;
i++ ) {
616 if ( (ism >= 3 && ism <= 4) || (ism >= 7 && ism <= 9) )
continue;
617 if ( (ism >= 12 && ism <= 13) || (ism >= 16 && ism <= 18) )
continue;
682 if (
h01_[ism-1] )
delete h01_[ism-1];
683 if (
h02_[ism-1] )
delete h02_[ism-1];
684 if (
h03_[ism-1] )
delete h03_[ism-1];
685 if (
h04_[ism-1] )
delete h04_[ism-1];
686 if (
h05_[ism-1] )
delete h05_[ism-1];
687 if (
h06_[ism-1] )
delete h06_[ism-1];
688 if (
h07_[ism-1] )
delete h07_[ism-1];
689 if (
h08_[ism-1] )
delete h08_[ism-1];
691 if (
h09_[ism-1] )
delete h09_[ism-1];
692 if (
h10_[ism-1] )
delete h10_[ism-1];
693 if (
h11_[ism-1] )
delete h11_[ism-1];
694 if (
h12_[ism-1] )
delete h12_[ism-1];
701 if (
i01_[ism-1] )
delete i01_[ism-1];
702 if (
i02_[ism-1] )
delete i02_[ism-1];
703 if (
i03_[ism-1] )
delete i03_[ism-1];
704 if (
i04_[ism-1] )
delete i04_[ism-1];
705 if (
i05_[ism-1] )
delete i05_[ism-1];
706 if (
i06_[ism-1] )
delete i06_[ism-1];
707 if (
i07_[ism-1] )
delete i07_[ism-1];
708 if (
i08_[ism-1] )
delete i08_[ism-1];
710 if (
i09_[ism-1] )
delete i09_[ism-1];
711 if (
i10_[ism-1] )
delete i10_[ism-1];
712 if (
i11_[ism-1] )
delete i11_[ism-1];
713 if (
i12_[ism-1] )
delete i12_[ism-1];
714 if (
i13_[ism-1] )
delete i13_[ism-1];
715 if (
i14_[ism-1] )
delete i14_[ism-1];
716 if (
i15_[ism-1] )
delete i15_[ism-1];
717 if (
i16_[ism-1] )
delete i16_[ism-1];
866 #ifdef WITH_ECAL_COND_DB
874 std::map<EcalLogicID, MonLaserBlueDat> dataset1_bl;
876 std::map<EcalLogicID, MonLaserGreenDat> dataset1_gr;
878 std::map<EcalLogicID, MonLaserIRedDat> dataset1_ir;
880 std::map<EcalLogicID, MonLaserRedDat> dataset1_rd;
903 for (
int ix = 1; ix <= 50; ix++ ) {
904 for (
int iy = 1; iy <= 50; iy++ ) {
909 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
922 float num01, num02, num03, num04, num05, num06, num07, num08;
923 float mean01, mean02, mean03, mean04, mean05, mean06, mean07, mean08;
924 float rms01, rms02, rms03, rms04, rms05, rms06, rms07, rms08;
935 if ( update01 || update02 ) {
963 if ( ic == -1 )
continue;
967 dataset1_bl[ecid] = apd_bl;
972 if ( update03 || update04 ) {
1000 if ( ic == -1 )
continue;
1004 dataset1_ir[ecid] = apd_ir;
1009 if ( update05 || update06 ) {
1037 if ( ic == -1 )
continue;
1041 dataset1_gr[ecid] = apd_gr;
1046 if ( update07 || update08 ) {
1074 if ( ic == -1 )
continue;
1078 dataset1_rd[ecid] = apd_rd;
1096 }
catch (std::runtime_error &
e) {
1104 std::map<EcalLogicID, MonPNBlueDat> dataset2_bl;
1106 std::map<EcalLogicID, MonPNGreenDat> dataset2_gr;
1108 std::map<EcalLogicID, MonPNIRedDat> dataset2_ir;
1110 std::map<EcalLogicID, MonPNRedDat> dataset2_rd;
1153 for (
int i = 1;
i <= 10;
i++ ) {
1172 float num01, num02, num03, num04, num05, num06, num07, num08;
1173 float num09, num10, num11, num12, num13, num14, num15, num16;
1174 float mean01, mean02, mean03, mean04, mean05, mean06, mean07, mean08;
1175 float mean09, mean10, mean11, mean12, mean13, mean14, mean15, mean16;
1176 float rms01, rms02, rms03, rms04, rms05, rms06, rms07, rms08;
1177 float rms09, rms10, rms11, rms12, rms13, rms14, rms15, rms16;
1196 if ( update01 || update05 || update09 || update13 ) {
1202 std::cout <<
"PNs (" <<
i <<
") L1 G01 " << num01 <<
" " << mean01 <<
" " << rms01 << std::endl;
1203 std::cout <<
"PNs (" <<
i <<
") L1 G16 " << num09 <<
" " << mean09 <<
" " << rms09 << std::endl;
1233 dataset2_bl[ecid] = pn_bl;
1238 if ( update02 || update06 || update10 || update14 ) {
1244 std::cout <<
"PNs (" <<
i <<
") L2 G01 " << num02 <<
" " << mean02 <<
" " << rms02 << std::endl;
1245 std::cout <<
"PNs (" <<
i <<
") L2 G16 " << num10 <<
" " << mean10 <<
" " << rms10 << std::endl;
1275 dataset2_ir[ecid] = pn_ir;
1280 if ( update03 || update07 || update11 || update15 ) {
1286 std::cout <<
"PNs (" <<
i <<
") L3 G01 " << num03 <<
" " << mean03 <<
" " << rms03 << std::endl;
1287 std::cout <<
"PNs (" <<
i <<
") L3 G16 " << num11 <<
" " << mean11 <<
" " << rms11 << std::endl;
1317 dataset2_gr[ecid] = pn_gr;
1322 if ( update04 || update08 || update12 || update16 ) {
1328 std::cout <<
"PNs (" <<
i <<
") L4 G01 " << num04 <<
" " << mean04 <<
" " << rms04 << std::endl;
1329 std::cout <<
"PNs (" <<
i <<
") L4 G16 " << num12 <<
" " << mean12 <<
" " << rms12 << std::endl;
1359 dataset2_rd[ecid] = pn_rd;
1376 }
catch (std::runtime_error &e) {
1384 std::map<EcalLogicID, MonTimingLaserBlueCrystalDat> dataset3_bl;
1386 std::map<EcalLogicID, MonTimingLaserGreenCrystalDat> dataset3_gr;
1388 std::map<EcalLogicID, MonTimingLaserIRedCrystalDat> dataset3_ir;
1390 std::map<EcalLogicID, MonTimingLaserRedCrystalDat> dataset3_rd;
1401 for (
int ix = 1; ix <= 50; ix++ ) {
1402 for (
int iy = 1; iy <= 50; iy++ ) {
1407 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
1416 float num01, num02, num03, num04;
1417 float mean01, mean02, mean03, mean04;
1418 float rms01, rms02, rms03, rms04;
1450 if ( ic == -1 )
continue;
1454 dataset3_bl[ecid] = t_bl;
1484 if ( ic == -1 )
continue;
1488 dataset3_gr[ecid] = t_gr;
1518 if ( ic == -1 )
continue;
1522 dataset3_ir[ecid] = t_ir;
1552 if ( ic == -1 )
continue;
1556 dataset3_rd[ecid] = t_rd;
1568 if (
verbose_ )
std::cout <<
"Inserting MonTimingLaserCrystalDat ..." << std::endl;
1574 }
catch (std::runtime_error &e) {
1588 if (
ievt_ % 10 == 0 ) {
1592 uint32_t bits01 = 0;
1596 uint32_t bits02 = 0;
1600 uint32_t bits03 = 0;
1604 uint32_t bits04 = 0;
1618 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser1/EELT amplitude %s L1").c_str(),
Numbers::sEE(ism).c_str());
1620 h01_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
h01_[ism-1] );
1622 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser1/EELT amplitude over PN %s L1").c_str(),
Numbers::sEE(ism).c_str());
1624 h02_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
h02_[ism-1] );
1630 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser2/EELT amplitude %s L2").c_str(),
Numbers::sEE(ism).c_str());
1632 h03_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
h03_[ism-1] );
1634 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser2/EELT amplitude over PN %s L2").c_str(),
Numbers::sEE(ism).c_str());
1636 h04_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
h04_[ism-1] );
1642 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser3/EELT amplitude %s L3").c_str(),
Numbers::sEE(ism).c_str());
1644 h05_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
h05_[ism-1] );
1646 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser3/EELT amplitude over PN %s L3").c_str(),
Numbers::sEE(ism).c_str());
1648 h06_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
h06_[ism-1] );
1654 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser4/EELT amplitude %s L4").c_str(),
Numbers::sEE(ism).c_str());
1656 h07_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
h07_[ism-1] );
1658 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser4/EELT amplitude over PN %s L4").c_str(),
Numbers::sEE(ism).c_str());
1660 h08_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
h08_[ism-1] );
1666 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser1/EELT timing %s L1").c_str(),
Numbers::sEE(ism).c_str());
1668 h09_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
h09_[ism-1] );
1674 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser2/EELT timing %s L2").c_str(),
Numbers::sEE(ism).c_str());
1676 h10_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
h10_[ism-1] );
1682 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser3/EELT timing %s L3").c_str(),
Numbers::sEE(ism).c_str());
1684 h11_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
h11_[ism-1] );
1690 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser4/EELT timing %s L4").c_str(),
Numbers::sEE(ism).c_str());
1692 h12_[ism-1] = UtilsClient::getHisto<TProfile2D*>( me,
cloneME_,
h12_[ism-1] );
1698 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser1/EELT shape %s L1").c_str(),
Numbers::sEE(ism).c_str());
1706 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser2/EELT shape %s L2").c_str(),
Numbers::sEE(ism).c_str());
1714 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser3/EELT shape %s L3").c_str(),
Numbers::sEE(ism).c_str());
1722 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser4/EELT shape %s L4").c_str(),
Numbers::sEE(ism).c_str());
1730 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser1/PN/Gain01/EELT PNs amplitude %s G01 L1").c_str(),
Numbers::sEE(ism).c_str());
1732 i01_[ism-1] = UtilsClient::getHisto<TProfile*>( me,
cloneME_,
i01_[ism-1] );
1738 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser2/PN/Gain01/EELT PNs amplitude %s G01 L2").c_str(),
Numbers::sEE(ism).c_str());
1740 i02_[ism-1] = UtilsClient::getHisto<TProfile*>( me,
cloneME_,
i02_[ism-1] );
1746 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser3/PN/Gain01/EELT PNs amplitude %s G01 L3").c_str(),
Numbers::sEE(ism).c_str());
1748 i03_[ism-1] = UtilsClient::getHisto<TProfile*>( me,
cloneME_,
i03_[ism-1] );
1754 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser4/PN/Gain01/EELT PNs amplitude %s G01 L4").c_str(),
Numbers::sEE(ism).c_str());
1756 i04_[ism-1] = UtilsClient::getHisto<TProfile*>( me,
cloneME_,
i04_[ism-1] );
1762 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser1/PN/Gain01/EELT PNs pedestal %s G01 L1").c_str(),
Numbers::sEE(ism).c_str());
1764 i05_[ism-1] = UtilsClient::getHisto<TProfile*>( me,
cloneME_,
i05_[ism-1] );
1770 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser2/PN/Gain01/EELT PNs pedestal %s G01 L2").c_str(),
Numbers::sEE(ism).c_str());
1772 i06_[ism-1] = UtilsClient::getHisto<TProfile*>( me,
cloneME_,
i06_[ism-1] );
1778 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser3/PN/Gain01/EELT PNs pedestal %s G01 L3").c_str(),
Numbers::sEE(ism).c_str());
1780 i07_[ism-1] = UtilsClient::getHisto<TProfile*>( me,
cloneME_,
i07_[ism-1] );
1786 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser4/PN/Gain01/EELT PNs pedestal %s G01 L4").c_str(),
Numbers::sEE(ism).c_str());
1788 i08_[ism-1] = UtilsClient::getHisto<TProfile*>( me,
cloneME_,
i08_[ism-1] );
1794 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser1/PN/Gain16/EELT PNs amplitude %s G16 L1").c_str(),
Numbers::sEE(ism).c_str());
1796 i09_[ism-1] = UtilsClient::getHisto<TProfile*>( me,
cloneME_,
i09_[ism-1] );
1802 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser2/PN/Gain16/EELT PNs amplitude %s G16 L2").c_str(),
Numbers::sEE(ism).c_str());
1804 i10_[ism-1] = UtilsClient::getHisto<TProfile*>( me,
cloneME_,
i10_[ism-1] );
1810 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser3/PN/Gain16/EELT PNs amplitude %s G16 L3").c_str(),
Numbers::sEE(ism).c_str());
1812 i11_[ism-1] = UtilsClient::getHisto<TProfile*>( me,
cloneME_,
i11_[ism-1] );
1818 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser4/PN/Gain16/EELT PNs amplitude %s G16 L4").c_str(),
Numbers::sEE(ism).c_str());
1820 i12_[ism-1] = UtilsClient::getHisto<TProfile*>( me,
cloneME_,
i12_[ism-1] );
1826 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser1/PN/Gain16/EELT PNs pedestal %s G16 L1").c_str(),
Numbers::sEE(ism).c_str());
1828 i13_[ism-1] = UtilsClient::getHisto<TProfile*>( me,
cloneME_,
i13_[ism-1] );
1834 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser2/PN/Gain16/EELT PNs pedestal %s G16 L2").c_str(),
Numbers::sEE(ism).c_str());
1836 i14_[ism-1] = UtilsClient::getHisto<TProfile*>( me,
cloneME_,
i14_[ism-1] );
1842 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser3/PN/Gain16/EELT PNs pedestal %s G16 L3").c_str(),
Numbers::sEE(ism).c_str());
1844 i15_[ism-1] = UtilsClient::getHisto<TProfile*>( me,
cloneME_,
i15_[ism-1] );
1850 sprintf(histo, (
prefixME_ +
"/EELaserTask/Laser4/PN/Gain16/EELT PNs pedestal %s G16 L4").c_str(),
Numbers::sEE(ism).c_str());
1852 i16_[ism-1] = UtilsClient::getHisto<TProfile*>( me,
cloneME_,
i16_[ism-1] );
1909 float meanAmplL1, meanAmplL2, meanAmplL3, meanAmplL4;
1911 int nCryL1, nCryL2, nCryL3, nCryL4;
1913 meanAmplL1 = meanAmplL2 = meanAmplL3 = meanAmplL4 = 0.;
1915 nCryL1 = nCryL2 = nCryL3 = nCryL4 = 0;
1917 for (
int ix = 1; ix <= 50; ix++ ) {
1918 for (
int iy = 1; iy <= 50; iy++ ) {
1925 float num01, num02, num03, num04;
1926 float mean01, mean02, mean03, mean04;
1927 float rms01, rms02, rms03, rms04;
1935 meanAmplL1 += mean01;
1940 meanAmplL2 += mean02;
1945 meanAmplL3 += mean03;
1950 meanAmplL4 += mean04;
1957 if ( nCryL1 > 0 ) meanAmplL1 /= float (nCryL1);
1958 if ( nCryL2 > 0 ) meanAmplL2 /= float (nCryL2);
1959 if ( nCryL3 > 0 ) meanAmplL3 /= float (nCryL3);
1960 if ( nCryL4 > 0 ) meanAmplL4 /= float (nCryL4);
1962 for (
int ix = 1; ix <= 50; ix++ ) {
1963 for (
int iy = 1; iy <= 50; iy++ ) {
1973 if ( ism >= 1 && ism <= 9 ) jx = 101 - jx;
1995 float num01, num02, num03, num04, num05, num06, num07, num08;
1996 float num09, num10, num11, num12;
1997 float mean01, mean02, mean03, mean04, mean05, mean06, mean07, mean08;
1998 float mean09, mean10, mean11, mean12;
1999 float rms01, rms02, rms03, rms04, rms05, rms06, rms07, rms08;
2000 float rms09, rms10, rms11, rms12;
2028 if ( mean01 > 0. ) {
2052 if ( mean03 > 0. ) {
2076 if ( mean05 > 0. ) {
2100 if ( mean07 > 0. ) {
2124 if ( mean02 > 0. ) {
2141 if ( mean04 > 0. ) {
2158 if ( mean06 > 0. ) {
2175 if ( mean08 > 0. ) {
2192 if ( mean09 > 0. ) {
2212 if ( mean10 > 0. ) {
2233 if ( mean11 > 0. ) {
2253 if ( mean12 > 0. ) {
2270 for (
int i = 1;
i <= 10;
i++ ) {
2282 if ( (ism >= 3 && ism <= 4) || (ism >= 7 && ism <= 9) )
continue;
2283 if ( (ism >= 12 && ism <= 13) || (ism >= 16 && ism <= 18) )
continue;
2311 float num01, num02, num03, num04, num05, num06, num07, num08;
2312 float num09, num10, num11, num12, num13, num14, num15, num16;
2313 float mean01, mean02, mean03, mean04, mean05, mean06, mean07, mean08;
2314 float mean09, mean10, mean11, mean12, mean13, mean14, mean15, mean16;
2315 float rms01, rms02, rms03, rms04, rms05, rms06, rms07, rms08;
2316 float rms09, rms10, rms11, rms12, rms13, rms14, rms15, rms16;
2335 if ( update01 && update05 ) {
2353 if ( update02 && update06 ) {
2371 if ( update03 && update07 ) {
2389 if ( update04 && update08 ) {
2407 if ( update09 && update13 ) {
2425 if ( update10 && update14 ) {
2444 if ( update11 && update15 ) {
2463 if ( update12 && update16 ) {
2498 for (
int i = 1;
i <= 10;
i++ ) {
2500 if (
hs01_[ism-1] ) {
2508 if (
hs02_[ism-1] ) {
2516 if (
hs03_[ism-1] ) {
2524 if (
hs04_[ism-1] ) {
static void printBadChannels(const MonitorElement *me, const T *hi, bool positive_only=false)
Print the bad channels.
std::vector< int > laserWavelengths_
MonitorElement * metrms03_[18]
Cache logicID vector from database.
float rmsThresholdRelative_
void setADCMeanG1(float mean)
std::vector< int > superModules_
T getUntrackedParameter(std::string const &, T const &) const
void setADCRMSG16(float mean)
void setPedRMSG16(float mean)
MonitorElement * met01_[18]
void setBinContent(int binx, double content)
set content of bin (1-D)
static const int LASER_MEAN_ERROR
static bool maskChannel(int ism, int i1, int i2, uint32_t bits, const EcalSubdetector subdet)
MonitorElement * me_hs01_[18]
void beginJob(void)
BeginJob.
static int getFirstNonEmptyChannel(const TProfile2D *histo)
Find the first non empty bin.
void setADCRMSG16(float mean)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
EELaserClient(const edm::ParameterSet &ps)
Constructor.
MonitorElement * metav04_[18]
void setADCMeanG16(float mean)
static int iy0EE(const int ism)
void setAPDOverPNRMS(float rms)
Some "id" conversions.
static void maskBinContent(const MonitorElement *me, const int ix, const int iy)
Mask the bin content.
void setAPDOverPNMean(float mean)
virtual ~EELaserClient()
Destructor.
MonitorElement * mepnprms03_[18]
void setAPDMean(float mean)
static const int LASER_TIMING_RMS_ERROR
static const int PEDESTAL_HIGH_GAIN_MEAN_ERROR
static std::string sEE(const int ism)
void setADCMeanG16(float mean)
void setADCMeanG1(float mean)
MonitorElement * meg04_[18]
void setADCRMSG1(float mean)
void setTaskStatus(bool status)
MonitorElement * met02_[18]
void analyze(void)
Analyze.
MonitorElement * meg11_[18]
MonitorElement * mepnprms02_[18]
void setADCRMSG1(float mean)
MonitorElement * metav02_[18]
MonitorElement * met04_[18]
static const int PEDESTAL_LOW_GAIN_RMS_ERROR
void setPedRMSG16(float mean)
MonitorElement * mepnprms05_[18]
void setTimingMean(float mean)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
MonitorElement * meg12_[18]
MonitorElement * meg09_[18]
void setTaskStatus(bool status)
static int indexEE(const int ism, const int ix, const int iy)
MonitorElement * metav03_[18]
static const int PEDESTAL_HIGH_GAIN_RMS_ERROR
static bool maskPn(int ism, int i1, uint32_t bits, const EcalSubdetector subdet)
MonitorElement * me_hs02_[18]
MonitorElement * mea04_[18]
MonitorElement * me_hs04_[18]
MonitorElement * meaopn01_[18]
static int iSM(const int ism, const EcalSubdetector subdet)
void setADCMeanG1(float mean)
MonitorElement * meaopn03_[18]
static int icEE(const int ism, const int ix, const int iy)
void setTaskStatus(bool status)
void setAPDMean(float mean)
float pedPnDiscrepancyMean_[2]
void removeElement(const std::string &name)
MonitorElement * metrms02_[18]
void setPedMeanG1(float mean)
void setAPDMean(float mean)
void setTaskStatus(bool status)
MonitorElement * meaopn04_[18]
MonitorElement * mepnprms08_[18]
void setPedRMSG1(float mean)
void setPedRMSG1(float mean)
void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
void setPedRMSG1(float mean)
std::string getName(Reflex::Type &cc)
float pedPnRMSThreshold_[2]
float amplitudeThresholdPnG16_
void setEntries(double nentries)
set # of entries
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
MonitorElement * mea03_[18]
void setADCMeanG1(float mean)
MonitorElement * meg03_[18]
void setADCRMSG1(float mean)
void setPedRMSG1(float mean)
void setADCRMSG1(float mean)
void setTaskStatus(bool status)
MonitorElement * mepnprms06_[18]
void setAPDRMS(float rms)
MonitorElement * mea01_[18]
void setPedRMSG16(float mean)
float pedPnExpectedMean_[2]
float amplitudeThreshold_
MonitorElement * meg08_[18]
MonitorElement * mepnprms04_[18]
void setADCRMSG16(float mean)
void setAPDOverPNRMS(float rms)
void setAPDRMS(float rms)
Ecal Monitor Utils for Client.
MonitorElement * me_hs03_[18]
static const int PEDESTAL_LOW_GAIN_MEAN_ERROR
void setTaskStatus(bool status)
void setAPDOverPNRMS(float rms)
MonitorElement * meg07_[18]
MonitorElement * mea02_[18]
void cleanup(void)
Cleanup.
void setAPDOverPNMean(float mean)
MonitorElement * meg02_[18]
void setTimingRMS(float rms)
void setADCMeanG16(float mean)
void setADCMeanG16(float mean)
void setTaskStatus(bool status)
void setPedMeanG16(float mean)
void setAPDOverPNRMS(float rms)
void setTaskStatus(bool status)
static const int LASER_TIMING_MEAN_ERROR
void setPedMeanG1(float mean)
void beginRun(void)
BeginRun.
MonitorElement * meg10_[18]
void setAPDOverPNMean(float mean)
void setAPDRMS(float rms)
static bool getBinStatus(const MonitorElement *me, const int ix, const int iy)
Returns true if the bin status is red/dark red.
MonitorElement * metrms04_[18]
void setPedMeanG16(float mean)
MonitorElement * metav01_[18]
MonitorElement * meg06_[18]
void setPedMeanG1(float mean)
static int ix0EE(const int ism)
MonitorElement * metrms01_[18]
MonitorElement * mepnprms01_[18]
void setPedRMSG16(float mean)
void insertDataArraySet(const std::map< EcalLogicID, DATT > *data, IOVT *iov)
void setPedMeanG16(float mean)
void setTaskStatus(bool status)
MonitorElement * met03_[18]
void setAPDMean(float mean)
static bool validEE(const int ism, const int ix, const int iy)
void setADCRMSG16(float mean)
static bool getBinQuality(const MonitorElement *me, const int ix, const int iy)
Returns true if the bin quality is good or masked.
static const int LASER_RMS_ERROR
MonitorElement * meaopn02_[18]
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
static EcalLogicID getEcalLogicID(const char *name, const int id1=EcalLogicID::NULLID, const int id2=EcalLogicID::NULLID, const int id3=EcalLogicID::NULLID)
void setAPDOverPNMean(float mean)
float amplitudeThresholdPnG01_
int ism(int ieta, int iphi)
MonitorElement * meg05_[18]
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void Reset(void)
reset ME (ie. contents, errors, etc)
static bool getBinStatistics(const T *histo, const int ix, const int iy, float &num, float &mean, float &rms)
Returns true if the bin contains good statistical data.
void setPedMeanG1(float mean)
void setAPDRMS(float rms)
MonitorElement * mepnprms07_[18]
void setCurrentFolder(const std::string &fullpath)
void setPedMeanG16(float mean)
MonitorElement * meg01_[18]