CMS 3D CMS Logo

MtdSimLayerClusterToTPAssociatorByTrackIdProducer.cc
Go to the documentation of this file.
1 // system include files
2 #include <memory>
3 #include <string>
4 
5 // user include files
7 
11 
15 
17 
18 //
19 // Class declaration
20 //
21 
23 public:
26 
27  static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
28 
29 private:
30  void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override;
31 };
32 
34  const edm::ParameterSet &pset) {
35  // Register the product
36  produces<reco::MtdSimLayerClusterToTPAssociator>();
37 }
38 
40 
43  const edm::EventSetup &es) const {
44  auto impl = std::make_unique<MtdSimLayerClusterToTPAssociatorByTrackIdImpl>(iEvent.productGetter());
45  auto toPut = std::make_unique<reco::MtdSimLayerClusterToTPAssociator>(std::move(impl));
46  iEvent.put(std::move(toPut));
47 }
48 
51 
52  cfg.add("mtdSimLayerClusterToTPAssociatorByTrackId", desc);
53 }
54 
55 //define this as a plug-in
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
int iEvent
Definition: GenABIO.cc:224
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
def move(src, dest)
Definition: eostools.py:511