29 namespace eventsetup {
33 typedef std::map<DataKey, const DataProxy*>
Proxies;
80 if (iDesc && !iTag.
module().empty()) {
82 if (iDesc->
label_.empty()) {
89 <<
"EventSetup data was retrieved using an ESInputTag with the values\n" 90 <<
" moduleLabel = '" << iTag.
module() <<
"'\n" 91 <<
" dataLabel = '" << iTag.
data() <<
"'\n" 92 <<
"but the data matching the C++ class type and dataLabel comes from module type=" << iDesc->
type_ 93 <<
" label='" << iDesc->
label_ <<
"'.\n Please either change the ESInputTag's 'module' label to be " 94 << (iDesc->
label_.empty() ? iDesc->
type_ : iDesc->
label_) <<
"\n or add the EventSetup module " 95 << iTag.
module() <<
" to the configuration.";
104 std::ostringstream ost;
105 ost <<
"Using EventSetup component " << iDescription->
type_ <<
"/'" << iDescription->
label_ <<
"' to make data " 113 ex <<
"Attempted to get data using an invalid token of type ESGetToken<" << iDataKey.
name() <<
"," 116 "Please call consumes to properly initialize the token.";
117 return std::make_exception_ptr(ex);
virtual EventSetupRecordKey key() const =0
bool wasGotten(DataKey const &aKey) const
char const * name() const
void addTraceInfoToCmsException(cms::Exception &iException, char const *iName, ComponentDescription const *, DataKey const &) const
ComponentDescription const * providerDescription(DataKey const &aKey) const
virtual ~EventSetupRecord()
ComponentDescription const * providerDescription(DataKey const &aKey) const
const char * name() const
bool wasGotten(DataKey const &aKey) const
const TypeTag & type() const
void addContext(std::string const &context)
const TypeTag & type() const
std::map< DataKey, const DataProxy * > Proxies
void validate(ComponentDescription const *, ESInputTag const &) const
bool doGet(DataKey const &aKey, bool aGetTransiently=false) const
returns false if no data available for key
EventSetupRecordImpl const * impl_
static std::exception_ptr makeInvalidTokenException(EventSetupRecordKey const &, TypeTag const &)
bool doGet(DataKey const &aKey, bool aGetTransiently=false) const
returns false if no data available for key