/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
RecoLocalMuon/RPCRecHit/plugins/DTObjectMapESProducer.cc
32 строки
1 KB
Shahzad Malik Muzaffar
[Reco] Fixes needed to avoid exposing private headers via interface dir
17 авг 2021, 19:18
17 авг 2021, 19:18
f613a65
Код
Авторство
О чём код?
// system include files #include <memory> // user include files #include "FWCore/Framework/interface/ESProducer.h" #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/ParameterSet/interface/ParameterSetDescription.h" #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h" #include "Geometry/Records/interface/MuonGeometryRecord.h" #include "DTObjectMap.h" class DTObjectMapESProducer : public edm::ESProducer { public: DTObjectMapESProducer(const edm::ParameterSet&) : rpcGeomToken_(setWhatProduced(this).consumes<RPCGeometry>()) {} std::unique_ptr<DTObjectMap> produce(MuonGeometryRecord const& record) { return std::make_unique<DTObjectMap>(record.get(rpcGeomToken_)); } static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) { edm::ParameterSetDescription desc; descriptions.add("dtObjectMapESProducer", desc); } private: const edm::ESGetToken<RPCGeometry, MuonGeometryRecord> rpcGeomToken_; }; //define this as a plug-in #include "FWCore/Framework/interface/ModuleFactory.h" DEFINE_FWK_EVENTSETUP_MODULE(DTObjectMapESProducer);