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;
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;
175 for (CIfefgr
p = dataset_TpgFineGrainEB.begin();
p != dataset_TpgFineGrainEB.end();
p++) {
181 if (ecid_name ==
"EB_trigger_tower") {
183 int smid = ecid_xt.
getID1();
185 int towerid = ecid_xt.
getID2();
199 int tow_eta = (towerid - 1) / 4;
200 int tow_phi = ((towerid - 1) - tow_eta * 4);
202 int axt = (tow_eta * 5) * 20 + tow_phi * 5 + 1;
220 writeFile(
"last_tpg_fgrGroup_settings.txt");
227 writeFile(
"last_tpg_fgrGroup_settings.txt");
229 std::cout <<
" even if the tag/version is not the same, the fgrGroup id is the same -> no transfer needed " 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;
253 writeFile(
"last_tpg_fgrGroup_settings.txt");
259 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"Ecal - > end of getNewObjects -----------";
void setRunTypeDef(const RunTypeDef &runTypeDef)
std::vector< RunIOV > getRuns()
unsigned int m_i_run_number
RunList fetchGlobalRunListByLocation(const RunTag &tag, int min_run, int max_run, const LocationDef &locDef) noexcept(false)
std::string getName() const
std::string id() const override
void fetchConfigSet(ICONF *iconf) noexcept(false)
void writeFile(const char *inputFile)
void fetchDataSet(std::map< EcalLogicID, DATT > *fillMap, IOVT *iov) noexcept(false)
void readFromFile(const char *inputFile)
cond::TagInfo_t const & tagInfo() const
std::vector< std::pair< EcalTPGFineGrainEBGroup *, Time_t > > m_to_transfer
void setValue(const uint32_t &rawId, const uint32_t &ObjectId)
int getFgrGroupId() const
void setLocationDef(const LocationDef &locDef)
Log< level::Info, false > LogInfo
EcalCondDBInterface * econn
constexpr uint32_t rawId() const
get the raw id
std::string getConfigTag() const
std::unique_ptr< EcalTPGFineGrainEBGroup > Ref
void setConfigTag(std::string x)
void setGeneralTag(std::string tag)
static const int SMCRYSTALMODE