1 #ifndef JetMETCorrections_FFTJetObjects_FFTJetRcdMapper_h 2 #define JetMETCorrections_FFTJetObjects_FFTJetRcdMapper_h 20 template <
class DataType>
29 template <
class DataType,
class RecordType>
34 iSetup.
get<RecordType>().
get(handle);
40 iSetup.
get<RecordType>().
get(label, handle);
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";
70 it->second->load(iSetup, label, handle);
81 template <
class Mapper>
91 template <
class Record>
102 #endif // JetMETCorrections_FFTJetObjects_FFTJetRcdMapper_h
static PFTauRenderPlugin instance
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
virtual ~DefaultFFTJetRcdMapper()
void load(const edm::EventSetup &iSetup, const std::string &label, edm::ESHandle< DataType > &handle) const override
static void registerRecord(const std::string &record)
virtual void load(const edm::EventSetup &iSetup, edm::ESHandle< DataType > &handle) const =0
Mapper::Base::data_type data_type
virtual ~AbsFFTJetRcdMapper()
void load(const edm::EventSetup &iSetup, const std::string &record, edm::ESHandle< DataType > &handle) const
void load(const edm::EventSetup &iSetup, edm::ESHandle< DataType > &handle) const override
~ConcreteFFTJetRcdMapper() override
static const Mapper & instance()
void load(const edm::EventSetup &iSetup, const std::string &record, const std::string &label, edm::ESHandle< DataType > &handle) const