128 for (Parameters::const_iterator itToGet = toGet.begin(), itToGetEnd = toGet.end(); itToGet != itToGetEnd;
135 edm::LogWarning(
"DataGetter") <<
"Record \"" << recordName <<
"\" does not exist " << std::endl;
139 typedef std::vector<std::string>
Strings;
140 Strings dataNames = itToGet->getParameter<Strings>(
"data");
141 std::vector<eventsetup::DataKey> dataKeys;
142 for (Strings::iterator itDatum = dataNames.begin(), itDatumEnd = dataNames.end(); itDatum != itDatumEnd;
144 std::string datumName(*itDatum, 0, itDatum->find_first_of(
"/"));
146 if (itDatum->size() != datumName.size()) {
147 labelName =
std::string(*itDatum, datumName.size() + 1);
152 edm::LogWarning(
"DataGetter") <<
"data item of type \"" << datumName <<
"\" does not exist" << std::endl;
156 eventsetup::DataKey datumKey(datumType, labelName.c_str());
157 dataKeys.push_back(datumKey);
164 std::vector<eventsetup::EventSetupRecordKey> recordKeys;
165 iSetup.fillAvailableRecordKeys(recordKeys);
166 std::vector<eventsetup::DataKey> dataKeys;
168 for (std::vector<eventsetup::EventSetupRecordKey>::iterator itRKey = recordKeys.begin(),
169 itRKeyEnd = recordKeys.end();
172 auto record = iSetup.find(*itRKey);
175 record->fillRegisteredDataKeys(dataKeys);
187 itRecord != itRecordEnd;
189 auto pRecord = iSetup.find(itRecord->first);
192 <<
"The EventSetup Record '" << itRecord->first.name() <<
"' is not available for this IOV.";
196 typedef std::vector<DataKey>
Keys;
197 Keys
const&
keys = itRecord->second;
198 for (Keys::const_iterator itKey = keys.begin(), itKeyEnd = keys.end(); itKey != itKeyEnd; ++itKey) {
199 if (!pRecord->doGet(*itKey)) {
201 <<
"No data of type \"" << itKey->type().name() <<
"\" with name \"" << itKey->name().value()
202 <<
"\" in record " << itRecord->first.type().name() <<
" found " << std::endl;
206 <<
"got data of type \"" << itKey->type().name() <<
"\" with name \"" << itKey->name().value()
207 <<
"\" in record " << itRecord->first.type().name() << std::endl;
VParameterSet const & getParameterSetVector(std::string const &name) const
EventSelector::Strings Strings
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
RecordToDataKeys recordToDataKeys_
vector< ParameterSet > Parameters
heterocontainer::HCTypeTag TypeTag
std::map< eventsetup::EventSetupRecordKey, unsigned long long > recordToCacheIdentifier_
std::vector< size_type > Keys
heterocontainer::HCTypeTag TypeTag