#include <EELedClient.h>
Public Member Functions | |
void | analyze (void) |
Analyze. | |
void | beginJob (void) |
BeginJob. | |
void | beginRun (void) |
BeginRun. | |
void | cleanup (void) |
Cleanup. | |
EELedClient (const edm::ParameterSet &ps) | |
Constructor. | |
void | endJob (void) |
EndJob. | |
void | endRun (void) |
EndRun. | |
int | getEvtPerJob () |
Get Functions. | |
int | getEvtPerRun () |
Returns the number of processed events in this Run. | |
void | setup (void) |
Setup. | |
virtual | ~EELedClient () |
Destructor. | |
Private Attributes | |
float | amplitudeThreshold01_ |
float | amplitudeThreshold03_ |
float | amplitudeThresholdPnG01_ |
float | amplitudeThresholdPnG16_ |
bool | cloneME_ |
bool | debug_ |
DQMStore * | dqmStore_ |
bool | enableCleanup_ |
TProfile2D * | h01_ [18] |
TProfile2D * | h02_ [18] |
TProfile2D * | h03_ [18] |
TProfile2D * | h04_ [18] |
TProfile2D * | h09_ [18] |
TProfile2D * | h10_ [18] |
TProfile2D * | hs01_ [18] |
TProfile2D * | hs02_ [18] |
TProfile * | i01_ [18] |
TProfile * | i02_ [18] |
TProfile * | i05_ [18] |
TProfile * | i06_ [18] |
TProfile * | i09_ [18] |
TProfile * | i10_ [18] |
TProfile * | i13_ [18] |
TProfile * | i14_ [18] |
int | ievt_ |
int | jevt_ |
std::vector< int > | ledWavelengths_ |
MonitorElement * | me_hs01_ [18] |
MonitorElement * | me_hs02_ [18] |
MonitorElement * | mea01_ [18] |
MonitorElement * | mea02_ [18] |
MonitorElement * | meaopn01_ [18] |
MonitorElement * | meaopn02_ [18] |
MonitorElement * | meg01_ [18] |
MonitorElement * | meg02_ [18] |
MonitorElement * | meg05_ [18] |
MonitorElement * | meg06_ [18] |
MonitorElement * | meg09_ [18] |
MonitorElement * | meg10_ [18] |
MonitorElement * | mepnprms01_ [18] |
MonitorElement * | mepnprms02_ [18] |
MonitorElement * | mepnprms05_ [18] |
MonitorElement * | mepnprms06_ [18] |
MonitorElement * | met01_ [18] |
MonitorElement * | met02_ [18] |
MonitorElement * | metav01_ [18] |
MonitorElement * | metav02_ [18] |
MonitorElement * | metrms01_ [18] |
MonitorElement * | metrms02_ [18] |
float | pedPnDiscrepancyMean_ [2] |
float | pedPnExpectedMean_ [2] |
float | pedPnRMSThreshold_ [2] |
float | percentVariation01_ |
float | percentVariation03_ |
std::string | prefixME_ |
float | rmsThreshold01_ |
float | rmsThreshold03_ |
std::vector< int > | superModules_ |
bool | verbose_ |
Friends | |
class | EESummaryClient |
Definition at line 32 of file EELedClient.h.
EELedClient::EELedClient | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 45 of file EELedClient.cc.
References amplitudeThreshold01_, amplitudeThreshold03_, amplitudeThresholdPnG01_, amplitudeThresholdPnG16_, cloneME_, gather_cfg::cout, debug_, enableCleanup_, edm::ParameterSet::getUntrackedParameter(), h01_, h02_, h03_, h04_, h09_, h10_, hs01_, hs02_, i, i01_, i02_, i05_, i06_, i09_, i10_, i13_, i14_, ecalpyutils::ism(), ledWavelengths_, me_hs01_, me_hs02_, mea01_, mea02_, meaopn01_, meaopn02_, meg01_, meg02_, meg05_, meg06_, meg09_, meg10_, mepnprms01_, mepnprms02_, mepnprms05_, mepnprms06_, met01_, met02_, metav01_, metav02_, metrms01_, metrms02_, pedPnDiscrepancyMean_, pedPnExpectedMean_, pedPnRMSThreshold_, percentVariation01_, percentVariation03_, prefixME_, rmsThreshold01_, rmsThreshold03_, AlCaHLTBitMon_QueryRunRegistry::string, superModules_, and verbose_.
{ // cloneME switch cloneME_ = ps.getUntrackedParameter<bool>("cloneME", true); // verbose switch verbose_ = ps.getUntrackedParameter<bool>("verbose", true); // debug switch debug_ = ps.getUntrackedParameter<bool>("debug", false); // prefixME path prefixME_ = ps.getUntrackedParameter<std::string>("prefixME", ""); // enableCleanup_ switch enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup", false); // vector of selected Super Modules (Defaults to all 18). superModules_.reserve(18); for ( unsigned int i = 1; i <= 18; i++ ) superModules_.push_back(i); superModules_ = ps.getUntrackedParameter<std::vector<int> >("superModules", superModules_); ledWavelengths_.reserve(2); for ( unsigned int i = 1; i <= 2; i++ ) ledWavelengths_.push_back(i); ledWavelengths_ = ps.getUntrackedParameter<std::vector<int> >("ledWavelengths", ledWavelengths_); if ( verbose_ ) { std::cout << " Led wavelengths:" << std::endl; for ( unsigned int i = 0; i < ledWavelengths_.size(); i++ ) { std::cout << " " << ledWavelengths_[i]; } std::cout << std::endl; } for ( unsigned int i=0; i<superModules_.size(); i++ ) { int ism = superModules_[i]; h01_[ism-1] = 0; h02_[ism-1] = 0; h03_[ism-1] = 0; h04_[ism-1] = 0; h09_[ism-1] = 0; h10_[ism-1] = 0; hs01_[ism-1] = 0; hs02_[ism-1] = 0; i01_[ism-1] = 0; i02_[ism-1] = 0; i05_[ism-1] = 0; i06_[ism-1] = 0; i09_[ism-1] = 0; i10_[ism-1] = 0; i13_[ism-1] = 0; i14_[ism-1] = 0; } for ( unsigned int i=0; i<superModules_.size(); i++ ) { int ism = superModules_[i]; meg01_[ism-1] = 0; meg02_[ism-1] = 0; meg05_[ism-1] = 0; meg06_[ism-1] = 0; meg09_[ism-1] = 0; meg10_[ism-1] = 0; mea01_[ism-1] = 0; mea02_[ism-1] = 0; met01_[ism-1] = 0; met02_[ism-1] = 0; metav01_[ism-1] = 0; metav02_[ism-1] = 0; metrms01_[ism-1] = 0; metrms02_[ism-1] = 0; meaopn01_[ism-1] = 0; meaopn02_[ism-1] = 0; mepnprms01_[ism-1] = 0; mepnprms02_[ism-1] = 0; mepnprms05_[ism-1] = 0; mepnprms06_[ism-1] = 0; me_hs01_[ism-1] = 0; me_hs02_[ism-1] = 0; } percentVariation01_ = 999.; // not used nor not normalized VPTs percentVariation03_ = 999.; // not used nor not normalized VPTs amplitudeThreshold01_ = 2.; amplitudeThreshold03_ = 2.; rmsThreshold01_ = 10.; rmsThreshold03_ = 10.; amplitudeThresholdPnG01_ = 100.; amplitudeThresholdPnG16_ = 100.; pedPnExpectedMean_[0] = 750.0; pedPnExpectedMean_[1] = 750.0; pedPnDiscrepancyMean_[0] = 100.0; pedPnDiscrepancyMean_[1] = 100.0; pedPnRMSThreshold_[0] = 10.; pedPnRMSThreshold_[1] = 10.; }
EELedClient::~EELedClient | ( | ) | [virtual] |
void EELedClient::analyze | ( | void | ) | [virtual] |
Analyze.
Implements EEClient.
Definition at line 1022 of file EELedClient.cc.
References amplitudeThresholdPnG01_, amplitudeThresholdPnG16_, cloneME_, gather_cfg::cout, debug_, dqmStore_, EcalEndcap, MonitorElement::Fill(), spr::find(), DQMStore::get(), UtilsClient::getBinStatistics(), UtilsClient::getFirstNonEmptyChannel(), getHisto(), h01_, h02_, h03_, h04_, h09_, h10_, hs01_, hs02_, i, i01_, i02_, i05_, i06_, i09_, i10_, i13_, i14_, Numbers::icEE(), ievt_, Numbers::ix0EE(), Numbers::iy0EE(), jevt_, EcalDQMStatusHelper::LED_MEAN_ERROR, EcalDQMStatusHelper::LED_RMS_ERROR, EcalDQMStatusHelper::LED_TIMING_MEAN_ERROR, EcalDQMStatusHelper::LED_TIMING_RMS_ERROR, ledWavelengths_, UtilsClient::maskBinContent(), Masks::maskChannel(), Masks::maskPn(), me_hs01_, me_hs02_, mea01_, mea02_, meaopn01_, meaopn02_, meg01_, meg02_, meg05_, meg06_, meg09_, meg10_, mepnprms01_, mepnprms02_, mepnprms05_, mepnprms06_, met01_, met02_, metav01_, metav02_, metrms01_, metrms02_, EcalDQMStatusHelper::PEDESTAL_HIGH_GAIN_MEAN_ERROR, EcalDQMStatusHelper::PEDESTAL_HIGH_GAIN_RMS_ERROR, EcalDQMStatusHelper::PEDESTAL_LOW_GAIN_MEAN_ERROR, EcalDQMStatusHelper::PEDESTAL_LOW_GAIN_RMS_ERROR, pedPnDiscrepancyMean_, pedPnExpectedMean_, pedPnRMSThreshold_, prefixME_, MonitorElement::Reset(), rmsThreshold01_, rmsThreshold03_, Numbers::sEE(), MonitorElement::setBinContent(), MonitorElement::setBinError(), MonitorElement::setEntries(), superModules_, and Numbers::validEE().
{ ievt_++; jevt_++; if ( ievt_ % 10 == 0 ) { if ( debug_ ) std::cout << "EELedClient: ievt/jevt = " << ievt_ << "/" << jevt_ << std::endl; } uint32_t bits01 = 0; bits01 |= 1 << EcalDQMStatusHelper::LED_MEAN_ERROR; bits01 |= 1 << EcalDQMStatusHelper::LED_RMS_ERROR; uint32_t bits02 = 0; bits02 |= 1 << EcalDQMStatusHelper::LED_TIMING_MEAN_ERROR; bits02 |= 1 << EcalDQMStatusHelper::LED_TIMING_RMS_ERROR; uint32_t bits03 = 0; bits03 |= 1 << EcalDQMStatusHelper::PEDESTAL_LOW_GAIN_MEAN_ERROR; bits03 |= 1 << EcalDQMStatusHelper::PEDESTAL_LOW_GAIN_RMS_ERROR; uint32_t bits04 = 0; bits04 |= 1 << EcalDQMStatusHelper::PEDESTAL_HIGH_GAIN_MEAN_ERROR; bits04 |= 1 << EcalDQMStatusHelper::PEDESTAL_HIGH_GAIN_RMS_ERROR; MonitorElement* me; for ( unsigned int i=0; i<superModules_.size(); i++ ) { int ism = superModules_[i]; if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { me = dqmStore_->get( prefixME_ + "/EELedTask/Led1/EELDT amplitude " + Numbers::sEE(ism) + " L1" ); h01_[ism-1] = UtilsClient::getHisto( me, cloneME_, h01_[ism-1] ); me = dqmStore_->get( prefixME_ + "/EELedTask/Led1/EELDT amplitude over PN " + Numbers::sEE(ism) + " L1" ); h02_[ism-1] = UtilsClient::getHisto( me, cloneME_, h02_[ism-1] ); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { me = dqmStore_->get( prefixME_ + "/EELedTask/Led2/EELDT amplitude " + Numbers::sEE(ism) + " L2" ); h03_[ism-1] = UtilsClient::getHisto( me, cloneME_, h03_[ism-1] ); me = dqmStore_->get( prefixME_ + "/EELedTask/Led2/EELDT amplitude over PN " + Numbers::sEE(ism) + " L2" ); h04_[ism-1] = UtilsClient::getHisto( me, cloneME_, h04_[ism-1] ); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { me = dqmStore_->get( prefixME_ + "/EELedTask/Led1/EELDT timing " + Numbers::sEE(ism) + " L1" ); h09_[ism-1] = UtilsClient::getHisto( me, cloneME_, h09_[ism-1] ); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { me = dqmStore_->get( prefixME_ + "/EELedTask/Led2/EELDT timing " + Numbers::sEE(ism) + " L2" ); h10_[ism-1] = UtilsClient::getHisto( me, cloneME_, h10_[ism-1] ); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { me = dqmStore_->get( prefixME_ + "/EELedTask/Led1/EELDT shape " + Numbers::sEE(ism) + " L1" ); hs01_[ism-1] = UtilsClient::getHisto( me, cloneME_, hs01_[ism-1] ); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { me = dqmStore_->get( prefixME_ + "/EELedTask/Led2/EELDT shape " + Numbers::sEE(ism) + " L2" ); hs02_[ism-1] = UtilsClient::getHisto( me, cloneME_, hs02_[ism-1] ); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { me = dqmStore_->get( prefixME_ + "/EELedTask/Led1/PN/Gain01/EELDT PNs amplitude " + Numbers::sEE(ism) + " G01 L1" ); i01_[ism-1] = UtilsClient::getHisto( me, cloneME_, i01_[ism-1] ); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { me = dqmStore_->get( prefixME_ + "/EELedTask/Led2/PN/Gain01/EELDT PNs amplitude " + Numbers::sEE(ism) + " G01 L2" ); i02_[ism-1] = UtilsClient::getHisto( me, cloneME_, i02_[ism-1] ); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { me = dqmStore_->get( prefixME_ + "/EELedTask/Led1/PN/Gain01/EELDT PNs pedestal " + Numbers::sEE(ism) + " G01 L1" ); i05_[ism-1] = UtilsClient::getHisto( me, cloneME_, i05_[ism-1] ); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { me = dqmStore_->get( prefixME_ + "/EELedTask/Led2/PN/Gain01/EELDT PNs pedestal " + Numbers::sEE(ism) + " G01 L2" ); i06_[ism-1] = UtilsClient::getHisto( me, cloneME_, i06_[ism-1] ); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { me = dqmStore_->get( prefixME_ + "/EELedTask/Led1/PN/Gain16/EELDT PNs amplitude " + Numbers::sEE(ism) + " G16 L1" ); i09_[ism-1] = UtilsClient::getHisto( me, cloneME_, i09_[ism-1] ); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { me = dqmStore_->get( prefixME_ + "/EELedTask/Led2/PN/Gain16/EELDT PNs amplitude " + Numbers::sEE(ism) + " G16 L2" ); i10_[ism-1] = UtilsClient::getHisto( me, cloneME_, i10_[ism-1] ); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { me = dqmStore_->get( prefixME_ + "/EELedTask/Led1/PN/Gain16/EELDT PNs pedestal " + Numbers::sEE(ism) + " G16 L1" ); i13_[ism-1] = UtilsClient::getHisto( me, cloneME_, i13_[ism-1] ); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { me = dqmStore_->get( prefixME_ + "/EELedTask/Led2/PN/Gain16/EELDT PNs pedestal " + Numbers::sEE(ism) + " G16 L2" ); i14_[ism-1] = UtilsClient::getHisto( me, cloneME_, i14_[ism-1] ); } if ( meg01_[ism-1] ) meg01_[ism-1]->Reset(); if ( meg02_[ism-1] ) meg02_[ism-1]->Reset(); if ( meg05_[ism-1] ) meg05_[ism-1]->Reset(); if ( meg06_[ism-1] ) meg06_[ism-1]->Reset(); if ( meg09_[ism-1] ) meg09_[ism-1]->Reset(); if ( meg10_[ism-1] ) meg10_[ism-1]->Reset(); if ( mea01_[ism-1] ) mea01_[ism-1]->Reset(); if ( mea02_[ism-1] ) mea02_[ism-1]->Reset(); if ( met01_[ism-1] ) met01_[ism-1]->Reset(); if ( met02_[ism-1] ) met02_[ism-1]->Reset(); if ( metav01_[ism-1] ) metav01_[ism-1]->Reset(); if ( metav02_[ism-1] ) metav02_[ism-1]->Reset(); if ( metrms01_[ism-1] ) metrms01_[ism-1]->Reset(); if ( metrms02_[ism-1] ) metrms02_[ism-1]->Reset(); if ( meaopn01_[ism-1] ) meaopn01_[ism-1]->Reset(); if ( meaopn02_[ism-1] ) meaopn02_[ism-1]->Reset(); if ( mepnprms01_[ism-1] ) mepnprms01_[ism-1]->Reset(); if ( mepnprms02_[ism-1] ) mepnprms02_[ism-1]->Reset(); if ( me_hs01_[ism-1] ) me_hs01_[ism-1]->Reset(); if ( me_hs02_[ism-1] ) me_hs02_[ism-1]->Reset(); float meanAmplL1, meanAmplL2; int nCryL1, nCryL2; meanAmplL1 = meanAmplL2 = 0.; nCryL1 = nCryL2 = 0; for ( int ix = 1; ix <= 50; ix++ ) { for ( int iy = 1; iy <= 50; iy++ ) { bool update01; bool update02; float num01, num02; float mean01, mean02; float rms01, rms02; update01 = UtilsClient::getBinStatistics(h01_[ism-1], ix, iy, num01, mean01, rms01); update02 = UtilsClient::getBinStatistics(h03_[ism-1], ix, iy, num02, mean02, rms02); if ( update01 ) { meanAmplL1 += mean01; nCryL1++; } if ( update02 ) { meanAmplL2 += mean02; nCryL2++; } } } if ( nCryL1 > 0 ) meanAmplL1 /= float (nCryL1); if ( nCryL2 > 0 ) meanAmplL2 /= float (nCryL2); for ( int ix = 1; ix <= 50; ix++ ) { for ( int iy = 1; iy <= 50; iy++ ) { if ( meg01_[ism-1] ) meg01_[ism-1]->setBinContent( ix, iy, 6.); if ( meg02_[ism-1] ) meg02_[ism-1]->setBinContent( ix, iy, 6.); int jx = ix + Numbers::ix0EE(ism); int jy = iy + Numbers::iy0EE(ism); if ( ism >= 1 && ism <= 9 ) jx = 101 - jx; if ( Numbers::validEE(ism, jx, jy) ) { if ( meg01_[ism-1] ) meg01_[ism-1]->setBinContent( ix, iy, 2.); if ( meg02_[ism-1] ) meg02_[ism-1]->setBinContent( ix, iy, 2.); } bool update01; bool update02; bool update03; bool update04; bool update09; bool update10; float num01, num02, num03, num04; float num09, num10; float mean01, mean02, mean03, mean04; float mean09, mean10; float rms01, rms02, rms03, rms04; float rms09, rms10; update01 = UtilsClient::getBinStatistics(h01_[ism-1], ix, iy, num01, mean01, rms01); update02 = UtilsClient::getBinStatistics(h02_[ism-1], ix, iy, num02, mean02, rms02); update03 = UtilsClient::getBinStatistics(h03_[ism-1], ix, iy, num03, mean03, rms03); update04 = UtilsClient::getBinStatistics(h04_[ism-1], ix, iy, num04, mean04, rms04); update09 = UtilsClient::getBinStatistics(h09_[ism-1], ix, iy, num09, mean09, rms09); update10 = UtilsClient::getBinStatistics(h10_[ism-1], ix, iy, num10, mean10, rms10); if ( update01 ) { float val; val = 1.; if ( mean01 < amplitudeThreshold01_ || rms01 > rmsThreshold01_ ) val = 0.; if ( meg01_[ism-1] ) meg01_[ism-1]->setBinContent( ix, iy, val ); int ic = Numbers::icEE(ism, jx, jy); if ( ic != -1 ) { if ( mea01_[ism-1] ) { if ( mean01 > 0. ) { mea01_[ism-1]->setBinContent( ic, mean01 ); mea01_[ism-1]->setBinError( ic, rms01 ); } else { mea01_[ism-1]->setEntries( 1.+mea01_[ism-1]->getEntries() ); } } } } if ( update03 ) { float val; val = 1.; if ( mean03 < amplitudeThreshold03_ || rms03 > rmsThreshold03_ ) val = 0.; if ( meg02_[ism-1] ) meg02_[ism-1]->setBinContent( ix, iy, val ); int ic = Numbers::icEE(ism, jx, jy); if ( ic != -1 ) { if ( mea02_[ism-1] ) { if ( mean03 > 0. ) { mea02_[ism-1]->setBinContent( ic, mean03 ); mea02_[ism-1]->setBinError( ic, rms03 ); } else { mea02_[ism-1]->setEntries( 1.+mea02_[ism-1]->getEntries() ); } } } } if ( Masks::maskChannel(ism, ix, iy, bits01, EcalEndcap) ) { UtilsClient::maskBinContent( meg01_[ism-1], ix, iy ); UtilsClient::maskBinContent( meg02_[ism-1], ix, iy ); } if ( update02 ) { int ic = Numbers::icEE(ism, jx, jy); if ( ic != -1 ) { if ( meaopn01_[ism-1] ) { if ( mean02 > 0. ) { meaopn01_[ism-1]->setBinContent( ic, mean02 ); meaopn01_[ism-1]->setBinError( ic, rms02 ); } else { meaopn01_[ism-1]->setEntries( 1.+meaopn01_[ism-1]->getEntries() ); } } } } if ( update04 ) { int ic = Numbers::icEE(ism, jx, jy); if ( ic != -1 ) { if ( meaopn02_[ism-1] ) { if ( mean04 > 0. ) { meaopn02_[ism-1]->setBinContent( ic, mean04 ); meaopn02_[ism-1]->setBinError( ic, rms04 ); } else { meaopn02_[ism-1]->setEntries( 1.+meaopn02_[ism-1]->getEntries() ); } } } } if ( update09 ) { int ic = Numbers::icEE(ism, jx, jy); if ( ic != -1 ) { if ( met01_[ism-1] ) { if ( mean09 > 0. ) { met01_[ism-1]->setBinContent( ic, mean09 ); met01_[ism-1]->setBinError( ic, rms09 ); } else { met01_[ism-1]->setEntries(1.+met01_[ism-1]->getEntries()); } } if ( metav01_[ism-1] ) metav01_[ism-1] ->Fill(mean09); if ( metrms01_[ism-1] ) metrms01_[ism-1]->Fill(rms09); } } if ( update10 ) { int ic = Numbers::icEE(ism, jx, jy); if ( ic != -1 ) { if ( met02_[ism-1] ) { if ( mean10 > 0. ) { met02_[ism-1]->setBinContent( ic, mean10 ); met02_[ism-1]->setBinError( ic, rms10 ); } else { met02_[ism-1]->setEntries(1.+met02_[ism-1]->getEntries()); } } if ( metav02_[ism-1] ) metav02_[ism-1] ->Fill(mean10); if ( metrms02_[ism-1] ) metrms02_[ism-1]->Fill(rms10); } } } } for ( int i = 1; i <= 10; i++ ) { if ( meg05_[ism-1] ) meg05_[ism-1]->setBinContent( i, 1, 6. ); if ( meg06_[ism-1] ) meg06_[ism-1]->setBinContent( i, 1, 6. ); if ( meg09_[ism-1] ) meg09_[ism-1]->setBinContent( i, 1, 6. ); if ( meg10_[ism-1] ) meg10_[ism-1]->setBinContent( i, 1, 6. ); // non-existing mem if ( (ism >= 3 && ism <= 4) || (ism >= 7 && ism <= 9) ) continue; if ( (ism >= 12 && ism <= 13) || (ism >= 16 && ism <= 18) ) continue; if ( meg05_[ism-1] ) meg05_[ism-1]->setBinContent( i, 1, 2. ); if ( meg06_[ism-1] ) meg06_[ism-1]->setBinContent( i, 1, 2. ); if ( meg09_[ism-1] ) meg09_[ism-1]->setBinContent( i, 1, 2. ); if ( meg10_[ism-1] ) meg10_[ism-1]->setBinContent( i, 1, 2. ); bool update01; bool update02; bool update05; bool update06; bool update09; bool update10; bool update13; bool update14; float num01, num02, num05, num06; float num09, num10, num13, num14; float mean01, mean02, mean05, mean06; float mean09, mean10, mean13, mean14; float rms01, rms02, rms05, rms06; float rms09, rms10, rms13, rms14; update01 = UtilsClient::getBinStatistics(i01_[ism-1], i, 0, num01, mean01, rms01); update02 = UtilsClient::getBinStatistics(i02_[ism-1], i, 0, num02, mean02, rms02); update05 = UtilsClient::getBinStatistics(i05_[ism-1], i, 0, num05, mean05, rms05); update06 = UtilsClient::getBinStatistics(i06_[ism-1], i, 0, num06, mean06, rms06); update09 = UtilsClient::getBinStatistics(i09_[ism-1], i, 0, num09, mean09, rms09); update10 = UtilsClient::getBinStatistics(i10_[ism-1], i, 0, num10, mean10, rms10); update13 = UtilsClient::getBinStatistics(i13_[ism-1], i, 0, num13, mean13, rms13); update14 = UtilsClient::getBinStatistics(i14_[ism-1], i, 0, num14, mean14, rms14); if ( update01 && update05 ) { float val; val = 1.; if ( mean01 < amplitudeThresholdPnG01_ ) val = 0.; if ( mean05 < pedPnExpectedMean_[0] - pedPnDiscrepancyMean_[0] || pedPnExpectedMean_[0] + pedPnDiscrepancyMean_[0] < mean05) val = 0.; if ( rms05 > pedPnRMSThreshold_[0] ) val = 0.; if ( meg05_[ism-1] ) meg05_[ism-1]->setBinContent(i, 1, val); if ( mepnprms01_[ism-1] ) mepnprms01_[ism-1]->Fill(rms05); } if ( update02 && update06 ) { float val; val = 1.; if ( mean02 < amplitudeThresholdPnG01_ ) val = 0.; if ( mean06 < pedPnExpectedMean_[0] - pedPnDiscrepancyMean_[0] || pedPnExpectedMean_[0] + pedPnDiscrepancyMean_[0] < mean06) val = 0.; if ( rms06 > pedPnRMSThreshold_[0] ) val = 0.; if ( meg06_[ism-1] ) meg06_[ism-1]->setBinContent(i, 1, val); if ( mepnprms02_[ism-1] ) mepnprms02_[ism-1]->Fill(rms06); } if ( update09 && update13 ) { float val; val = 1.; if ( mean09 < amplitudeThresholdPnG16_ ) val = 0.; if ( mean13 < pedPnExpectedMean_[1] - pedPnDiscrepancyMean_[1] || pedPnExpectedMean_[1] + pedPnDiscrepancyMean_[1] < mean13) val = 0.; if ( rms13 > pedPnRMSThreshold_[1] ) val = 0.; if ( meg09_[ism-1] ) meg09_[ism-1]->setBinContent(i, 1, val); if ( mepnprms05_[ism-1] ) mepnprms05_[ism-1]->Fill(rms13); } if ( update10 && update14 ) { float val; val = 1.; if ( mean10 < amplitudeThresholdPnG16_ ) val = 0.; // if ( mean14 < pedestalThresholdPn_ ) if ( mean14 < pedPnExpectedMean_[1] - pedPnDiscrepancyMean_[1] || pedPnExpectedMean_[1] + pedPnDiscrepancyMean_[1] < mean14) val = 0.; if ( rms14 > pedPnRMSThreshold_[1] ) val = 0.; if ( meg10_[ism-1] ) meg10_[ism-1]->setBinContent(i, 1, val); if ( mepnprms06_[ism-1] ) mepnprms06_[ism-1]->Fill(rms14); } if ( Masks::maskPn(ism, i, bits01|bits03, EcalEndcap) ) { UtilsClient::maskBinContent( meg05_[ism-1], i, 1 ); UtilsClient::maskBinContent( meg06_[ism-1], i, 1 ); } if ( Masks::maskPn(ism, i, bits01|bits04, EcalEndcap) ) { UtilsClient::maskBinContent( meg09_[ism-1], i, 1 ); UtilsClient::maskBinContent( meg10_[ism-1], i, 1 ); } } for ( int i = 1; i <= 10; i++ ) { if ( hs01_[ism-1] ) { int ic = UtilsClient::getFirstNonEmptyChannel( hs01_[ism-1] ); if ( me_hs01_[ism-1] ) { me_hs01_[ism-1]->setBinContent( i, hs01_[ism-1]->GetBinContent(ic, i) ); me_hs01_[ism-1]->setBinError( i, hs01_[ism-1]->GetBinError(ic, i) ); } } if ( hs02_[ism-1] ) { int ic = UtilsClient::getFirstNonEmptyChannel( hs02_[ism-1] ); if ( me_hs02_[ism-1] ) { me_hs02_[ism-1]->setBinContent( i, hs02_[ism-1]->GetBinContent(ic, i) ); me_hs02_[ism-1]->setBinError( i, hs02_[ism-1]->GetBinError(ic, i) ); } } } } }
void EELedClient::beginJob | ( | void | ) | [virtual] |
BeginJob.
Implements EEClient.
Definition at line 174 of file EELedClient.cc.
References gather_cfg::cout, debug_, dqmStore_, ievt_, jevt_, and cppFunctionSkipper::operator.
void EELedClient::beginRun | ( | void | ) | [virtual] |
void EELedClient::cleanup | ( | void | ) | [virtual] |
Cleanup.
Implements EEClient.
Definition at line 462 of file EELedClient.cc.
References cloneME_, dqmStore_, enableCleanup_, h01_, h02_, h03_, h04_, h09_, h10_, hs01_, hs02_, i, i01_, i02_, i05_, i06_, i09_, i10_, i13_, i14_, ecalpyutils::ism(), me_hs01_, me_hs02_, mea01_, mea02_, meaopn01_, meaopn02_, meg01_, meg02_, meg05_, meg06_, meg09_, meg10_, mepnprms01_, mepnprms02_, mepnprms05_, mepnprms06_, met01_, met02_, metav01_, metav02_, metrms01_, metrms02_, prefixME_, DQMStore::removeElement(), DQMStore::setCurrentFolder(), and superModules_.
Referenced by endJob(), and endRun().
{ if ( ! enableCleanup_ ) return; for ( unsigned int i=0; i<superModules_.size(); i++ ) { int ism = superModules_[i]; if ( cloneME_ ) { if ( h01_[ism-1] ) delete h01_[ism-1]; if ( h02_[ism-1] ) delete h02_[ism-1]; if ( h03_[ism-1] ) delete h03_[ism-1]; if ( h04_[ism-1] ) delete h04_[ism-1]; if ( h09_[ism-1] ) delete h09_[ism-1]; if ( h10_[ism-1] ) delete h10_[ism-1]; if ( hs01_[ism-1] ) delete hs01_[ism-1]; if ( hs02_[ism-1] ) delete hs02_[ism-1]; if ( i01_[ism-1] ) delete i01_[ism-1]; if ( i02_[ism-1] ) delete i02_[ism-1]; if ( i05_[ism-1] ) delete i05_[ism-1]; if ( i06_[ism-1] ) delete i06_[ism-1]; if ( i09_[ism-1] ) delete i09_[ism-1]; if ( i10_[ism-1] ) delete i10_[ism-1]; if ( i13_[ism-1] ) delete i13_[ism-1]; if ( i14_[ism-1] ) delete i14_[ism-1]; } h01_[ism-1] = 0; h02_[ism-1] = 0; h03_[ism-1] = 0; h04_[ism-1] = 0; h09_[ism-1] = 0; h10_[ism-1] = 0; hs01_[ism-1] = 0; hs02_[ism-1] = 0; i01_[ism-1] = 0; i02_[ism-1] = 0; i05_[ism-1] = 0; i06_[ism-1] = 0; i09_[ism-1] = 0; i10_[ism-1] = 0; i13_[ism-1] = 0; i14_[ism-1] = 0; } for ( unsigned int i=0; i<superModules_.size(); i++ ) { int ism = superModules_[i]; dqmStore_->setCurrentFolder( prefixME_ + "/EELedClient" ); if ( meg01_[ism-1] ) dqmStore_->removeElement( meg01_[ism-1]->getName() ); meg01_[ism-1] = 0; if ( meg02_[ism-1] ) dqmStore_->removeElement( meg02_[ism-1]->getName() ); meg02_[ism-1] = 0; if ( meg05_[ism-1] ) dqmStore_->removeElement( meg05_[ism-1]->getName() ); meg05_[ism-1] = 0; if ( meg06_[ism-1] ) dqmStore_->removeElement( meg06_[ism-1]->getName() ); meg06_[ism-1] = 0; if ( meg09_[ism-1] ) dqmStore_->removeElement( meg09_[ism-1]->getName() ); meg09_[ism-1] = 0; if ( meg10_[ism-1] ) dqmStore_->removeElement( meg10_[ism-1]->getName() ); meg10_[ism-1] = 0; if ( mea01_[ism-1] ) dqmStore_->removeElement( mea01_[ism-1]->getName() ); mea01_[ism-1] = 0; if ( mea02_[ism-1] ) dqmStore_->removeElement( mea02_[ism-1]->getName() ); mea02_[ism-1] = 0; if ( met01_[ism-1] ) dqmStore_->removeElement( met01_[ism-1]->getName() ); met01_[ism-1] = 0; if ( met02_[ism-1] ) dqmStore_->removeElement( met02_[ism-1]->getName() ); met02_[ism-1] = 0; if ( metav01_[ism-1] ) dqmStore_->removeElement( metav01_[ism-1]->getName() ); metav01_[ism-1] = 0; if ( metav02_[ism-1] ) dqmStore_->removeElement( metav02_[ism-1]->getName() ); metav02_[ism-1] = 0; if ( metrms01_[ism-1] ) dqmStore_->removeElement( metrms01_[ism-1]->getName() ); metrms01_[ism-1] = 0; if ( metrms02_[ism-1] ) dqmStore_->removeElement( metrms02_[ism-1]->getName() ); metrms02_[ism-1] = 0; if ( meaopn01_[ism-1] ) dqmStore_->removeElement( meaopn01_[ism-1]->getName() ); meaopn01_[ism-1] = 0; if ( meaopn02_[ism-1] ) dqmStore_->removeElement( meaopn02_[ism-1]->getName() ); meaopn02_[ism-1] = 0; if ( mepnprms01_[ism-1] ) dqmStore_->removeElement( mepnprms01_[ism-1]->getName() ); mepnprms01_[ism-1] = 0; if ( mepnprms02_[ism-1] ) dqmStore_->removeElement( mepnprms02_[ism-1]->getName() ); mepnprms02_[ism-1] = 0; if ( mepnprms05_[ism-1] ) dqmStore_->removeElement( mepnprms05_[ism-1]->getName() ); mepnprms05_[ism-1] = 0; if ( mepnprms06_[ism-1] ) dqmStore_->removeElement( mepnprms06_[ism-1]->getName() ); mepnprms06_[ism-1] = 0; if ( me_hs01_[ism-1] ) dqmStore_->removeElement( me_hs01_[ism-1]->getName() ); me_hs01_[ism-1] = 0; if ( me_hs02_[ism-1] ) dqmStore_->removeElement( me_hs02_[ism-1]->getName() ); me_hs02_[ism-1] = 0; } }
void EELedClient::endJob | ( | void | ) | [virtual] |
void EELedClient::endRun | ( | void | ) | [virtual] |
int EELedClient::getEvtPerJob | ( | void | ) | [inline, virtual] |
Get Functions.
Implements EEClient.
Definition at line 71 of file EELedClient.h.
References ievt_.
{ return ievt_; }
int EELedClient::getEvtPerRun | ( | void | ) | [inline, virtual] |
void EELedClient::setup | ( | void | ) | [virtual] |
Setup.
Implements EEClient.
Definition at line 211 of file EELedClient.cc.
References DQMStore::book1D(), DQMStore::book2D(), dqmStore_, spr::find(), i, ecalpyutils::ism(), Numbers::ix0EE(), Numbers::iy0EE(), ledWavelengths_, me_hs01_, me_hs02_, mea01_, mea02_, meaopn01_, meaopn02_, meg01_, meg02_, meg05_, meg06_, meg09_, meg10_, mepnprms01_, mepnprms02_, mepnprms05_, mepnprms06_, met01_, met02_, metav01_, metav02_, metrms01_, metrms02_, mergeVDriftHistosByStation::name, prefixME_, DQMStore::removeElement(), MonitorElement::Reset(), Numbers::sEE(), MonitorElement::setAxisTitle(), MonitorElement::setBinContent(), DQMStore::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, superModules_, and Numbers::validEE().
Referenced by beginRun().
{ std::string name; dqmStore_->setCurrentFolder( prefixME_ + "/EELedClient" ); for ( unsigned int i=0; i<superModules_.size(); i++ ) { int ism = superModules_[i]; if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { if ( meg01_[ism-1] ) dqmStore_->removeElement( meg01_[ism-1]->getName() ); name = "EELDT led quality L1 " + Numbers::sEE(ism); meg01_[ism-1] = dqmStore_->book2D(name, name, 50, Numbers::ix0EE(ism)+0., Numbers::ix0EE(ism)+50., 50, Numbers::iy0EE(ism)+0., Numbers::iy0EE(ism)+50.); meg01_[ism-1]->setAxisTitle("ix", 1); if ( ism >= 1 && ism <= 9 ) meg01_[ism-1]->setAxisTitle("101-ix", 1); meg01_[ism-1]->setAxisTitle("iy", 2); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { if ( meg02_[ism-1] ) dqmStore_->removeElement( meg02_[ism-1]->getName() ); name = "EELDT led quality L2 " + Numbers::sEE(ism); meg02_[ism-1] = dqmStore_->book2D(name, name, 50, Numbers::ix0EE(ism)+0., Numbers::ix0EE(ism)+50., 50, Numbers::iy0EE(ism)+0., Numbers::iy0EE(ism)+50.); meg02_[ism-1]->setAxisTitle("ix", 1); if ( ism >= 1 && ism <= 9 ) meg02_[ism-1]->setAxisTitle("101-ix", 1); meg02_[ism-1]->setAxisTitle("iy", 2); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { if ( meg05_[ism-1] ) dqmStore_->removeElement( meg05_[ism-1]->getName() ); name = "EELDT led quality L1 PNs G01 " + Numbers::sEE(ism); meg05_[ism-1] = dqmStore_->book2D(name, name, 10, 0., 10., 1, 0., 5.); meg05_[ism-1]->setAxisTitle("pseudo-strip", 1); meg05_[ism-1]->setAxisTitle("channel", 2); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { if ( meg06_[ism-1] ) dqmStore_->removeElement( meg06_[ism-1]->getName() ); name = "EELDT led quality L2 PNs G01 " + Numbers::sEE(ism); meg06_[ism-1] = dqmStore_->book2D(name, name, 10, 0., 10., 1, 0., 5.); meg06_[ism-1]->setAxisTitle("pseudo-strip", 1); meg06_[ism-1]->setAxisTitle("channel", 2); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { if ( meg09_[ism-1] ) dqmStore_->removeElement( meg09_[ism-1]->getName() ); name = "EELDT led quality L1 PNs G16 " + Numbers::sEE(ism); meg09_[ism-1] = dqmStore_->book2D(name, name, 10, 0., 10., 1, 0., 5.); meg09_[ism-1]->setAxisTitle("pseudo-strip", 1); meg09_[ism-1]->setAxisTitle("channel", 2); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { if ( meg10_[ism-1] ) dqmStore_->removeElement( meg10_[ism-1]->getName() ); name = "EELDT led quality L2 PNs G16 " + Numbers::sEE(ism); meg10_[ism-1] = dqmStore_->book2D(name, name, 10, 0., 10., 1, 0., 5.); meg10_[ism-1]->setAxisTitle("pseudo-strip", 1); meg10_[ism-1]->setAxisTitle("channel", 2); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { if ( mea01_[ism-1] ) dqmStore_->removeElement( mea01_[ism-1]->getName() );; name = "EELDT amplitude L1 " + Numbers::sEE(ism); mea01_[ism-1] = dqmStore_->book1D(name, name, 850, 0., 850.); mea01_[ism-1]->setAxisTitle("channel", 1); mea01_[ism-1]->setAxisTitle("amplitude", 2); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { if ( mea02_[ism-1] ) dqmStore_->removeElement( mea02_[ism-1]->getName() ); name = "EELDT amplitude L2 " + Numbers::sEE(ism); mea02_[ism-1] = dqmStore_->book1D(name, name, 850, 0., 850.); mea02_[ism-1]->setAxisTitle("channel", 1); mea02_[ism-1]->setAxisTitle("amplitude", 2); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { if ( met01_[ism-1] ) dqmStore_->removeElement( met01_[ism-1]->getName() ); name = "EELDT led timing L1 " + Numbers::sEE(ism); met01_[ism-1] = dqmStore_->book1D(name, name, 850, 0., 850.); met01_[ism-1]->setAxisTitle("channel", 1); met01_[ism-1]->setAxisTitle("jitter", 2); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { if ( met02_[ism-1] ) dqmStore_->removeElement( met02_[ism-1]->getName() ); name = "EELDT led timing L2 " + Numbers::sEE(ism); met02_[ism-1] = dqmStore_->book1D(name, name, 850, 0., 850.); met02_[ism-1]->setAxisTitle("channel", 1); met02_[ism-1]->setAxisTitle("jitter", 2); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { if ( metav01_[ism-1] ) dqmStore_->removeElement( metav01_[ism-1]->getName() ); name = "EELDT led timing mean L1 " + Numbers::sEE(ism); metav01_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.); metav01_[ism-1]->setAxisTitle("mean", 1); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { if ( metav02_[ism-1] ) dqmStore_->removeElement( metav02_[ism-1]->getName() ); name = "EELDT led timing mean L2 " + Numbers::sEE(ism); metav02_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.); metav02_[ism-1]->setAxisTitle("mean", 1); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { if ( metrms01_[ism-1] ) dqmStore_->removeElement( metrms01_[ism-1]->getName() ); name = "EELDT led timing rms L1 " + Numbers::sEE(ism); metrms01_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 0.5); metrms01_[ism-1]->setAxisTitle("rms", 1); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { if ( metrms02_[ism-1] ) dqmStore_->removeElement( metrms02_[ism-1]->getName() ); name = "EELDT led timing rms L2 " + Numbers::sEE(ism); metrms02_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 0.5); metrms02_[ism-1]->setAxisTitle("rms", 1); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { if ( meaopn01_[ism-1] ) dqmStore_->removeElement( meaopn01_[ism-1]->getName() ); name = "EELDT amplitude over PN L1 " + Numbers::sEE(ism); meaopn01_[ism-1] = dqmStore_->book1D(name, name, 850, 0., 850.); meaopn01_[ism-1]->setAxisTitle("channel", 1); meaopn01_[ism-1]->setAxisTitle("amplitude/PN", 2); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { if ( meaopn02_[ism-1] ) dqmStore_->removeElement( meaopn02_[ism-1]->getName() ); name = "EELDT amplitude over PN L2 " + Numbers::sEE(ism); meaopn02_[ism-1] = dqmStore_->book1D(name, name, 850, 0., 850.); meaopn02_[ism-1]->setAxisTitle("channel", 1); meaopn02_[ism-1]->setAxisTitle("amplitude/PN", 2); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { if ( mepnprms01_[ism-1] ) dqmStore_->removeElement( mepnprms01_[ism-1]->getName() ); name = "EELDT PNs pedestal rms " + Numbers::sEE(ism) + " G01 L1"; mepnprms01_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.); mepnprms01_[ism-1]->setAxisTitle("rms", 1); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { if ( mepnprms02_[ism-1] ) dqmStore_->removeElement( mepnprms02_[ism-1]->getName() ); name = "EELDT PNs pedestal rms " + Numbers::sEE(ism) + " G01 L2"; mepnprms02_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.); mepnprms02_[ism-1]->setAxisTitle("rms", 1); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { if ( mepnprms05_[ism-1] ) dqmStore_->removeElement( mepnprms05_[ism-1]->getName() ); name = "EELDT PNs pedestal rms " + Numbers::sEE(ism) + " G16 L1"; mepnprms05_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.); mepnprms05_[ism-1]->setAxisTitle("rms", 1); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { if ( mepnprms06_[ism-1] ) dqmStore_->removeElement( mepnprms06_[ism-1]->getName() ); name = "EELDT PNs pedestal rms " + Numbers::sEE(ism) + " G16 L2"; mepnprms06_[ism-1] = dqmStore_->book1D(name, name, 100, 0., 10.); mepnprms06_[ism-1]->setAxisTitle("rms", 1); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 1) != ledWavelengths_.end() ) { if ( me_hs01_[ism-1] ) dqmStore_->removeElement( me_hs01_[ism-1]->getName() ); name = "EELDT led shape L1 " + Numbers::sEE(ism); me_hs01_[ism-1] = dqmStore_->book1D(name, name, 10, 0., 10.); me_hs01_[ism-1]->setAxisTitle("sample", 1); me_hs01_[ism-1]->setAxisTitle("amplitude", 2); } if ( find(ledWavelengths_.begin(), ledWavelengths_.end(), 2) != ledWavelengths_.end() ) { if ( me_hs02_[ism-1] ) dqmStore_->removeElement( me_hs02_[ism-1]->getName() ); name = "EELDT led shape L2 " + Numbers::sEE(ism); me_hs02_[ism-1] = dqmStore_->book1D(name, name, 10, 0., 10.); me_hs02_[ism-1]->setAxisTitle("sample", 1); me_hs02_[ism-1]->setAxisTitle("amplitude", 2); } } for ( unsigned int i=0; i<superModules_.size(); i++ ) { int ism = superModules_[i]; if ( meg01_[ism-1] ) meg01_[ism-1]->Reset(); if ( meg02_[ism-1] ) meg02_[ism-1]->Reset(); if ( meg05_[ism-1] ) meg05_[ism-1]->Reset(); if ( meg06_[ism-1] ) meg06_[ism-1]->Reset(); if ( meg09_[ism-1] ) meg09_[ism-1]->Reset(); if ( meg10_[ism-1] ) meg10_[ism-1]->Reset(); for ( int ix = 1; ix <= 50; ix++ ) { for ( int iy = 1; iy <= 50; iy++ ) { if ( meg01_[ism-1] ) meg01_[ism-1]->setBinContent( ix, iy, 6. ); if ( meg02_[ism-1] ) meg02_[ism-1]->setBinContent( ix, iy, 6. ); int jx = ix + Numbers::ix0EE(ism); int jy = iy + Numbers::iy0EE(ism); if ( ism >= 1 && ism <= 9 ) jx = 101 - jx; if ( Numbers::validEE(ism, jx, jy) ) { if ( meg01_[ism-1] ) meg01_[ism-1]->setBinContent( ix, iy, 2. ); if ( meg02_[ism-1] ) meg02_[ism-1]->setBinContent( ix, iy, 2. ); } } } for ( int i = 1; i <= 10; i++ ) { if ( meg05_[ism-1] ) meg05_[ism-1]->setBinContent( i, 1, 6. ); if ( meg06_[ism-1] ) meg06_[ism-1]->setBinContent( i, 1, 6. ); if ( meg09_[ism-1] ) meg09_[ism-1]->setBinContent( i, 1, 6. ); if ( meg10_[ism-1] ) meg10_[ism-1]->setBinContent( i, 1, 6. ); // non-existing mem if ( (ism >= 3 && ism <= 4) || (ism >= 7 && ism <= 9) ) continue; if ( (ism >= 12 && ism <= 13) || (ism >= 16 && ism <= 18) ) continue; if ( meg05_[ism-1] ) meg05_[ism-1]->setBinContent( i, 1, 2. ); if ( meg06_[ism-1] ) meg06_[ism-1]->setBinContent( i, 1, 2. ); if ( meg09_[ism-1] ) meg09_[ism-1]->setBinContent( i, 1, 2. ); if ( meg10_[ism-1] ) meg10_[ism-1]->setBinContent( i, 1, 2. ); } if ( mea01_[ism-1] ) mea01_[ism-1]->Reset(); if ( mea02_[ism-1] ) mea02_[ism-1]->Reset(); if ( met01_[ism-1] ) met01_[ism-1]->Reset(); if ( met02_[ism-1] ) met02_[ism-1]->Reset(); if ( metav01_[ism-1] ) metav01_[ism-1]->Reset(); if ( metav02_[ism-1] ) metav02_[ism-1]->Reset(); if ( metrms01_[ism-1] ) metrms01_[ism-1]->Reset(); if ( metrms02_[ism-1] ) metrms02_[ism-1]->Reset(); if ( meaopn01_[ism-1] ) meaopn01_[ism-1]->Reset(); if ( meaopn02_[ism-1] ) meaopn02_[ism-1]->Reset(); if ( mepnprms01_[ism-1] ) mepnprms01_[ism-1]->Reset(); if ( mepnprms02_[ism-1] ) mepnprms02_[ism-1]->Reset(); if ( mepnprms05_[ism-1] ) mepnprms05_[ism-1]->Reset(); if ( mepnprms06_[ism-1] ) mepnprms06_[ism-1]->Reset(); if ( me_hs01_[ism-1] ) me_hs01_[ism-1]->Reset(); if ( me_hs02_[ism-1] ) me_hs02_[ism-1]->Reset(); } }
friend class EESummaryClient [friend] |
Definition at line 34 of file EELedClient.h.
float EELedClient::amplitudeThreshold01_ [private] |
Definition at line 152 of file EELedClient.h.
Referenced by EELedClient().
float EELedClient::amplitudeThreshold03_ [private] |
Definition at line 152 of file EELedClient.h.
Referenced by EELedClient().
float EELedClient::amplitudeThresholdPnG01_ [private] |
Definition at line 157 of file EELedClient.h.
Referenced by analyze(), and EELedClient().
float EELedClient::amplitudeThresholdPnG16_ [private] |
Definition at line 158 of file EELedClient.h.
Referenced by analyze(), and EELedClient().
bool EELedClient::cloneME_ [private] |
Definition at line 79 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
bool EELedClient::debug_ [private] |
Definition at line 82 of file EELedClient.h.
Referenced by analyze(), beginJob(), beginRun(), EELedClient(), endJob(), and endRun().
DQMStore* EELedClient::dqmStore_ [private] |
Definition at line 91 of file EELedClient.h.
Referenced by analyze(), beginJob(), cleanup(), and setup().
bool EELedClient::enableCleanup_ [private] |
Definition at line 86 of file EELedClient.h.
Referenced by cleanup(), and EELedClient().
TProfile2D* EELedClient::h01_[18] [private] |
Definition at line 93 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
TProfile2D* EELedClient::h02_[18] [private] |
Definition at line 94 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
TProfile2D* EELedClient::h03_[18] [private] |
Definition at line 95 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
TProfile2D* EELedClient::h04_[18] [private] |
Definition at line 96 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
TProfile2D* EELedClient::h09_[18] [private] |
Definition at line 98 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
TProfile2D* EELedClient::h10_[18] [private] |
Definition at line 99 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
TProfile2D* EELedClient::hs01_[18] [private] |
Definition at line 101 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
TProfile2D* EELedClient::hs02_[18] [private] |
Definition at line 102 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
TProfile* EELedClient::i01_[18] [private] |
Definition at line 137 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
TProfile* EELedClient::i02_[18] [private] |
Definition at line 138 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
TProfile* EELedClient::i05_[18] [private] |
Definition at line 140 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
TProfile* EELedClient::i06_[18] [private] |
Definition at line 141 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
TProfile* EELedClient::i09_[18] [private] |
Definition at line 143 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
TProfile* EELedClient::i10_[18] [private] |
Definition at line 144 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
TProfile* EELedClient::i13_[18] [private] |
Definition at line 146 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
TProfile* EELedClient::i14_[18] [private] |
Definition at line 147 of file EELedClient.h.
Referenced by analyze(), cleanup(), and EELedClient().
int EELedClient::ievt_ [private] |
Definition at line 76 of file EELedClient.h.
Referenced by analyze(), beginJob(), endJob(), and getEvtPerJob().
int EELedClient::jevt_ [private] |
Definition at line 77 of file EELedClient.h.
Referenced by analyze(), beginJob(), beginRun(), endRun(), and getEvtPerRun().
std::vector<int> EELedClient::ledWavelengths_ [private] |
Definition at line 89 of file EELedClient.h.
Referenced by analyze(), EELedClient(), and setup().
MonitorElement* EELedClient::me_hs01_[18] [private] |
Definition at line 134 of file EELedClient.h.
Referenced by analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::me_hs02_[18] [private] |
Definition at line 135 of file EELedClient.h.
Referenced by analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::mea01_[18] [private] |
Definition at line 113 of file EELedClient.h.
Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::mea02_[18] [private] |
Definition at line 114 of file EELedClient.h.
Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::meaopn01_[18] [private] |
Definition at line 125 of file EELedClient.h.
Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::meaopn02_[18] [private] |
Definition at line 126 of file EELedClient.h.
Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::meg01_[18] [private] |
Definition at line 104 of file EELedClient.h.
Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::meg02_[18] [private] |
Definition at line 105 of file EELedClient.h.
Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::meg05_[18] [private] |
Definition at line 107 of file EELedClient.h.
Referenced by analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::meg06_[18] [private] |
Definition at line 108 of file EELedClient.h.
Referenced by analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::meg09_[18] [private] |
Definition at line 110 of file EELedClient.h.
Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::meg10_[18] [private] |
Definition at line 111 of file EELedClient.h.
Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::mepnprms01_[18] [private] |
Definition at line 128 of file EELedClient.h.
Referenced by analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::mepnprms02_[18] [private] |
Definition at line 129 of file EELedClient.h.
Referenced by analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::mepnprms05_[18] [private] |
Definition at line 131 of file EELedClient.h.
Referenced by analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::mepnprms06_[18] [private] |
Definition at line 132 of file EELedClient.h.
Referenced by analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::met01_[18] [private] |
Definition at line 116 of file EELedClient.h.
Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::met02_[18] [private] |
Definition at line 117 of file EELedClient.h.
Referenced by EESummaryClient::analyze(), analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::metav01_[18] [private] |
Definition at line 119 of file EELedClient.h.
Referenced by analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::metav02_[18] [private] |
Definition at line 120 of file EELedClient.h.
Referenced by analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::metrms01_[18] [private] |
Definition at line 122 of file EELedClient.h.
Referenced by analyze(), cleanup(), EELedClient(), and setup().
MonitorElement* EELedClient::metrms02_[18] [private] |
Definition at line 123 of file EELedClient.h.
Referenced by analyze(), cleanup(), EELedClient(), and setup().
float EELedClient::pedPnDiscrepancyMean_[2] [private] |
Definition at line 160 of file EELedClient.h.
Referenced by analyze(), and EELedClient().
float EELedClient::pedPnExpectedMean_[2] [private] |
Definition at line 159 of file EELedClient.h.
Referenced by analyze(), and EELedClient().
float EELedClient::pedPnRMSThreshold_[2] [private] |
Definition at line 161 of file EELedClient.h.
Referenced by analyze(), and EELedClient().
float EELedClient::percentVariation01_ [private] |
Definition at line 151 of file EELedClient.h.
Referenced by EELedClient().
float EELedClient::percentVariation03_ [private] |
Definition at line 151 of file EELedClient.h.
Referenced by EELedClient().
std::string EELedClient::prefixME_ [private] |
Definition at line 84 of file EELedClient.h.
Referenced by analyze(), cleanup(), EELedClient(), and setup().
float EELedClient::rmsThreshold01_ [private] |
Definition at line 153 of file EELedClient.h.
Referenced by analyze(), and EELedClient().
float EELedClient::rmsThreshold03_ [private] |
Definition at line 153 of file EELedClient.h.
Referenced by analyze(), and EELedClient().
std::vector<int> EELedClient::superModules_ [private] |
Definition at line 88 of file EELedClient.h.
Referenced by analyze(), cleanup(), EELedClient(), and setup().
bool EELedClient::verbose_ [private] |
Definition at line 81 of file EELedClient.h.
Referenced by EELedClient().