48 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"Started GetNewObjects!!!";
53 std::cout <<
"got offlineInfo = " << std::endl;
57 std::cout <<
" First object for this tag " << std::endl;
60 unsigned int max_since=0;
62 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"max_since : " << max_since;
65 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"retrieved last payload ";
68 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"Retrieving run list from ONLINE DB ... ";
70 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"Making connection...";
72 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"Done.";
103 if(min_run<max_since) {
110 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"min_run= " << min_run <<
" max_run= " << max_run;
115 printf (
"after fetchRunList\n");fflush(stdout);
117 std::vector<RunIOV> run_vec= my_list.
getRuns();
118 size_t num_runs=run_vec.size();
120 std::cout <<
"number of runs is : "<< num_runs<< std::endl;
125 for(
size_t kr=0; kr<run_vec.size(); kr++){
127 irun=
static_cast<unsigned int>(run_vec[kr].getRunNumber());
129 std::cout<<
" **************** "<<std::endl;
130 std::cout<<
" **************** "<<std::endl;
134 std::map<EcalLogicID, RunTPGConfigDat>
dataset;
138 int the_config_version=0;
140 std::map< EcalLogicID, RunTPGConfigDat>::const_iterator it;
143 for( it=dataset.begin(); it!=dataset.end(); it++ )
155 std::cout<<
" run= "<<irun<<
" tag "<<the_config_tag<<
" version="<<the_config_version <<std::endl;
161 std::cout<<
"the tag is different from last transferred run ... retrieving last config set from DB"<<std::endl;
168 std::cout <<
" before fetch config set" << std::endl;
169 econn-> fetchConfigSet(&fe_main_info);
170 std::cout <<
" after fetch config set" << std::endl;
179 fe_fgr_info.
setId(fgrId);
180 econn-> fetchConfigSet(&fe_fgr_info);
181 std::map<EcalLogicID, FEConfigFgrDat> dataset_TpgFineGrainEB;
185 typedef std::map<EcalLogicID, FEConfigFgrDat>::const_iterator CIfefgr;
190 for (CIfefgr
p = dataset_TpgFineGrainEB.begin();
p != dataset_TpgFineGrainEB.end();
p++) {
196 if (ecid_name==
"EB_trigger_tower") {
198 int smid=ecid_xt.
getID1();
200 int towerid=ecid_xt.
getID2();
214 int tow_eta=(towerid-1)/4;
215 int tow_phi=((towerid-1)-tow_eta*4);
217 int axt=(tow_eta*5)*20 + tow_phi*5 +1 ;
237 writeFile(
"last_tpg_fgrGroup_settings.txt");
245 writeFile(
"last_tpg_fgrGroup_settings.txt");
247 std::cout<<
" even if the tag/version is not the same, the fgrGroup id is the same -> no transfer needed "<< std::endl;
254 std::cout <<
"ERROR: THIS CONFIG DOES NOT EXIST: tag=" <<the_config_tag
255 <<
" version="<<the_config_version<< std::endl;
260 std::cout<<
" **************** "<<std::endl;
264 std::cout<<
" no tag saved to RUN_TPGCONFIG_DAT by EcalSupervisor -> no transfer needed "<< std::endl;
265 std::cout<<
" **************** "<<std::endl;
270 std::cout<<
" the tag/version is the same -> no transfer needed "<< std::endl;
271 std::cout<<
" **************** "<<std::endl;
272 writeFile(
"last_tpg_fgrGroup_settings.txt");
280 edm::LogInfo(
"EcalTPGFineGrainEBGroupHandler") <<
"Ecal - > end of getNewObjects -----------";
void setRunTypeDef(const RunTypeDef &runTypeDef)
std::vector< RunIOV > getRuns()
edm::Ref< Container > Ref
unsigned int m_i_run_number
std::string getConfigTag() const
void writeFile(const char *inputFile)
OldContainer m_to_transfer
void readFromFile(const char *inputFile)
uint32_t rawId() const
get the raw id
cond::ValidityInterval lastInterval
std::string getName() const
void fetchDataSet(std::map< EcalLogicID, DATT > *fillMap, IOVT *iov)
RunList fetchGlobalRunListByLocation(const RunTag &tag, int min_run, int max_run, const LocationDef &locDef)
void setValue(const uint32_t &rawId, const uint32_t &ObjectId)
void setLocationDef(const LocationDef &locDef)
EcalCondDBInterface * econn
void setRunType(std::string runtype)
void setConfigTag(std::string x)
void setLocation(std::string loc)
void setGeneralTag(std::string tag)
int getFgrGroupId() const
static const int SMCRYSTALMODE
tuple size
Write out results.
cond::TagInfo_t const & tagInfo() const