62 unsigned int max_since = 0;
70 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
"Retrieving run list from ONLINE DB ... ";
77 throw cms::Exception(
"OMDS not available") <<
" connection parameters " << m_sid <<
"/" <<
m_user;
101 if (min_run < max_since) {
102 min_run = max_since + 1;
109 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
"min_run= " << min_run <<
" max_run= " << max_run;
114 std::vector<RunIOV> run_vec = my_list.
getRuns();
115 size_t num_runs = run_vec.size();
117 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
"number of runs is : " << num_runs;
119 unsigned int irun = 0;
121 for (
size_t kr = 0; kr < run_vec.size(); kr++) {
122 irun =
static_cast<unsigned int>(run_vec[kr].getRunNumber());
128 std::map<EcalLogicID, RunTPGConfigDat>
dataset;
132 int the_config_version = 0;
134 std::map<EcalLogicID, RunTPGConfigDat>::const_iterator it;
137 for (it = dataset.begin(); it != dataset.end(); it++) {
147 <<
" run= " << irun <<
" tag " << the_config_tag <<
" version=" << the_config_version;
153 <<
"the tag is different from last transferred run ... retrieving last config set from DB";
168 fe_odd_weight_info.
setId(wId);
170 std::map<EcalLogicID, FEConfigOddWeightModeDat> dataset_mode;
173 typedef std::map<EcalLogicID, FEConfigOddWeightModeDat>::const_iterator CIfem;
176 int rd_modev[19] = {0};
178 for (CIfem
p = dataset_mode.begin();
p != dataset_mode.end();
p++) {
195 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
"here is the value for the weight mode: ";
196 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
" EnableEBOddFilter:" << rd_modev[0];
197 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
" EnableEEOddFilter:" << rd_modev[1];
198 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
" EnableEBOddPeakFinder:" << rd_modev[2];
199 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
" EnableEEOddPeakFinder:" << rd_modev[3];
200 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
" DisableEBEvenPeakFinder:" << rd_modev[4];
201 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
" DisableEEEvenPeakFinder:" << rd_modev[5];
202 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
" FenixEBStripOutput:" << rd_modev[6];
203 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
" FenixEEStripOutput:" << rd_modev[7];
204 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
" FenixEBStripInfobit2:" << rd_modev[8];
205 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
" FenixEEStripInfobit2:" << rd_modev[9];
206 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
" FenixEBTcpOutput:" << rd_modev[10];
207 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
" FenixEBTcpinfobit1:" << rd_modev[11];
208 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
" FenixEETcpOutput:" << rd_modev[12];
209 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
" FenixEETcpinfobit1:" << rd_modev[13];
213 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
"*****************************************";
215 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
"*****************************************";
244 writeFile(
"last_tpg_TPMode_settings.txt");
251 writeFile(
"last_tpg_TPMode_settings.txt");
254 <<
" even if the tag/version is not the same, the weight group id is the same -> no transfer needed ";
260 throw cms::Exception(
"FileReadError") <<
"ERROR: THIS CONFIG DOES NOT EXIST: tag=" << the_config_tag
261 <<
" version=" << the_config_version <<
"\n"
266 }
else if (nr == 0) {
269 <<
" no tag saved to RUN_TPGCONFIG_DAT by EcalSupervisor -> no transfer needed ";
275 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
" the tag/version is the same -> no transfer needed ";
277 writeFile(
"last_tpg_TPMode_settings.txt");
283 edm::LogVerbatim(
"EcalTPGTPModeHandler") <<
"Ecal - > end of getNewObjects -----------";
Log< level::Info, true > LogVerbatim
void setRunTypeDef(const RunTypeDef &runTypeDef)
void readFromFile(const char *inputFile)
uint16_t EBFenixTcpInfobit1
std::vector< RunIOV > getRuns()
RunList fetchGlobalRunListByLocation(const RunTag &tag, int min_run, int max_run, const LocationDef &locDef) noexcept(false)
std::string getConfigTag() const
uint16_t FenixEBStripOutput
float getEnableEEOddPeakFinder() const
uint16_t FenixEEStripInfobit2
uint16_t EBFenixTcpOutput
float getDisableEEEvenPeakFinder() const
uint16_t EEFenixTcpInfobit1
float getFenixEBTcpOutput() const
float getEnableEBOddPeakFinder() const
uint16_t FenixEBStripInfobit2
float getFenixEBStripOutput() const
void fetchConfigSet(ICONF *iconf) noexcept(false)
EcalCondDBInterface * econn
void fetchDataSet(std::map< EcalLogicID, DATT > *fillMap, IOVT *iov) noexcept(false)
float getFenixEBStripInfobit2() const
float getFenixEETcpOutput() const
float getEnableEEOddFilter() const
float getFenixEEStripOutput() const
uint16_t EEFenixTcpOutput
uint16_t FenixEEStripOutput
float getFenixEETcpInfobit1() const
bool DisableEBEvenPeakFinder
std::vector< std::pair< EcalTPGTPMode *, Time_t > > m_to_transfer
bool EnableEBOddPeakFinder
bool EnableEEOddPeakFinder
float getEnableEBOddFilter() const
float getFenixEBTcpInfobit1() const
void setLocationDef(const LocationDef &locDef)
void writeFile(const char *inputFile)
unsigned int m_i_run_number
void setRunType(std::string runtype)
static std::vector< std::string > checklist dat
bool DisableEEEvenPeakFinder
float getDisableEBEvenPeakFinder() const
void setConfigTag(std::string x)
void setLocation(std::string loc)
float getFenixEEStripInfobit2() const
void setGeneralTag(std::string tag)
tuple size
Write out results.
cond::TagInfo_t const & tagInfo() const