CMS 3D CMS Logo

PixelFitterByHelixProjectionsProducer.cc
Go to the documentation of this file.
3 
8 
12 
15 
18 
20 public:
22  produces<PixelFitter>();
23  }
25 
26  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
28  descriptions.add("pixelFitterByHelixProjections", desc);
29  }
30 
31 private:
32  virtual void produce(edm::StreamID, edm::Event& iEvent, const edm::EventSetup& iSetup) const override;
33 };
34 
35 
38  iSetup.get<IdealMagneticFieldRecord>().get(fieldESH);
39 
40  auto impl = std::make_unique<PixelFitterByHelixProjections>(&iSetup, fieldESH.product());
41  auto prod = std::make_unique<PixelFitter>(std::move(impl));
42  iEvent.put(std::move(prod));
43 }
44 
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:122
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
int iEvent
Definition: GenABIO.cc:230
PixelFitterByHelixProjectionsProducer(const edm::ParameterSet &iConfig)
const T & get() const
Definition: EventSetup.h:56
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
T const * product() const
Definition: ESHandle.h:86
def move(src, dest)
Definition: eostools.py:510