CMS 3D CMS Logo

CSCObjectMapESProducer.cc
Go to the documentation of this file.
1 // system include files
2 #include <memory>
3 
4 // user include files
11 #include "CSCObjectMap.h"
12 
14 public:
16 
17  std::unique_ptr<CSCObjectMap> produce(MuonGeometryRecord const& record) {
18  return std::make_unique<CSCObjectMap>(record.get(rpcGeomToken_));
19  }
20 
21  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
23  descriptions.add("cscObjectMapESProducer", desc);
24  }
25 
26 private:
28 };
29 
30 //define this as a plug-in
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:165
CSCObjectMapESProducer(const edm::ParameterSet &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:61
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcGeomToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::unique_ptr< CSCObjectMap > produce(MuonGeometryRecord const &record)