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";
80 template <
class Mapper>
90 template <
class Record>
100 #endif // JetMETCorrections_FFTJetObjects_FFTJetRcdMapper_h DefaultFFTJetRcdMapper & operator=(const DefaultFFTJetRcdMapper &)=delete
::ecal::reco::ComputationScalarType data_type
void load(const edm::EventSetup &iSetup, const std::string &label, edm::ESHandle< DataType > &handle) const override
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 &record, const std::string &label, edm::ESHandle< DataType > &handle) const
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
StaticFFTJetRcdMapper()=delete
virtual ~AbsFFTJetRcdMapper()
void load(const edm::EventSetup &iSetup, edm::ESHandle< DataType > &handle) const override
~ConcreteFFTJetRcdMapper() override
void load(const edm::EventSetup &iSetup, const std::string &record, edm::ESHandle< DataType > &handle) const
static const Mapper & instance()