CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:163
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
CSCObjectMapESProducer(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcGeomToken_
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::unique_ptr< CSCObjectMap > produce(MuonGeometryRecord const &record)