Implements popcon::PopConSourceHandler< EcalTPGTPMode >.
Definition at line 46 of file EcalTPGTPModeHandler.cc.
54 edm::LogInfo(
"EcalTPGTPModeHandler") <<
"Started GetNewObjects!!!";
59 std::cout <<
"got offlineInfo = " << std::endl;
63 std::cout <<
" First object for this tag " << std::endl;
66 unsigned int max_since = 0;
67 max_since = static_cast<unsigned int>(
tagInfo().lastInterval.since);
68 edm::LogInfo(
"EcalTPGTPModeHandler") <<
"max_since : " << max_since;
70 edm::LogInfo(
"EcalTPGTPModeHandler") <<
"retrieved last payload ";
74 edm::LogInfo(
"EcalTPGTPModeHandler") <<
"Retrieving run list from ONLINE DB ... ";
76 edm::LogInfo(
"EcalTPGTPModeHandler") <<
"Making connection...";
107 if (min_run < max_since) {
108 min_run = max_since + 1;
115 edm::LogInfo(
"EcalTPGTPModeHandler") <<
"min_run= " << min_run <<
" max_run= " << max_run;
121 std::vector<RunIOV> run_vec = my_list.
getRuns();
122 size_t num_runs = run_vec.size();
124 std::cout <<
"number of runs is : " << num_runs << std::endl;
126 unsigned int irun = 0;
128 for (
size_t kr = 0; kr < run_vec.size(); kr++) {
129 irun = static_cast<unsigned int>(run_vec[kr].
getRunNumber());
131 std::cout <<
" **************** " << std::endl;
132 std::cout <<
" **************** " << std::endl;
133 std::cout <<
" run= " << irun << std::endl;
136 std::map<EcalLogicID, RunTPGConfigDat>
dataset;
140 int the_config_version = 0;
142 std::map<EcalLogicID, RunTPGConfigDat>::const_iterator it;
155 std::cout <<
" run= " << irun <<
" tag " << the_config_tag <<
" version=" << the_config_version << std::endl;
160 std::cout <<
"the tag is different from last transferred run ... retrieving last config set from DB"
168 std::cout <<
" before fetch config set" << std::endl;
170 std::cout <<
" after fetch config set" << std::endl;
176 fe_odd_weight_info.
setId(wId);
178 std::map<EcalLogicID, FEConfigOddWeightModeDat> dataset_mode;
181 typedef std::map<EcalLogicID, FEConfigOddWeightModeDat>::const_iterator CIfem;
184 int rd_modev[19] = {0};
186 for (CIfem
p = dataset_mode.begin();
p != dataset_mode.end();
p++) {
203 std::cout <<
"here is the value for the weight mode: " << std::endl
204 <<
" EnableEBOddFilter:" << rd_modev[0] << std::endl
205 <<
" EnableEEOddFilter:" << rd_modev[1] << std::endl
206 <<
" EnableEBOddPeakFinder:" << rd_modev[2] << std::endl
207 <<
" EnableEEOddPeakFinder:" << rd_modev[3] << std::endl
208 <<
" DisableEBEvenPeakFinder:" << rd_modev[4] << std::endl
209 <<
" DisableEEEvenPeakFinder:" << rd_modev[5] << std::endl
210 <<
" FenixEBStripOutput:" << rd_modev[6] << std::endl
211 <<
" FenixEEStripOutput:" << rd_modev[7] << std::endl
212 <<
" FenixEBStripInfobit2:" << rd_modev[8] << std::endl
213 <<
" FenixEEStripInfobit2:" << rd_modev[9] << std::endl
214 <<
" FenixEBTcpOutput:" << rd_modev[10] << std::endl
215 <<
" FenixEBTcpinfobit1:" << rd_modev[11] << std::endl
216 <<
" FenixEETcpOutput:" << rd_modev[12] << std::endl
217 <<
" FenixEETcpinfobit1:" << rd_modev[13] << std::endl;
221 std::cout <<
"*****************************************" << std::endl;
222 std::cout <<
"read done " << wId << std::endl;
223 std::cout <<
"*****************************************" << std::endl;
252 writeFile(
"last_tpg_TPMode_settings.txt");
259 writeFile(
"last_tpg_TPMode_settings.txt");
262 <<
" even if the tag/version is not the same, the weight group id is the same -> no transfer needed "
269 std::cout <<
"ERROR: THIS CONFIG DOES NOT EXIST: tag=" << the_config_tag
270 <<
" version=" << the_config_version << std::endl;
274 std::cout <<
" **************** " << std::endl;
276 }
else if (
nr == 0) {
278 std::cout <<
" no tag saved to RUN_TPGCONFIG_DAT by EcalSupervisor -> no transfer needed " << std::endl;
279 std::cout <<
" **************** " << std::endl;
284 std::cout <<
" the tag/version is the same -> no transfer needed " << std::endl;
285 std::cout <<
" **************** " << std::endl;
286 writeFile(
"last_tpg_TPMode_settings.txt");
293 edm::LogInfo(
"EcalTPGTPModeHandler") <<
"Ecal - > end of getNewObjects -----------";
References gather_cfg::cout, writedatasetfile::dataset, EcalTPGTPMode::DisableEBEvenPeakFinder, EcalTPGTPMode::DisableEEEvenPeakFinder, MillePedeFileConverter_cfg::e, EcalTPGTPMode::EBFenixTcpInfobit1, EcalTPGTPMode::EBFenixTcpOutput, test_db_connect::econn, EcalTPGTPMode::EEFenixTcpInfobit1, EcalTPGTPMode::EEFenixTcpOutput, EcalTPGTPMode::EnableEBOddFilter, EcalTPGTPMode::EnableEBOddPeakFinder, EcalTPGTPMode::EnableEEOddFilter, EcalTPGTPMode::EnableEEOddPeakFinder, cppFunctionSkipper::exception, Exception, EcalTPGTPMode::FenixEBStripInfobit2, EcalTPGTPMode::FenixEBStripOutput, EcalTPGTPMode::FenixEEStripInfobit2, EcalTPGTPMode::FenixEEStripOutput, EcalTPGTPMode::FenixPar15, EcalTPGTPMode::FenixPar16, EcalTPGTPMode::FenixPar17, EcalTPGTPMode::FenixPar18, RunTPGConfigDat::getConfigTag(), FEConfigOddWeightModeDat::getDisableEBEvenPeakFinder(), FEConfigOddWeightModeDat::getDisableEEEvenPeakFinder(), FEConfigOddWeightModeDat::getEnableEBOddFilter(), FEConfigOddWeightModeDat::getEnableEBOddPeakFinder(), FEConfigOddWeightModeDat::getEnableEEOddFilter(), FEConfigOddWeightModeDat::getEnableEEOddPeakFinder(), FEConfigOddWeightModeDat::getFenixEBStripInfobit2(), FEConfigOddWeightModeDat::getFenixEBStripOutput(), FEConfigOddWeightModeDat::getFenixEBTcpInfobit1(), FEConfigOddWeightModeDat::getFenixEBTcpOutput(), FEConfigOddWeightModeDat::getFenixEEStripInfobit2(), FEConfigOddWeightModeDat::getFenixEEStripOutput(), FEConfigOddWeightModeDat::getFenixEETcpInfobit1(), FEConfigOddWeightModeDat::getFenixEETcpOutput(), DeadROCCounter::getRunNumber(), RunList::getRuns(), RunTPGConfigDat::getVersion(), FEConfigMainInfo::getWei2Id(), dqmdumpme::k, test_db_connect::my_locdef, test_db_connect::my_rundef, EgHLTOffHistBins_cfi::nr, AlCaHLTBitMon_ParallelJobs::p, l1tpf_impl::readFromFile(), IODConfig::setConfigTag(), RunTag::setGeneralTag(), FEConfigOddWeightInfo::setId(), RunTag::setLocationDef(), RunTag::setRunTypeDef(), FEConfigMainInfo::setVersion(), findQualityFiles::size, AlCaHLTBitMon_QueryRunRegistry::string, and dumpRecoGeometry_cfg::tagInfo.