1 #ifndef JetMETCorrections_FFTJetObjects_FFTJetRcdMapper_h 2 #define JetMETCorrections_FFTJetObjects_FFTJetRcdMapper_h 20 template<
class DataType>
33 template<
class DataType,
class RecordType>
40 {iSetup.
get<RecordType>().
get(handle);}
45 {iSetup.
get<RecordType>().
get(label, handle);}
48 template<
class DataType>
50 public std::map<std::string, AbsFFTJetRcdMapper<DataType>*>
60 iterator it = this->
begin(); it != this->
end(); ++it)
68 typename std::map<std::string, AbsFFTJetRcdMapper<DataType>*>::
69 const_iterator it = this->
find(record);
70 if (it == this->
end())
72 <<
"Record \"" << record <<
"\" is not registered\n";
73 it->second->load(iSetup, handle);
81 typename std::map<std::string, AbsFFTJetRcdMapper<DataType>*>::
82 const_iterator it = this->
find(record);
83 if (it == this->
end())
85 <<
"Record \"" << record <<
"\" is not registered\n";
86 it->second->load(iSetup, label, handle);
97 template <
class Mapper>
109 template <
class Record>
121 #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