|
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 L1EmEtScaleRcd &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: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 34 of file L1EmEtScaleOnlineProd.cc.
boost::shared_ptr< L1CaloEtScale > L1EmEtScaleOnlineProd::newObject |
( |
const std::string & |
objectKey | ) |
|
|
virtual |
Implements L1ConfigOnlineProdBase< L1EmEtScaleRcd, L1CaloEtScale >.
Definition at line 79 of file L1EmEtScaleOnlineProd.cc.
References l1t::OMDSReader::basicQuery(), L1ConfigOnlineProdBase< L1EmEtScaleRcd, L1CaloEtScale >::m_omdsReader, l1t::OMDSReader::singleAttribute(), and GOODCOLL_filter_cfg::thresh.
81 using namespace edm::es;
86 std::vector< std::string > queryStrings ;
87 queryStrings.push_back(
"ET_GEV_BIN_LOW_0");
88 queryStrings.push_back(
"ET_GEV_BIN_LOW_1");
89 queryStrings.push_back(
"ET_GEV_BIN_LOW_2");
90 queryStrings.push_back(
"ET_GEV_BIN_LOW_3");
91 queryStrings.push_back(
"ET_GEV_BIN_LOW_4");
92 queryStrings.push_back(
"ET_GEV_BIN_LOW_5");
93 queryStrings.push_back(
"ET_GEV_BIN_LOW_6");
94 queryStrings.push_back(
"ET_GEV_BIN_LOW_7");
95 queryStrings.push_back(
"ET_GEV_BIN_LOW_8");
96 queryStrings.push_back(
"ET_GEV_BIN_LOW_9");
97 queryStrings.push_back(
"ET_GEV_BIN_LOW_10");
98 queryStrings.push_back(
"ET_GEV_BIN_LOW_11");
99 queryStrings.push_back(
"ET_GEV_BIN_LOW_12");
100 queryStrings.push_back(
"ET_GEV_BIN_LOW_13");
101 queryStrings.push_back(
"ET_GEV_BIN_LOW_14");
102 queryStrings.push_back(
"ET_GEV_BIN_LOW_15");
103 queryStrings.push_back(
"ET_GEV_BIN_LOW_16");
104 queryStrings.push_back(
"ET_GEV_BIN_LOW_17");
105 queryStrings.push_back(
"ET_GEV_BIN_LOW_18");
106 queryStrings.push_back(
"ET_GEV_BIN_LOW_19");
107 queryStrings.push_back(
"ET_GEV_BIN_LOW_20");
108 queryStrings.push_back(
"ET_GEV_BIN_LOW_21");
109 queryStrings.push_back(
"ET_GEV_BIN_LOW_22");
110 queryStrings.push_back(
"ET_GEV_BIN_LOW_23");
111 queryStrings.push_back(
"ET_GEV_BIN_LOW_24");
112 queryStrings.push_back(
"ET_GEV_BIN_LOW_25");
113 queryStrings.push_back(
"ET_GEV_BIN_LOW_26");
114 queryStrings.push_back(
"ET_GEV_BIN_LOW_27");
115 queryStrings.push_back(
"ET_GEV_BIN_LOW_28");
116 queryStrings.push_back(
"ET_GEV_BIN_LOW_29");
117 queryStrings.push_back(
"ET_GEV_BIN_LOW_30");
118 queryStrings.push_back(
"ET_GEV_BIN_LOW_31");
119 queryStrings.push_back(
"ET_GEV_BIN_LOW_32");
120 queryStrings.push_back(
"ET_GEV_BIN_LOW_33");
121 queryStrings.push_back(
"ET_GEV_BIN_LOW_34");
122 queryStrings.push_back(
"ET_GEV_BIN_LOW_35");
123 queryStrings.push_back(
"ET_GEV_BIN_LOW_36");
124 queryStrings.push_back(
"ET_GEV_BIN_LOW_37");
125 queryStrings.push_back(
"ET_GEV_BIN_LOW_38");
126 queryStrings.push_back(
"ET_GEV_BIN_LOW_39");
127 queryStrings.push_back(
"ET_GEV_BIN_LOW_40");
128 queryStrings.push_back(
"ET_GEV_BIN_LOW_41");
129 queryStrings.push_back(
"ET_GEV_BIN_LOW_42");
130 queryStrings.push_back(
"ET_GEV_BIN_LOW_43");
131 queryStrings.push_back(
"ET_GEV_BIN_LOW_44");
132 queryStrings.push_back(
"ET_GEV_BIN_LOW_45");
133 queryStrings.push_back(
"ET_GEV_BIN_LOW_46");
134 queryStrings.push_back(
"ET_GEV_BIN_LOW_47");
135 queryStrings.push_back(
"ET_GEV_BIN_LOW_48");
136 queryStrings.push_back(
"ET_GEV_BIN_LOW_49");
137 queryStrings.push_back(
"ET_GEV_BIN_LOW_50");
138 queryStrings.push_back(
"ET_GEV_BIN_LOW_51");
139 queryStrings.push_back(
"ET_GEV_BIN_LOW_52");
140 queryStrings.push_back(
"ET_GEV_BIN_LOW_53");
141 queryStrings.push_back(
"ET_GEV_BIN_LOW_54");
142 queryStrings.push_back(
"ET_GEV_BIN_LOW_55");
143 queryStrings.push_back(
"ET_GEV_BIN_LOW_56");
144 queryStrings.push_back(
"ET_GEV_BIN_LOW_57");
145 queryStrings.push_back(
"ET_GEV_BIN_LOW_58");
146 queryStrings.push_back(
"ET_GEV_BIN_LOW_59");
147 queryStrings.push_back(
"ET_GEV_BIN_LOW_60");
148 queryStrings.push_back(
"ET_GEV_BIN_LOW_61");
149 queryStrings.push_back(
"ET_GEV_BIN_LOW_62");
150 queryStrings.push_back(
"ET_GEV_BIN_LOW_63");
159 "L1T_SCALE_CALO_ET_THRESHOLD",
160 "L1T_SCALE_CALO_ET_THRESHOLD.ID",
164 "L1CALOEMETTHRESH.NAME",
170 if( scaleResults.queryFailed() ||
171 scaleResults.numberRows() != 1 )
173 edm::LogError(
"L1-O2O" ) <<
"Problem with L1EmEtScale key." ;
174 return boost::shared_ptr< L1CaloEtScale >() ;
176 std::vector<double> m_thresholds;
178 for( std::vector< std::string >::iterator
thresh = queryStrings.begin();
180 float tempScale = 0.0;
181 scaleResults.fillVariable(*
thresh,tempScale);
182 m_thresholds.push_back(tempScale);
189 "L1CALOEMETTHRESH.NAME",
192 if( lsbResults.queryFailed() ||
193 lsbResults.numberRows() != 1 )
195 edm::LogError(
"L1-O2O" ) <<
"Problem with L1EmEtScale key." ;
196 return boost::shared_ptr< L1CaloEtScale >() ;
200 lsbResults.fillVariable(m_lsb);
208 return boost::shared_ptr< L1CaloEtScale >(
new L1CaloEtScale( m_lsb,m_thresholds ) );
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