#include <EcalChannelStatusHandler.h>
Public Attributes | |
EcalCondDBInterface * | econn |
Private Attributes | |
std::ofstream * | daqFile |
std::ofstream * | daqFile2 |
EcalElectronicsMapping | ecalElectronicsMap_ |
bool | isEBRef1 [36][2] |
bool | isEBRef2 [36][2] |
bool | isEERef1 [18][2] |
bool | isEERef2 [18][2] |
bool | isGoodLaserEBSm [36][2] |
bool | isGoodLaserEESm [18][2] |
unsigned int | m_firstRun |
std::string | m_gentag |
unsigned int | m_lastRun |
std::string | m_location |
std::string | m_locationsource |
std::string | m_name |
std::string | m_pass |
std::string | m_runtype |
std::string | m_sid |
std::string | m_user |
std::map< DetId, float > | maskedLaserEB |
std::map< DetId, float > | maskedLaserEE |
std::map< DetId, float > | maskedOnlinePedEB |
std::map< DetId, float > | maskedOnlinePedEE |
std::map< DetId, float > | maskedPedEB |
std::map< DetId, float > | maskedPedEE |
std::map< DetId, float > | maskedPhysicsEB |
std::map< DetId, float > | maskedPhysicsEE |
TProfile2D * | newBadEB_ |
TProfile2D * | newBadEEM_ |
TProfile2D * | newBadEEP_ |
std::ofstream * | ResFileEB |
std::ofstream * | ResFileEE |
std::ofstream * | ResFileNewEB |
std::ofstream * | ResFileNewEE |
Additional Inherited Members | |
Public Types inherited from popcon::PopConSourceHandler< EcalChannelStatus > | |
typedef std::vector< Triplet > | Container |
typedef std::vector< std::pair< EcalChannelStatus *, cond::Time_t > > | OldContainer |
typedef PopConSourceHandler< EcalChannelStatus > | self |
typedef cond::Summary | Summary |
typedef cond::Time_t | Time_t |
typedef EcalChannelStatus | value_type |
Protected Member Functions inherited from popcon::PopConSourceHandler< EcalChannelStatus > | |
int | add (value_type *payload, Summary *summary, Time_t time) |
cond::persistency::Session & | dbSession () const |
Protected Attributes inherited from popcon::PopConSourceHandler< EcalChannelStatus > | |
OldContainer | m_to_transfer |
std::string | m_userTextLog |
Definition at line 71 of file EcalChannelStatusHandler.h.
popcon::EcalChannelStatusHandler::EcalChannelStatusHandler | ( | edm::ParameterSet const & | ) |
Definition at line 59 of file EcalChannelStatusHandler.cc.
References gather_cfg::cout, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), m_firstRun, m_gentag, m_lastRun, m_location, m_locationsource, m_name, m_pass, m_runtype, m_sid, m_user, and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
Definition at line 78 of file EcalChannelStatusHandler.cc.
float popcon::EcalChannelStatusHandler::checkPedestalRMSGain1 | ( | EcalPedestals::Item * | item | ) |
Definition at line 117 of file EcalChannelStatusHandler.cc.
References mps_fire::result, and EcalPedestal::rms_x1.
Referenced by pedAnalysis().
float popcon::EcalChannelStatusHandler::checkPedestalRMSGain12 | ( | EcalPedestals::Item * | item | ) |
Definition at line 105 of file EcalChannelStatusHandler.cc.
References mps_fire::result, and EcalPedestal::rms_x12.
Referenced by cosmicsAnalysis(), and pedAnalysis().
float popcon::EcalChannelStatusHandler::checkPedestalRMSGain6 | ( | EcalPedestals::Item * | item | ) |
Definition at line 111 of file EcalChannelStatusHandler.cc.
References mps_fire::result, and EcalPedestal::rms_x6.
Referenced by pedAnalysis().
float popcon::EcalChannelStatusHandler::checkPedestalValueGain1 | ( | EcalPedestals::Item * | item | ) |
Definition at line 99 of file EcalChannelStatusHandler.cc.
References EcalPedestal::mean_x1, and mps_fire::result.
Referenced by pedAnalysis().
float popcon::EcalChannelStatusHandler::checkPedestalValueGain12 | ( | EcalPedestals::Item * | item | ) |
Definition at line 87 of file EcalChannelStatusHandler.cc.
References EcalPedestal::mean_x12, and mps_fire::result.
Referenced by cosmicsAnalysis(), and pedAnalysis().
float popcon::EcalChannelStatusHandler::checkPedestalValueGain6 | ( | EcalPedestals::Item * | item | ) |
Definition at line 93 of file EcalChannelStatusHandler.cc.
References EcalPedestal::mean_x6, and mps_fire::result.
Referenced by pedAnalysis().
void popcon::EcalChannelStatusHandler::cosmicsAnalysis | ( | std::map< EcalLogicID, MonPedestalsOnlineDat > | pedestalO_mon, |
std::map< EcalLogicID, MonCrystalConsistencyDat > | wrongGain_mon, | ||
std::map< EcalLogicID, MonLaserBlueDat > | laser_mon, | ||
std::map< EcalLogicID, MonOccupancyDat > | occupancy_mon | ||
) |
Definition at line 802 of file EcalChannelStatusHandler.cc.
References checkPedestalRMSGain12(), checkPedestalValueGain12(), EcalElectronicsId::dccId(), ecalElectronicsMap_, HcalObjRepresent::Fill(), objects.autophobj::float, MonPedestalsOnlineDat::getADCMeanG12(), MonPedestalsOnlineDat::getADCRMSG12(), MonLaserBlueDat::getAPDMean(), EcalElectronicsMapping::getElectronicsId(), MonOccupancyDat::getEventsOverHighThreshold(), EcalLogicID::getID1(), EcalLogicID::getID2(), EcalLogicID::getID3(), EcalLogicID::getName(), MonCrystalConsistencyDat::getProblemsGainZero(), EBDetId::hashedIndex(), EEDetId::hashedIndex(), EBDetId::ic(), EBDetId::ieta(), EBDetId::iphi(), isGoodLaserEBSm, isGoodLaserEESm, EEDetId::ix(), EEDetId::iy(), laserMasking(), maskedLaserEB, maskedLaserEE, maskedOnlinePedEB, maskedOnlinePedEE, maskedPhysicsEB, maskedPhysicsEE, EcalPedestal::mean_x12, newBadEB_, newBadEEM_, newBadEEP_, AlCaHLTBitMon_ParallelJobs::p, pedOnlineMasking(), physicsMasking(), ResFileEB, ResFileEE, ResFileNewEB, ResFileNewEE, EcalPedestal::rms_x12, EBDetId::SMCRYSTALMODE, EcalElectronicsId::towerId(), EEDetId::validDetId(), and EEDetId::zside().
Referenced by getNewObjects().
void popcon::EcalChannelStatusHandler::daqOut | ( | const RunIOV & | myRun | ) |
Definition at line 415 of file EcalChannelStatusHandler.cc.
References daqFile, daqFile2, econn, EcalCondDBInterface::fetchConfigDataSet(), EcalCondDBInterface::fetchConfigSet(), EcalCondDBInterface::fetchDataSet(), ODFEDAQConfig::getBadTTId(), RunFEConfigDat::getConfigId(), EcalCondDBInterface::getEcalLogicIDSet(), EcalLogicID::getID1(), EcalLogicID::getLogicID(), EBDetId::hashedIndex(), EcalLogicID::NULLID, AlCaHLTBitMon_ParallelJobs::p, ODBadTTInfo::setId(), ODFEDAQConfig::setId(), and EBDetId::SMCRYSTALMODE.
Referenced by getNewObjects().
|
overridevirtual |
Implements popcon::PopConSourceHandler< EcalChannelStatus >.
Definition at line 1586 of file EcalChannelStatusHandler.cc.
References EnergyCorrector::c, cosmicsAnalysis(), gather_cfg::cout, daqFile, daqFile2, daqOut(), econn, Exception, EcalCondDBInterface::fetchDataSet(), EcalCondDBInterface::fetchMonRunList(), MonRunList::getRuns(), laserAnalysis(), cond::TagInfo_t::lastInterval, m_firstRun, m_gentag, m_lastRun, m_location, m_pass, m_runtype, m_sid, m_user, maskedLaserEB, maskedLaserEE, maskedOnlinePedEB, maskedOnlinePedEE, maskedPedEB, maskedPedEE, maskedPhysicsEB, maskedPhysicsEE, nBadLaserModules(), newBadEB_, newBadEEM_, newBadEEP_, MillePedeFileConverter_cfg::out, lumiCalc2::outfile, pedAnalysis(), EcalErrorMask::readDB(), ResFileEB, ResFileEE, ResFileNewEB, ResFileNewEE, RunTag::setGeneralTag(), MonRunTag::setGeneralTag(), LocationDef::setLocation(), RunTag::setLocationDef(), MonVersionDef::setMonitoringVersion(), MonRunList::setMonRunTag(), MonRunTag::setMonVersionDef(), MonRunList::setRunTag(), RunTypeDef::setRunType(), RunTag::setRunTypeDef(), and popcon::PopConSourceHandler< EcalChannelStatus >::tagInfo().
|
inlineoverridevirtual |
Implements popcon::PopConSourceHandler< EcalChannelStatus >.
Definition at line 81 of file EcalChannelStatusHandler.h.
void popcon::EcalChannelStatusHandler::laserAnalysis | ( | std::map< EcalLogicID, MonLaserBlueDat > | dataset_mon | ) |
Definition at line 684 of file EcalChannelStatusHandler.cc.
References EcalElectronicsId::dccId(), ecalElectronicsMap_, MonLaserBlueDat::getAPDMean(), EcalElectronicsMapping::getElectronicsId(), EcalLogicID::getID1(), EcalLogicID::getID2(), EcalLogicID::getID3(), EcalLogicID::getName(), EBDetId::hashedIndex(), EEDetId::hashedIndex(), EBDetId::ic(), isGoodLaserEBSm, isGoodLaserEESm, EEDetId::ix(), EEDetId::iy(), laserMasking(), maskedLaserEB, maskedLaserEE, AlCaHLTBitMon_ParallelJobs::p, ResFileEB, ResFileEE, ResFileNewEB, EBDetId::SMCRYSTALMODE, EcalElectronicsId::towerId(), EEDetId::validDetId(), and EEDetId::zside().
Referenced by getNewObjects().
void popcon::EcalChannelStatusHandler::laserMasking | ( | ) |
Definition at line 341 of file EcalChannelStatusHandler.cc.
References EcalErrorMask::fetchDataSet(), EcalLogicID::getID1(), EcalLogicID::getID2(), EcalLogicID::getID3(), EcalErrorDictionary::getMask(), EcalLogicID::getName(), funct::m, maskedLaserEB, maskedLaserEE, EBDetId::SMCRYSTALMODE, and EEDetId::validDetId().
Referenced by cosmicsAnalysis(), and laserAnalysis().
void popcon::EcalChannelStatusHandler::nBadLaserModules | ( | std::map< EcalLogicID, MonLaserBlueDat > | dataset_mon | ) |
Definition at line 130 of file EcalChannelStatusHandler.cc.
References EcalElectronicsId::dccId(), ecalElectronicsMap_, MonLaserBlueDat::getAPDMean(), EcalElectronicsMapping::getElectronicsId(), EcalLogicID::getID1(), EcalLogicID::getID2(), EcalLogicID::getID3(), EcalLogicID::getName(), isEBRef1, isEBRef2, isEERef1, isEERef2, isGoodLaserEBSm, isGoodLaserEESm, EEDetId::ix(), AlCaHLTBitMon_ParallelJobs::p, EBDetId::SMCRYSTALMODE, EcalElectronicsId::towerId(), and EEDetId::validDetId().
Referenced by getNewObjects().
void popcon::EcalChannelStatusHandler::pedAnalysis | ( | std::map< EcalLogicID, MonPedestalsDat > | dataset_mon, |
std::map< EcalLogicID, MonCrystalConsistencyDat > | wrongGain_mon | ||
) |
Definition at line 510 of file EcalChannelStatusHandler.cc.
References checkPedestalRMSGain1(), checkPedestalRMSGain12(), checkPedestalRMSGain6(), checkPedestalValueGain1(), checkPedestalValueGain12(), checkPedestalValueGain6(), EcalElectronicsId::dccId(), ecalElectronicsMap_, EcalElectronicsMapping::getElectronicsId(), EcalLogicID::getID1(), EcalLogicID::getID2(), EcalLogicID::getID3(), EcalLogicID::getName(), MonPedestalsDat::getPedMeanG1(), MonPedestalsDat::getPedMeanG12(), MonPedestalsDat::getPedMeanG6(), MonPedestalsDat::getPedRMSG1(), MonPedestalsDat::getPedRMSG12(), MonPedestalsDat::getPedRMSG6(), MonCrystalConsistencyDat::getProblemsGainZero(), EBDetId::hashedIndex(), EEDetId::hashedIndex(), EBDetId::ic(), EEDetId::ix(), EEDetId::iy(), maskedPedEB, maskedPedEE, EcalPedestal::mean_x1, EcalPedestal::mean_x12, EcalPedestal::mean_x6, AlCaHLTBitMon_ParallelJobs::p, pedMasking(), ResFileEB, ResFileEE, ResFileNewEB, ResFileNewEE, EcalPedestal::rms_x1, EcalPedestal::rms_x12, EcalPedestal::rms_x6, EBDetId::SMCRYSTALMODE, EEDetId::validDetId(), and EEDetId::zside().
Referenced by getNewObjects().
void popcon::EcalChannelStatusHandler::pedMasking | ( | ) |
Definition at line 297 of file EcalChannelStatusHandler.cc.
References EcalErrorMask::fetchDataSet(), EcalLogicID::getID1(), EcalLogicID::getID2(), EcalLogicID::getID3(), EcalErrorDictionary::getMask(), EcalLogicID::getName(), funct::m, maskedPedEB, maskedPedEE, EBDetId::SMCRYSTALMODE, and EEDetId::validDetId().
Referenced by pedAnalysis().
void popcon::EcalChannelStatusHandler::pedOnlineMasking | ( | ) |
Definition at line 261 of file EcalChannelStatusHandler.cc.
References EcalErrorMask::fetchDataSet(), EcalLogicID::getID1(), EcalLogicID::getID2(), EcalLogicID::getID3(), EcalErrorDictionary::getMask(), EcalLogicID::getName(), funct::m, maskedOnlinePedEB, maskedOnlinePedEE, EBDetId::SMCRYSTALMODE, and EEDetId::validDetId().
Referenced by cosmicsAnalysis().
void popcon::EcalChannelStatusHandler::physicsMasking | ( | ) |
Definition at line 379 of file EcalChannelStatusHandler.cc.
References EcalErrorMask::fetchDataSet(), EcalLogicID::getID1(), EcalLogicID::getID2(), EcalLogicID::getID3(), EcalErrorDictionary::getMask(), EcalLogicID::getName(), funct::m, maskedPhysicsEB, maskedPhysicsEE, EBDetId::SMCRYSTALMODE, and EEDetId::validDetId().
Referenced by cosmicsAnalysis().
void popcon::EcalChannelStatusHandler::setElectronicsMap | ( | const EcalElectronicsMapping * | theEcalElectronicsMap | ) |
Definition at line 1918 of file EcalChannelStatusHandler.cc.
References ecalElectronicsMap_.
Referenced by ExTestEcalChannelStatusAnalyzer::endJob().
|
private |
Definition at line 137 of file EcalChannelStatusHandler.h.
Referenced by daqOut(), and getNewObjects().
|
private |
Definition at line 138 of file EcalChannelStatusHandler.h.
Referenced by daqOut(), and getNewObjects().
|
private |
Definition at line 131 of file EcalChannelStatusHandler.h.
Referenced by cosmicsAnalysis(), laserAnalysis(), nBadLaserModules(), pedAnalysis(), and setElectronicsMap().
EcalCondDBInterface* popcon::EcalChannelStatusHandler::econn |
Definition at line 82 of file EcalChannelStatusHandler.h.
Referenced by daqOut(), and getNewObjects().
|
private |
Definition at line 126 of file EcalChannelStatusHandler.h.
Referenced by nBadLaserModules().
|
private |
Definition at line 127 of file EcalChannelStatusHandler.h.
Referenced by nBadLaserModules().
|
private |
Definition at line 128 of file EcalChannelStatusHandler.h.
Referenced by nBadLaserModules().
|
private |
Definition at line 129 of file EcalChannelStatusHandler.h.
Referenced by nBadLaserModules().
|
private |
Definition at line 124 of file EcalChannelStatusHandler.h.
Referenced by cosmicsAnalysis(), laserAnalysis(), and nBadLaserModules().
|
private |
Definition at line 125 of file EcalChannelStatusHandler.h.
Referenced by cosmicsAnalysis(), laserAnalysis(), and nBadLaserModules().
|
private |
Definition at line 112 of file EcalChannelStatusHandler.h.
Referenced by EcalChannelStatusHandler(), and getNewObjects().
|
private |
Definition at line 116 of file EcalChannelStatusHandler.h.
Referenced by EcalChannelStatusHandler(), and getNewObjects().
|
private |
Definition at line 113 of file EcalChannelStatusHandler.h.
Referenced by EcalChannelStatusHandler(), and getNewObjects().
|
private |
Definition at line 115 of file EcalChannelStatusHandler.h.
Referenced by EcalChannelStatusHandler(), and getNewObjects().
|
private |
Definition at line 121 of file EcalChannelStatusHandler.h.
Referenced by EcalChannelStatusHandler().
|
private |
Definition at line 122 of file EcalChannelStatusHandler.h.
Referenced by EcalChannelStatusHandler().
|
private |
Definition at line 120 of file EcalChannelStatusHandler.h.
Referenced by EcalChannelStatusHandler(), and getNewObjects().
|
private |
Definition at line 117 of file EcalChannelStatusHandler.h.
Referenced by EcalChannelStatusHandler(), and getNewObjects().
|
private |
Definition at line 118 of file EcalChannelStatusHandler.h.
Referenced by EcalChannelStatusHandler(), and getNewObjects().
|
private |
Definition at line 119 of file EcalChannelStatusHandler.h.
Referenced by EcalChannelStatusHandler(), and getNewObjects().
|
private |
Definition at line 142 of file EcalChannelStatusHandler.h.
Referenced by cosmicsAnalysis(), getNewObjects(), laserAnalysis(), and laserMasking().
|
private |
Definition at line 142 of file EcalChannelStatusHandler.h.
Referenced by cosmicsAnalysis(), getNewObjects(), laserAnalysis(), and laserMasking().
|
private |
Definition at line 140 of file EcalChannelStatusHandler.h.
Referenced by cosmicsAnalysis(), getNewObjects(), and pedOnlineMasking().
|
private |
Definition at line 140 of file EcalChannelStatusHandler.h.
Referenced by cosmicsAnalysis(), getNewObjects(), and pedOnlineMasking().
|
private |
Definition at line 141 of file EcalChannelStatusHandler.h.
Referenced by getNewObjects(), pedAnalysis(), and pedMasking().
|
private |
Definition at line 141 of file EcalChannelStatusHandler.h.
Referenced by getNewObjects(), pedAnalysis(), and pedMasking().
|
private |
Definition at line 143 of file EcalChannelStatusHandler.h.
Referenced by cosmicsAnalysis(), getNewObjects(), and physicsMasking().
|
private |
Definition at line 143 of file EcalChannelStatusHandler.h.
Referenced by cosmicsAnalysis(), getNewObjects(), and physicsMasking().
|
private |
Definition at line 145 of file EcalChannelStatusHandler.h.
Referenced by cosmicsAnalysis(), and getNewObjects().
|
private |
Definition at line 147 of file EcalChannelStatusHandler.h.
Referenced by cosmicsAnalysis(), and getNewObjects().
|
private |
Definition at line 146 of file EcalChannelStatusHandler.h.
Referenced by cosmicsAnalysis(), and getNewObjects().
|
private |
Definition at line 133 of file EcalChannelStatusHandler.h.
Referenced by cosmicsAnalysis(), getNewObjects(), laserAnalysis(), and pedAnalysis().
|
private |
Definition at line 134 of file EcalChannelStatusHandler.h.
Referenced by cosmicsAnalysis(), getNewObjects(), laserAnalysis(), and pedAnalysis().
|
private |
Definition at line 135 of file EcalChannelStatusHandler.h.
Referenced by cosmicsAnalysis(), getNewObjects(), laserAnalysis(), and pedAnalysis().
|
private |
Definition at line 136 of file EcalChannelStatusHandler.h.
Referenced by cosmicsAnalysis(), getNewObjects(), and pedAnalysis().