CMS 3D CMS Logo

PixelFitterByHelixProjectionsProducer.cc
Go to the documentation of this file.
3 
8 
12 
15 
18 
20 public:
22  : thescaleErrorsForBPix1(iConfig.getParameter<bool>("scaleErrorsForBPix1"))
23  , thescaleFactor(iConfig.getParameter<double>("scaleFactor")) {
24  produces<PixelFitter>();
25  }
27 
28  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
30  desc.add<bool>("scaleErrorsForBPix1", false);
31  desc.add<double>("scaleFactor", 0.65)->setComment("The default value was derived for phase1 pixel");
32  descriptions.add("pixelFitterByHelixProjectionsDefault", desc);
33  }
34 
35 private:
36  void produce(edm::StreamID, edm::Event& iEvent, const edm::EventSetup& iSetup) const override;
38  const float thescaleFactor;
39 };
40 
41 
44  iSetup.get<IdealMagneticFieldRecord>().get(fieldESH);
45 
46  auto impl = std::make_unique<PixelFitterByHelixProjections>(&iSetup, fieldESH.product(), thescaleErrorsForBPix1, thescaleFactor);
47  auto prod = std::make_unique<PixelFitter>(std::move(impl));
48  iEvent.put(std::move(prod));
49 }
50 
void setComment(std::string const &value)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:125
int iEvent
Definition: GenABIO.cc:224
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
PixelFitterByHelixProjectionsProducer(const edm::ParameterSet &iConfig)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
T get() const
Definition: EventSetup.h:71
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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:511