14 : m_tscKey( iConfig.getParameter<
std::
string >(
"tscKey" ) ),
15 m_rsKey ( iConfig.getParameter<
std::
string >(
"rsKey" ) ),
17 iConfig.getParameter<
std::
string >(
"onlineDB" ),
18 iConfig.getParameter<
std::
string >(
"onlineAuthentication" ) ),
19 m_forceGeneration( iConfig.getParameter<
bool >(
"forceGeneration" ) )
46 std::unique_ptr<L1TriggerKeyExt> pL1TriggerKey ;
55 <<
"Problem getting last L1TriggerKeyListExt" ;
66 if( keyList.
token( m_Key ).empty() ||
70 pL1TriggerKey = std::make_unique< L1TriggerKeyExt >();
72 pL1TriggerKey->setTSCKey( m_Key ) ;
80 std::vector< std::string > queryStrings ;
81 queryStrings.push_back(
"UGT_KEY" ) ;
82 queryStrings.push_back(
"UGMT_KEY" ) ;
84 queryStrings.push_back(
"BMTF_KEY" ) ;
85 queryStrings.push_back(
"OMTF_KEY" ) ;
86 queryStrings.push_back(
"EMTF_KEY" ) ;
87 queryStrings.push_back(
"TWINMUX_KEY") ;
93 "L1_TRG_CONF_KEYS.ID",
100 return pL1TriggerKey ;
103 std::string uGTKey, uGMTKey, CALOKey, BMTFKey, OMTFKey, EMTFKey, TWINMUXKey;
111 subkeyResults.
fillVariable(
"TWINMUX_KEY", TWINMUXKey) ;
115 queryStrings.clear();
116 queryStrings.push_back(
"UGT_RS_KEY" );
117 queryStrings.push_back(
"UGMT_RS_KEY" );
119 queryStrings.push_back(
"BMTF_RS_KEY" );
120 queryStrings.push_back(
"EMTF_RS_KEY" );
121 queryStrings.push_back(
"OMTF_RS_KEY" );
122 queryStrings.push_back(
"TWINMUX_RS_KEY");
135 return pL1TriggerKey ;
138 std::string uGTrsKey, uGMTrsKey, CALOrsKey, BMTFrsKey, OMTFrsKey, EMTFrsKey, TWINMUXrsKey;
141 subkeyResults.
fillVariable(
"UGMT_RS_KEY", uGMTrsKey ) ;
143 subkeyResults.
fillVariable(
"BMTF_RS_KEY", BMTFrsKey ) ;
144 subkeyResults.
fillVariable(
"OMTF_RS_KEY", OMTFrsKey ) ;
145 subkeyResults.
fillVariable(
"EMTF_RS_KEY", EMTFrsKey ) ;
146 subkeyResults.
fillVariable(
"TWINMUX_RS_KEY", TWINMUXrsKey) ;
179 "L1TriggerKeyExt for TSC key " +
m_tscKey +
" and RS key " + m_rsKey +
" already in CondDB." ) ;
182 return pL1TriggerKey ;
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
bool fillLastTriggerKeyList(L1TriggerKeyListExt &output)
l1t::OMDSReader m_omdsReader
bool fillVariable(const std::string &columnName, T &outputVariable) const
const QueryResults singleAttribute(const T &data) const
L1SubsystemKeysOnlineProdExt(const edm::ParameterSet &)
~L1SubsystemKeysOnlineProdExt() override
const QueryResults basicQuery(const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="")
ReturnType produce(const L1TriggerKeyExtRcd &)
std::unique_ptr< L1TriggerKeyExt > ReturnType
std::string token(const std::string &tscKey) const