Implements popcon::PopConSourceHandler< EcalTPGStripStatus >.
Definition at line 42 of file EcalTPGBadStripHandler.cc.
43 edm::LogInfo(
"EcalTPGBadStripHandler") <<
"Started GetNewObjects!!!";
45 unsigned int max_since = 0;
46 max_since = static_cast<unsigned int>(
tagInfo().lastInterval.since);
47 edm::LogInfo(
"EcalTPGBadStripHandler") <<
"max_since : " << max_since;
48 edm::LogInfo(
"EcalTPGBadStripHandler") <<
"retrieved last payload ";
51 edm::LogInfo(
"EcalTPGBadStripHandler") <<
"Retrieving run list from ONLINE DB ... ";
53 edm::LogInfo(
"EcalTPGBadStripHandler") <<
"Making connection...";
82 if (min_run < max_since) {
83 min_run = max_since + 1;
90 edm::LogInfo(
"EcalTPGBadStripHandler") <<
"min_run= " << min_run <<
"max_run= " << max_run;
96 std::vector<RunIOV> run_vec = my_list.
getRuns();
97 size_t num_runs = run_vec.size();
99 std::cout <<
"number of runs is : " << num_runs << std::endl;
103 unsigned int irun = 0;
107 std::vector<EcalLogicID> my_StripEcalLogicId_EE;
115 "EE_offline_stripid",
118 std::cout <<
" GOT the logic ID for the EE trigger strips " << std::endl;
120 for (
size_t kr = 0; kr < run_vec.size(); kr++) {
121 irun = static_cast<unsigned int>(run_vec[kr].
getRunNumber());
123 std::cout <<
" **************** " << std::endl;
124 std::cout <<
" **************** " << std::endl;
125 std::cout <<
" run= " << irun << std::endl;
128 std::map<EcalLogicID, RunTPGConfigDat>
dataset;
132 int the_config_version = 0;
134 std::map<EcalLogicID, RunTPGConfigDat>::const_iterator it;
148 std::cout <<
" run= " << irun <<
" tag " << the_config_tag <<
" version=" << the_config_version << std::endl;
153 std::cout <<
" run= " << irun <<
" tag " << the_config_tag <<
" version=" << the_config_version << std::endl;
154 std::cout <<
"the tag is different from last transferred run ... retrieving last config set from DB"
165 int badstripId = fe_main_info.
getBstId();
169 fe_badStrip_info.
setId(badstripId);
173 std::vector<FEConfigBadStripDat> dataset_TpgBadStrip;
178 typedef std::vector<FEConfigBadStripDat>::const_iterator CIfeped;
186 for (CIfeped
p = dataset_TpgBadStrip.begin();
p != dataset_TpgBadStrip.end();
p++) {
190 int tcc_num = rd_badStrip.
getTCCId();
191 int tt_num = rd_badStrip.
getTTId();
199 bool set_the_strip =
false;
200 for (
size_t istrip = 0; istrip < my_StripEcalLogicId_EE.size(); istrip++) {
201 if (!set_the_strip) {
202 if (my_StripEcalLogicId_EE[istrip].getID1() == tcc_num &&
203 my_StripEcalLogicId_EE[istrip].getID2() == tt_num &&
204 my_StripEcalLogicId_EE[istrip].getID3() == strip_num) {
205 stripid = my_StripEcalLogicId_EE[istrip].getLogicID();
207 set_the_strip =
true;
223 edm::LogInfo(
"EcalTPGBadStripHandler") <<
"Finished badStrip reading.";
234 writeFile(
"last_tpg_badStrip_settings.txt");
241 writeFile(
"last_tpg_badStrip_settings.txt");
249 std::cout <<
"ERROR: THIS CONFIG DOES NOT EXIST: tag=" << the_config_tag <<
" version=" << the_config_version
255 }
else if (
nr == 0) {
263 writeFile(
"last_tpg_badStrip_settings.txt");
270 edm::LogInfo(
"EcalTPGBadStripHandler") <<
"Ecal - > end of getNewObjects -----------";
References gather_cfg::cout, writedatasetfile::dataset, MillePedeFileConverter_cfg::e, test_db_connect::econn, cppFunctionSkipper::exception, Exception, FEConfigMainInfo::getBstId(), RunTPGConfigDat::getConfigTag(), DeadROCCounter::getRunNumber(), RunList::getRuns(), FEConfigBadStripDat::getStatus(), FEConfigBadStripDat::getStripId(), FEConfigBadStripDat::getTCCId(), FEConfigBadStripDat::getTTId(), RunTPGConfigDat::getVersion(), test_db_connect::my_locdef, test_db_connect::my_rundef, EgHLTOffHistBins_cfi::nr, AlCaHLTBitMon_ParallelJobs::p, l1tpf_impl::readFromFile(), IODConfig::setConfigTag(), RunTag::setGeneralTag(), FEConfigBadStripInfo::setId(), RunTag::setLocationDef(), RunTag::setRunTypeDef(), EcalTPGStripStatus::setValue(), FEConfigMainInfo::setVersion(), str, AlCaHLTBitMon_QueryRunRegistry::string, and dumpRecoGeometry_cfg::tagInfo.