CMS 3D CMS Logo

PixelFitterByConformalMappingAndLineProducer.cc
Go to the documentation of this file.
3 
7 
11 
14 
19 
21 public:
23  : theTTRHBuilderToken(esConsumes(edm::ESInputTag("", iConfig.getParameter<std::string>("TTRHBuilder")))),
29  if (iConfig.getParameter<bool>("useFixImpactParameter")) {
30  theFixImpactParameter = iConfig.getParameter<double>("fixImpactParameter");
32  }
33  }
35 
36  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
38 
39  desc.add<std::string>("TTRHBuilder", "PixelTTRHBuilderWithoutAngle");
40  desc.add<bool>("useFixImpactParameter", false);
41  desc.add<double>("fixImpactParameter", 0.0);
42  descriptions.add("pixelFitterByConformalMappingAndLine", desc);
43  }
44 
45 private:
46  void produce(edm::StreamID, edm::Event& iEvent, const edm::EventSetup& iSetup) const override;
47 
54 };
55 
58  const edm::EventSetup& iSetup) const {
59  iEvent.emplace(thePutToken,
60  std::make_unique<PixelFitterByConformalMappingAndLine>(&iSetup.getData(theTTRHBuilderToken),
61  &iSetup.getData(theTrackerToken),
62  &iSetup.getData(theFieldToken),
65 }
66 
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
int iEvent
Definition: GenABIO.cc:224
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > theFieldToken
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
bool getData(T &iHolder) const
Definition: EventSetup.h:122
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > theTrackerToken
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HLT enums.
const edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > theTTRHBuilderToken