1 #ifndef JetMETCorrections_FFTJetObjects_FFTJetRcdMapper_h 2 #define JetMETCorrections_FFTJetObjects_FFTJetRcdMapper_h 22 template <
class DataType>
33 template <
class DataType,
class RecordType>
63 template <
class DataType>
76 typename std::map<std::string, AbsFFTJetRcdMapper<DataType>*>::iterator it = this->
find(record);
77 if (it == this->
end())
78 throw cms::Exception(
"KeyNotFound") <<
"Record \"" << record <<
"\" is not registered\n";
79 it->second->acquireToken(iC);
83 typename std::map<std::string, AbsFFTJetRcdMapper<DataType>*>::iterator it = this->
find(record);
84 if (it == this->
end())
85 throw cms::Exception(
"KeyNotFound") <<
"Record \"" << record <<
"\" is not registered\n";
86 it->second->acquireToken(iC,
label);
90 typename std::map<std::string, AbsFFTJetRcdMapper<DataType>*>::const_iterator it = this->
find(record);
91 if (it == this->
end())
92 throw cms::Exception(
"KeyNotFound") <<
"Record \"" << record <<
"\" is not registered\n";
93 return it->second->load(iSetup);
100 #endif // JetMETCorrections_FFTJetObjects_FFTJetRcdMapper_h edm::ESHandle< DataType > load(const edm::EventSetup &iSetup) const override
DefaultFFTJetRcdMapper & operator=(const DefaultFFTJetRcdMapper &)=delete
edm::ESHandle< DataType > load(const std::string &record, const edm::EventSetup &iSetup) const
virtual edm::ESHandle< DataType > load(const edm::EventSetup &iSetup) const =0
void acquireToken(const std::string &record, edm::ConsumesCollector iC, const std::string &label)
edm::ESGetToken< DataType, RecordType > token_
~ConcreteFFTJetRcdMapper() override
void acquireToken(edm::ConsumesCollector iC, const std::string &label) override
void acquireToken(const std::string &record, edm::ConsumesCollector iC)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
virtual ~DefaultFFTJetRcdMapper()
void acquireToken(edm::ConsumesCollector iC) override
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
virtual ~AbsFFTJetRcdMapper()
virtual void acquireToken(edm::ConsumesCollector iC)=0