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>();
122 connection.configure();
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);
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
L1RCTOmdsFedVectorProducer(const edm::ParameterSet &)
std::unique_ptr< RunInfo > ReturnType
void start(bool readOnly=true)
def replace(string, replacements)
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
Transaction & transaction()
std::string connectionString
T const * product() const
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
~L1RCTOmdsFedVectorProducer() override
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
coral::ISessionProxy & coralSession()
ReturnType produce(const RunInfoRcd &)
void setAuthenticationPath(const std::string &p)