Implements popcon::PopConSourceHandler< EcalTPGLinearizationConst >.
Definition at line 40 of file EcalTPGLinConstHandler.cc.
41 edm::LogInfo(
"EcalTPGLinConstHandler") <<
"Started getNewObjects";
45 std::cout <<
"got offlineInfo = " << std::endl;
49 std::cout <<
" First object for this tag " << std::endl;
52 unsigned int max_since = 0;
53 max_since = static_cast<unsigned int>(
tagInfo().lastInterval.since);
54 edm::LogInfo(
"EcalTPGLinConstHandler") <<
"max_since = " << max_since;
55 edm::LogInfo(
"EcalTPGLinConstHandler") <<
"Retrieved last payload ";
58 edm::LogInfo(
"EcalTPGLinConstHandler") <<
"Retrieving run list from ONLINE DB ... " << std::endl;
60 edm::LogInfo(
"EcalTPGLinConstHandler") <<
"Making connection..." << std::flush;
62 edm::LogInfo(
"EcalTPGLinConstHandler") <<
"Done." << std::endl;
91 if (min_run < max_since) {
92 min_run = max_since + 1;
99 edm::LogInfo(
"EcalTPGLinConstHandler") <<
"min_run= " << min_run <<
"max_run = " << max_run;
105 std::vector<RunIOV> run_vec = my_list.
getRuns();
106 size_t num_runs = run_vec.size();
108 std::cout <<
"number of runs is : " << num_runs << std::endl;
110 unsigned int irun = 0;
112 for (
size_t kr = 0; kr < run_vec.size(); kr++) {
113 irun = static_cast<unsigned int>(run_vec[kr].
getRunNumber());
114 std::cout <<
" **************** " << std::endl;
115 std::cout <<
" **************** " << std::endl;
116 std::cout <<
" run= " << irun << std::endl;
119 std::map<EcalLogicID, RunTPGConfigDat>
dataset;
123 int the_config_version = 0;
125 std::map<EcalLogicID, RunTPGConfigDat>::const_iterator it;
139 std::cout <<
" run= " << irun <<
" tag " << the_config_tag <<
" version=" << the_config_version << std::endl;
144 std::cout <<
"the tag is different from last transferred run ... retrieving last config set from DB"
152 std::cout <<
" before fetch config set" << std::endl;
154 std::cout <<
" after fetch config set" << std::endl;
157 int linId = fe_main_info.
getLinId();
161 fe_lin_info.
setId(linId);
163 std::map<EcalLogicID, FEConfigLinDat> dataset_TpgLin;
167 typedef std::map<EcalLogicID, FEConfigLinDat>::const_iterator CIfelin;
172 for (CIfelin
p = dataset_TpgLin.begin();
p != dataset_TpgLin.end();
p++) {
178 if (ecid_name ==
"EB_crystal_number") {
179 int sm_num = ecid_xt.
getID1();
180 int xt_num = ecid_xt.
getID2();
191 linC->
insert(std::make_pair(ebdetid.rawId(),
item));
209 linC->
insert(std::make_pair(eedetid.rawId(),
item));
231 std::cout <<
" even if the tag/version is not the same, the linearization constants id is the same -> no "
236 std::cout <<
"ERROR: THIS CONFIG DOES NOT EXIST: tag=" << the_config_tag <<
" version=" << the_config_version
241 std::cout <<
" **************** " << std::endl;
243 }
else if (
nr == 0) {
245 std::cout <<
" no tag saved to RUN_TPGCONFIG_DAT by EcalSupervisor -> no transfer needed " << std::endl;
246 std::cout <<
" **************** " << std::endl;
251 std::cout <<
" the tag/version is the same -> no transfer needed " << std::endl;
252 std::cout <<
" **************** " << std::endl;
260 edm::LogInfo(
"EcalTPGLinConstHandler") <<
"Ecal - > end of getNewObjects -----------";
References gather_cfg::cout, writedatasetfile::dataset, MillePedeFileConverter_cfg::e, test_db_connect::econn, cppFunctionSkipper::exception, Exception, RunTPGConfigDat::getConfigTag(), EcalLogicID::getID1(), EcalLogicID::getID2(), EcalLogicID::getID3(), FEConfigMainInfo::getLinId(), FEConfigLinDat::getMultX1(), FEConfigLinDat::getMultX12(), FEConfigLinDat::getMultX6(), EcalLogicID::getName(), DeadROCCounter::getRunNumber(), RunList::getRuns(), FEConfigLinDat::getShift1(), FEConfigLinDat::getShift12(), FEConfigLinDat::getShift6(), RunTPGConfigDat::getVersion(), EcalCondObjectContainer< T >::insert(), B2GTnPMonitor_cfi::item, 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(), FEConfigLinInfo::setId(), RunTag::setLocationDef(), RunTag::setRunTypeDef(), FEConfigMainInfo::setVersion(), findQualityFiles::size, EBDetId::SMCRYSTALMODE, AlCaHLTBitMon_QueryRunRegistry::string, dumpRecoGeometry_cfg::tagInfo, x, EEDetId::XYMODE, y, and z.