29 #include "RelationalAccess/ISessionProxy.h"
30 #include "RelationalAccess/ITransaction.h"
31 #include "RelationalAccess/IRelationalDomain.h"
32 #include "RelationalAccess/ISchema.h"
33 #include "RelationalAccess/IQuery.h"
34 #include "RelationalAccess/ICursor.h"
35 #include "RelationalAccess/IConnection.h"
36 #include "CoralBase/AttributeList.h"
37 #include "CoralBase/Attribute.h"
38 #include "CoralKernel/Context.h"
113 auto pRunInfo = std::make_unique<RunInfo>();
129 coral::ISchema& schema = session.
coralSession().schema(
"CMS_RUNINFO");
132 coral::AttributeList conditionData;
133 conditionData.extend<
int>(
"n_run");
134 conditionData[0].data<
int>() =
runNumber;
139 coral::IQuery* queryV = schema.newQuery();
141 queryV->addToTableList(tableToRead_fed);
142 queryV->addToOutputList(tableToRead_fed +
"." + columnToRead_val, columnToRead_val);
147 ".NAME='CMS.LVL0:FED_ENABLE_MASK' AND RUNSESSION_PARAMETER.ID = RUNSESSION_STRING.RUNSESSION_PARAMETER_ID";
149 queryV->setCondition(condition, conditionData);
150 coral::ICursor& cursorV = queryV->execute();
152 if (cursorV.next()) {
154 const coral::AttributeList& row = cursorV.currentRow();
163 std::stringstream
stream(fed);
170 std::stringstream
ss(
word);
173 ss >> fedNumber >>
val;
176 if ((
val & 0001) == 1 && (
val != 5) && (
val != 7))
177 pRunInfo->m_fed_in.push_back(fedNumber);