@@ -88,8 +88,6 @@ void LHCInfoPerLSPopConSourceHandler::addPayloadToBuffer(cond::OMSServiceResultR
88
88
auto lumiTime = row.get <boost::posix_time::ptime>(" start_time" );
89
89
LHCInfoPerLS* thisLumiSectionInfo = new LHCInfoPerLS (*m_fillPayload);
90
90
m_tmpBuffer.emplace_back (std::make_pair (cond::time::from_boost (lumiTime), thisLumiSectionInfo));
91
-
92
- thisLumiSectionInfo->setRunNumber (row.get <cond::Time_t>(" run_number" ));
93
91
}
94
92
95
93
size_t LHCInfoPerLSPopConSourceHandler::bufferAllLS (const cond::OMSServiceResult& queryResult)
@@ -218,6 +216,7 @@ bool LHCInfoPerLSPopConSourceHandler::getCTTPSData(cond::persistency::Session& s
218
216
// SELECT clause
219
217
CTPPSDataQuery->addToOutputList (std::string (" DIP_UPDATE_TIME" ));
220
218
CTPPSDataQuery->addToOutputList (std::string (" LUMI_SECTION" ));
219
+ CTPPSDataQuery->addToOutputList (std::string (" RUN_NUMBER" ));
221
220
CTPPSDataQuery->addToOutputList (std::string (" XING_ANGLE_P5_X_URAD" ));
222
221
CTPPSDataQuery->addToOutputList (std::string (" XING_ANGLE_P5_Y_URAD" ));
223
222
CTPPSDataQuery->addToOutputList (std::string (" BETA_STAR_P5_X_M" ));
@@ -236,6 +235,7 @@ bool LHCInfoPerLSPopConSourceHandler::getCTTPSData(cond::persistency::Session& s
236
235
coral::AttributeList CTPPSDataOutput;
237
236
CTPPSDataOutput.extend <coral::TimeStamp>(std::string (" DIP_UPDATE_TIME" ));
238
237
CTPPSDataOutput.extend <int >(std::string (" LUMI_SECTION" ));
238
+ CTPPSDataOutput.extend <int >(std::string (" RUN_NUMBER" ));
239
239
CTPPSDataOutput.extend <float >(std::string (" XING_ANGLE_P5_X_URAD" ));
240
240
CTPPSDataOutput.extend <float >(std::string (" XING_ANGLE_P5_Y_URAD" ));
241
241
CTPPSDataOutput.extend <float >(std::string (" BETA_STAR_P5_X_M" ));
@@ -245,6 +245,7 @@ bool LHCInfoPerLSPopConSourceHandler::getCTTPSData(cond::persistency::Session& s
245
245
coral::ICursor& CTPPSDataCursor = CTPPSDataQuery->execute ();
246
246
cond::Time_t dipTime = 0 ;
247
247
unsigned int lumiSection = 0 ;
248
+ cond::Time_t runNumber = 0 ;
248
249
float crossingAngleX = 0 ., betaStarX = 0 .;
249
250
float crossingAngleY = 0 ., betaStarY = 0 .;
250
251
@@ -264,6 +265,10 @@ bool LHCInfoPerLSPopConSourceHandler::getCTTPSData(cond::persistency::Session& s
264
265
if (!lumiSectionAttribute.isNull ()) {
265
266
lumiSection = lumiSectionAttribute.data <int >();
266
267
}
268
+ coral::Attribute const & runNumberAttribute = CTPPSDataCursor.currentRow ()[std::string (" RUN_NUMBER" )];
269
+ if (!runNumberAttribute.isNull ()) {
270
+ runNumber = runNumberAttribute.data <int >();
271
+ }
267
272
coral::Attribute const & crossingAngleXAttribute =
268
273
CTPPSDataCursor.currentRow ()[std::string (" XING_ANGLE_P5_X_URAD" )];
269
274
if (!crossingAngleXAttribute.isNull ()) {
@@ -290,6 +295,7 @@ bool LHCInfoPerLSPopConSourceHandler::getCTTPSData(cond::persistency::Session& s
290
295
payload.setBetaStarX (betaStarX);
291
296
payload.setBetaStarY (betaStarY);
292
297
payload.setLumiSection (lumiSection);
298
+ payload.setRunNumber (runNumber);
293
299
}
294
300
}
295
301
}
0 commit comments