Implements popcon::PopConSourceHandler< EcalTPGFineGrainEBGroup >.
Definition at line 40 of file EcalTPGFineGrainEBGroupHandler.cc.
41 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"Started GetNewObjects!!!";
46 std::cout <<
"got offlineInfo = " << std::endl;
50 std::cout <<
" First object for this tag " << std::endl;
53 unsigned int max_since = 0;
54 max_since = static_cast<unsigned int>(
tagInfo().lastInterval.since);
55 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"max_since : " << max_since;
58 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"retrieved last payload ";
61 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"Retrieving run list from ONLINE DB ... ";
63 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"Making connection...";
65 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"Done.";
93 if (min_run < max_since) {
94 min_run = max_since + 1;
101 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"min_run= " << min_run <<
" max_run= " << max_run;
106 printf(
"after fetchRunList\n");
109 std::vector<RunIOV> run_vec = my_list.
getRuns();
110 size_t num_runs = run_vec.size();
112 std::cout <<
"number of runs is : " << num_runs << std::endl;
116 for (
size_t kr = 0; kr < run_vec.size(); kr++) {
117 irun = static_cast<unsigned int>(run_vec[kr].
getRunNumber());
119 std::cout <<
" **************** " << std::endl;
120 std::cout <<
" **************** " << std::endl;
121 std::cout <<
" run= " << irun << std::endl;
124 std::map<EcalLogicID, RunTPGConfigDat>
dataset;
128 int the_config_version = 0;
130 std::map<EcalLogicID, RunTPGConfigDat>::const_iterator it;
143 std::cout <<
" run= " << irun <<
" tag " << the_config_tag <<
" version=" << the_config_version << std::endl;
148 std::cout <<
"the tag is different from last transferred run ... retrieving last config set from DB"
156 std::cout <<
" before fetch config set" << std::endl;
158 std::cout <<
" after fetch config set" << std::endl;
161 int fgrId = fe_main_info.
getFgrId();
165 fe_fgr_info.
setId(fgrId);
167 std::map<EcalLogicID, FEConfigFgrDat> dataset_TpgFineGrainEB;
171 typedef std::map<EcalLogicID, FEConfigFgrDat>::const_iterator CIfefgr;
176 for (CIfefgr
p = dataset_TpgFineGrainEB.begin();
p != dataset_TpgFineGrainEB.end();
p++) {
182 if (ecid_name ==
"EB_trigger_tower") {
184 int smid = ecid_xt.
getID1();
186 int towerid = ecid_xt.
getID2();
200 int tow_eta = (towerid - 1) / 4;
201 int tow_phi = ((towerid - 1) - tow_eta * 4);
203 int axt = (tow_eta * 5) * 20 + tow_phi * 5 + 1;
222 writeFile(
"last_tpg_fgrGroup_settings.txt");
229 writeFile(
"last_tpg_fgrGroup_settings.txt");
231 std::cout <<
" even if the tag/version is not the same, the fgrGroup id is the same -> no transfer needed "
238 std::cout <<
"ERROR: THIS CONFIG DOES NOT EXIST: tag=" << the_config_tag <<
" version=" << the_config_version
243 std::cout <<
" **************** " << std::endl;
245 }
else if (
nr == 0) {
247 std::cout <<
" no tag saved to RUN_TPGCONFIG_DAT by EcalSupervisor -> no transfer needed " << std::endl;
248 std::cout <<
" **************** " << std::endl;
253 std::cout <<
" the tag/version is the same -> no transfer needed " << std::endl;
254 std::cout <<
" **************** " << std::endl;
255 writeFile(
"last_tpg_fgrGroup_settings.txt");
261 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"Ecal - > end of getNewObjects -----------";
References gather_cfg::cout, writedatasetfile::dataset, MillePedeFileConverter_cfg::e, test_db_connect::econn, cppFunctionSkipper::exception, Exception, RunTPGConfigDat::getConfigTag(), FEConfigFgrDat::getFgrGroupId(), FEConfigMainInfo::getFgrId(), EcalLogicID::getID1(), EcalLogicID::getID2(), EcalLogicID::getName(), DeadROCCounter::getRunNumber(), RunList::getRuns(), RunTPGConfigDat::getVersion(), triggerObjects_cff::id, test_db_connect::my_locdef, test_db_connect::my_rundef, EgHLTOffHistBins_cfi::nr, AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), l1tpf_impl::readFromFile(), IODConfig::setConfigTag(), RunTag::setGeneralTag(), FEConfigFgrInfo::setId(), RunTag::setLocationDef(), RunTag::setRunTypeDef(), EcalTPGGroups::setValue(), FEConfigMainInfo::setVersion(), findQualityFiles::size, EBDetId::SMCRYSTALMODE, mps_setup::stdout, AlCaHLTBitMon_QueryRunRegistry::string, and dumpRecoGeometry_cfg::tagInfo.