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 using namespace edm::es;
47 boost::shared_ptr<L1TriggerKeyExt> pL1TriggerKey ;
56 <<
"Problem getting last L1TriggerKeyListExt" ;
71 pL1TriggerKey = boost::shared_ptr< L1TriggerKeyExt >(
74 pL1TriggerKey->setTSCKey( m_Key ) ;
82 std::vector< std::string > queryStrings ;
83 queryStrings.push_back(
"UGT_KEY" ) ;
84 queryStrings.push_back(
"UGMT_KEY" ) ;
86 queryStrings.push_back(
"BMTF_KEY" ) ;
87 queryStrings.push_back(
"OMTF_KEY" ) ;
88 queryStrings.push_back(
"EMTF_KEY" ) ;
89 queryStrings.push_back(
"TWINMUX_KEY") ;
95 "L1_TRG_CONF_KEYS.ID",
102 return pL1TriggerKey ;
105 std::string uGTKey, uGMTKey, CALOKey, BMTFKey, OMTFKey, EMTFKey, TWINMUXKey;
113 subkeyResults.
fillVariable(
"TWINMUX_KEY", TWINMUXKey) ;
117 queryStrings.clear();
118 queryStrings.push_back(
"UGT_RS_KEY" );
119 queryStrings.push_back(
"UGMT_RS_KEY" );
121 queryStrings.push_back(
"BMTF_RS_KEY" );
122 queryStrings.push_back(
"EMTF_RS_KEY" );
123 queryStrings.push_back(
"OMTF_RS_KEY" );
124 queryStrings.push_back(
"TWINMUX_RS_KEY");
137 return pL1TriggerKey ;
140 std::string uGTrsKey, uGMTrsKey, CALOrsKey, BMTFrsKey, OMTFrsKey, EMTFrsKey, TWINMUXrsKey;
143 subkeyResults.
fillVariable(
"UGMT_RS_KEY", uGMTrsKey ) ;
145 subkeyResults.
fillVariable(
"BMTF_RS_KEY", BMTFrsKey ) ;
146 subkeyResults.
fillVariable(
"OMTF_RS_KEY", OMTFrsKey ) ;
147 subkeyResults.
fillVariable(
"EMTF_RS_KEY", EMTFrsKey ) ;
148 subkeyResults.
fillVariable(
"TWINMUX_RS_KEY", TWINMUXrsKey) ;
181 "L1TriggerKeyExt for TSC key " +
m_tscKey +
" and RS key " +
m_rsKey +
" already in CondDB." ) ;
184 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 &)
boost::shared_ptr< L1TriggerKeyExt > ReturnType