Go to the documentation of this file. 1 #ifndef JetMETCorrections_FFTJetObjects_FFTJetRcdMapper_h
2 #define JetMETCorrections_FFTJetObjects_FFTJetRcdMapper_h
20 template <
class DataType>
29 template <
class DataType,
class RecordType>
44 template <
class DataType>
57 typename std::map<std::string, AbsFFTJetRcdMapper<DataType>*>::const_iterator it = this->
find(record);
58 if (it == this->
end())
59 throw cms::Exception(
"KeyNotFound") <<
"Record \"" << record <<
"\" is not registered\n";
60 it->second->load(iSetup,
handle);
67 typename std::map<std::string, AbsFFTJetRcdMapper<DataType>*>::const_iterator it = this->
find(record);
68 if (it == this->
end())
69 throw cms::Exception(
"KeyNotFound") <<
"Record \"" << record <<
"\" is not registered\n";
81 template <
class Mapper>
91 template <
class Record>
102 #endif // JetMETCorrections_FFTJetObjects_FFTJetRcdMapper_h
void load(const edm::EventSetup &iSetup, const std::string &record, const std::string &label, edm::ESHandle< DataType > &handle) const
static void registerRecord(const std::string &record)
virtual ~AbsFFTJetRcdMapper()
void load(const edm::EventSetup &iSetup, const std::string &record, edm::ESHandle< DataType > &handle) const
DefaultFFTJetRcdMapper & operator=(const DefaultFFTJetRcdMapper &)=delete
StaticFFTJetRcdMapper()=delete
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void load(const edm::EventSetup &iSetup, const std::string &label, edm::ESHandle< DataType > &handle) const override
virtual ~DefaultFFTJetRcdMapper()
static const Mapper & instance()
Mapper::Base::data_type data_type
~ConcreteFFTJetRcdMapper() override
void load(const edm::EventSetup &iSetup, edm::ESHandle< DataType > &handle) const override
virtual void load(const edm::EventSetup &iSetup, edm::ESHandle< DataType > &handle) const =0