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" ) )
47 std::shared_ptr<L1TriggerKeyExt> pL1TriggerKey ;
56 <<
"Problem getting last L1TriggerKeyListExt" ;
71 pL1TriggerKey = std::make_shared< L1TriggerKeyExt >();
73 pL1TriggerKey->setTSCKey( m_Key ) ;
81 std::vector< std::string > queryStrings ;
82 queryStrings.push_back(
"UGT_KEY" ) ;
83 queryStrings.push_back(
"UGMT_KEY" ) ;
85 queryStrings.push_back(
"BMTF_KEY" ) ;
86 queryStrings.push_back(
"OMTF_KEY" ) ;
87 queryStrings.push_back(
"EMTF_KEY" ) ;
88 queryStrings.push_back(
"TWINMUX_KEY") ;
94 "L1_TRG_CONF_KEYS.ID",
101 return pL1TriggerKey ;
104 std::string uGTKey, uGMTKey, CALOKey, BMTFKey, OMTFKey, EMTFKey, TWINMUXKey;
112 subkeyResults.
fillVariable(
"TWINMUX_KEY", TWINMUXKey) ;
116 queryStrings.clear();
117 queryStrings.push_back(
"UGT_RS_KEY" );
118 queryStrings.push_back(
"UGMT_RS_KEY" );
120 queryStrings.push_back(
"BMTF_RS_KEY" );
121 queryStrings.push_back(
"EMTF_RS_KEY" );
122 queryStrings.push_back(
"OMTF_RS_KEY" );
123 queryStrings.push_back(
"TWINMUX_RS_KEY");
136 return pL1TriggerKey ;
139 std::string uGTrsKey, uGMTrsKey, CALOrsKey, BMTFrsKey, OMTFrsKey, EMTFrsKey, TWINMUXrsKey;
142 subkeyResults.
fillVariable(
"UGMT_RS_KEY", uGMTrsKey ) ;
144 subkeyResults.
fillVariable(
"BMTF_RS_KEY", BMTFrsKey ) ;
145 subkeyResults.
fillVariable(
"OMTF_RS_KEY", OMTFrsKey ) ;
146 subkeyResults.
fillVariable(
"EMTF_RS_KEY", EMTFrsKey ) ;
147 subkeyResults.
fillVariable(
"TWINMUX_RS_KEY", TWINMUXrsKey) ;
180 "L1TriggerKeyExt for TSC key " +
m_tscKey +
" and RS key " + m_rsKey +
" already in CondDB." ) ;
183 return pL1TriggerKey ;
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()
L1SubsystemKeysOnlineProdExt(const edm::ParameterSet &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
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::string token(const std::string &tscKey) const
std::shared_ptr< L1TriggerKeyExt > ReturnType