|
typedef std::vector< std::pair
< DataKey, boost::shared_ptr
< DataProxy > > > | KeyedProxies |
|
typedef std::vector
< EventSetupRecordKey > | Keys |
|
typedef std::map
< EventSetupRecordKey,
KeyedProxies > | RecordProxies |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
bool | getObjectKey (const L1JetEtScaleRcd &record, boost::shared_ptr< L1CaloEtScale > data, std::string &objectKey) |
|
template<typename T > |
void | setWhatProduced (T *iThis, const es::Label &iLabel=es::Label()) |
|
template<typename T > |
void | setWhatProduced (T *iThis, const char *iLabel) |
|
template<typename T > |
void | setWhatProduced (T *iThis, const std::string &iLabel) |
|
template<typename T , typename TDecorator > |
void | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label()) |
|
template<typename T , typename TReturn , typename TRecord > |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label()) |
|
template<typename T , typename TReturn , typename TRecord , typename TArg > |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label()) |
|
template<class TFactory > |
void | registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
|
virtual void | registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string()) |
|
virtual void | registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) |
| override DataProxyProvider method More...
|
|
void | eraseAll (const EventSetupRecordKey &iRecordKey) |
| deletes all the Proxies in aStream More...
|
|
void | invalidateProxies (const EventSetupRecordKey &iRecordKey) |
|
template<class T > |
void | usingRecord () |
|
void | usingRecordWithKey (const EventSetupRecordKey &) |
|
bool | m_copyFromCondDB |
|
cond::DbConnection | m_dbConnection |
|
cond::DbSession | m_dbSession |
|
bool | m_forceGeneration |
|
l1t::OMDSReader | m_omdsReader |
|
Description: Online producer for L1 jet Et scales
Implementation: <Notes on="" implementation>="">
Definition at line 33 of file L1JetEtScaleOnlineProd.cc.
boost::shared_ptr< L1CaloEtScale > L1JetEtScaleOnlineProd::newObject |
( |
const std::string & |
objectKey | ) |
|
|
overridevirtual |
Implements L1ConfigOnlineProdBase< L1JetEtScaleRcd, L1CaloEtScale >.
Definition at line 78 of file L1JetEtScaleOnlineProd.cc.
References l1t::OMDSReader::basicQuery(), L1ConfigOnlineProdBase< L1JetEtScaleRcd, L1CaloEtScale >::m_omdsReader, l1t::OMDSReader::singleAttribute(), AlCaHLTBitMon_QueryRunRegistry::string, GOODCOLL_filter_cfg::thresh, and fff_deleter::thresholds.
80 using namespace edm::es;
88 "GCT_PHYS_PARAMS.CONFIG_KEY",
93 if( scalesKeyResults.queryFailed() ) {
95 <<
"Problem with key for L1JetEtScaleRcd : GCT scales key query failed ";
97 else if( scalesKeyResults.numberRows() != 1 ) {
99 <<
"Problem with key for L1JetEtScaleRcd : "
100 << (scalesKeyResults.numberRows()) <<
" rows were returned when getting GCT scales key";
103 scalesKeyResults.fillVariable( scalesKey );
110 "SC_CENJET_ET_THRESHOLD_FK",
118 if( jetScaleKeyResults.queryFailed() ) {
120 <<
"Problem with key for L1GctJetEtScaleRcd : jet scale key query failed ";
122 else if( jetScaleKeyResults.numberRows() != 1 ) {
124 <<
"Problem with key for L1GctJetEtScaleRcd : "
125 << (jetScaleKeyResults.numberRows()) <<
" rows were returned when getting jet Et scale key";
128 jetScaleKeyResults.fillVariable( jetScaleKey ) ;
132 std::vector< std::string > queryStrings ;
133 queryStrings.push_back(
"ET_GEV_BIN_LOW_0");
134 queryStrings.push_back(
"ET_GEV_BIN_LOW_1");
135 queryStrings.push_back(
"ET_GEV_BIN_LOW_2");
136 queryStrings.push_back(
"ET_GEV_BIN_LOW_3");
137 queryStrings.push_back(
"ET_GEV_BIN_LOW_4");
138 queryStrings.push_back(
"ET_GEV_BIN_LOW_5");
139 queryStrings.push_back(
"ET_GEV_BIN_LOW_6");
140 queryStrings.push_back(
"ET_GEV_BIN_LOW_7");
141 queryStrings.push_back(
"ET_GEV_BIN_LOW_8");
142 queryStrings.push_back(
"ET_GEV_BIN_LOW_9");
143 queryStrings.push_back(
"ET_GEV_BIN_LOW_10");
144 queryStrings.push_back(
"ET_GEV_BIN_LOW_11");
145 queryStrings.push_back(
"ET_GEV_BIN_LOW_12");
146 queryStrings.push_back(
"ET_GEV_BIN_LOW_13");
147 queryStrings.push_back(
"ET_GEV_BIN_LOW_14");
148 queryStrings.push_back(
"ET_GEV_BIN_LOW_15");
149 queryStrings.push_back(
"ET_GEV_BIN_LOW_16");
150 queryStrings.push_back(
"ET_GEV_BIN_LOW_17");
151 queryStrings.push_back(
"ET_GEV_BIN_LOW_18");
152 queryStrings.push_back(
"ET_GEV_BIN_LOW_19");
153 queryStrings.push_back(
"ET_GEV_BIN_LOW_20");
154 queryStrings.push_back(
"ET_GEV_BIN_LOW_21");
155 queryStrings.push_back(
"ET_GEV_BIN_LOW_22");
156 queryStrings.push_back(
"ET_GEV_BIN_LOW_23");
157 queryStrings.push_back(
"ET_GEV_BIN_LOW_24");
158 queryStrings.push_back(
"ET_GEV_BIN_LOW_25");
159 queryStrings.push_back(
"ET_GEV_BIN_LOW_26");
160 queryStrings.push_back(
"ET_GEV_BIN_LOW_27");
161 queryStrings.push_back(
"ET_GEV_BIN_LOW_28");
162 queryStrings.push_back(
"ET_GEV_BIN_LOW_29");
163 queryStrings.push_back(
"ET_GEV_BIN_LOW_30");
164 queryStrings.push_back(
"ET_GEV_BIN_LOW_31");
165 queryStrings.push_back(
"ET_GEV_BIN_LOW_32");
166 queryStrings.push_back(
"ET_GEV_BIN_LOW_33");
167 queryStrings.push_back(
"ET_GEV_BIN_LOW_34");
168 queryStrings.push_back(
"ET_GEV_BIN_LOW_35");
169 queryStrings.push_back(
"ET_GEV_BIN_LOW_36");
170 queryStrings.push_back(
"ET_GEV_BIN_LOW_37");
171 queryStrings.push_back(
"ET_GEV_BIN_LOW_38");
172 queryStrings.push_back(
"ET_GEV_BIN_LOW_39");
173 queryStrings.push_back(
"ET_GEV_BIN_LOW_40");
174 queryStrings.push_back(
"ET_GEV_BIN_LOW_41");
175 queryStrings.push_back(
"ET_GEV_BIN_LOW_42");
176 queryStrings.push_back(
"ET_GEV_BIN_LOW_43");
177 queryStrings.push_back(
"ET_GEV_BIN_LOW_44");
178 queryStrings.push_back(
"ET_GEV_BIN_LOW_45");
179 queryStrings.push_back(
"ET_GEV_BIN_LOW_46");
180 queryStrings.push_back(
"ET_GEV_BIN_LOW_47");
181 queryStrings.push_back(
"ET_GEV_BIN_LOW_48");
182 queryStrings.push_back(
"ET_GEV_BIN_LOW_49");
183 queryStrings.push_back(
"ET_GEV_BIN_LOW_50");
184 queryStrings.push_back(
"ET_GEV_BIN_LOW_51");
185 queryStrings.push_back(
"ET_GEV_BIN_LOW_52");
186 queryStrings.push_back(
"ET_GEV_BIN_LOW_53");
187 queryStrings.push_back(
"ET_GEV_BIN_LOW_54");
188 queryStrings.push_back(
"ET_GEV_BIN_LOW_55");
189 queryStrings.push_back(
"ET_GEV_BIN_LOW_56");
190 queryStrings.push_back(
"ET_GEV_BIN_LOW_57");
191 queryStrings.push_back(
"ET_GEV_BIN_LOW_58");
192 queryStrings.push_back(
"ET_GEV_BIN_LOW_59");
193 queryStrings.push_back(
"ET_GEV_BIN_LOW_60");
194 queryStrings.push_back(
"ET_GEV_BIN_LOW_61");
195 queryStrings.push_back(
"ET_GEV_BIN_LOW_62");
196 queryStrings.push_back(
"ET_GEV_BIN_LOW_63");
201 "L1T_SCALE_CALO_ET_THRESHOLD",
202 "L1T_SCALE_CALO_ET_THRESHOLD.ID",
208 if( scaleResults.queryFailed() ||
209 scaleResults.numberRows() != 1 )
211 edm::LogError(
"L1-O2O" ) <<
"Problem with L1JetEtScale key : when reading scale." ;
214 for( std::vector< std::string >::iterator
thresh = queryStrings.begin();
216 float tempScale = 0.0;
217 scaleResults.fillVariable(*
thresh,tempScale);
229 "GCT_PHYS_PARAMS.CONFIG_KEY",
232 if( lsbResults.queryFailed() ) {
233 edm::LogError(
"L1-O2O" ) <<
"Problem with L1JetEtScale key." ;
236 lsbResults.fillVariable(
"GCT_RGN_ET_LSB", rgnEtLsb );
const QueryResults singleAttribute(const T &data) const
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="") const
l1t::OMDSReader m_omdsReader