CMS 3D CMS Logo

PixelFitterByConformalMappingAndLineProducer.cc
Go to the documentation of this file.
3 
8 
12 
15 
20 
22 public:
24  : theTTRHBuilderName(iConfig.getParameter<std::string>("TTRHBuilder")),
27  if (iConfig.getParameter<bool>("useFixImpactParameter")) {
28  theFixImpactParameter = iConfig.getParameter<double>("fixImpactParameter");
30  }
31 
32  produces<PixelFitter>();
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 
51 };
52 
55  const edm::EventSetup& iSetup) const {
57  iSetup.get<TransientRecHitRecord>().get(theTTRHBuilderName, ttrhBuilder);
58 
61 
63  iSetup.get<IdealMagneticFieldRecord>().get(field);
64 
65  auto impl = std::make_unique<PixelFitterByConformalMappingAndLine>(
66  ttrhBuilder.product(), tracker.product(), field.product(), theFixImpactParameter, theUseFixImpactParameter);
67  auto prod = std::make_unique<PixelFitter>(std::move(impl));
68  iEvent.put(std::move(prod));
69 }
70 
ConfigurationDescriptions.h
PixelFitterByConformalMappingAndLineProducer::theFixImpactParameter
double theFixImpactParameter
Definition: PixelFitterByConformalMappingAndLineProducer.cc:49
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
edm::StreamID
Definition: StreamID.h:30
funct::false
false
Definition: Factorize.h:29
ESHandle.h
PixelFitterByConformalMappingAndLineProducer
Definition: PixelFitterByConformalMappingAndLineProducer.cc:21
TransientRecHitRecord.h
PixelFitterByConformalMappingAndLineProducer::~PixelFitterByConformalMappingAndLineProducer
~PixelFitterByConformalMappingAndLineProducer() override
Definition: PixelFitterByConformalMappingAndLineProducer.cc:34
PixelFitterByConformalMappingAndLineProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: PixelFitterByConformalMappingAndLineProducer.cc:36
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
TransientRecHitRecord
Definition: TransientRecHitRecord.h:14
PixelFitterByConformalMappingAndLineProducer::theTTRHBuilderName
std::string theTTRHBuilderName
Definition: PixelFitterByConformalMappingAndLineProducer.cc:48
IdealMagneticFieldRecord
Definition: IdealMagneticFieldRecord.h:11
MakerMacros.h
PixelFitter.h
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
PixelFitterByConformalMappingAndLineProducer::produce
void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
Definition: PixelFitterByConformalMappingAndLineProducer.cc:53
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
TrackerDigiGeometryRecord
Definition: TrackerDigiGeometryRecord.h:15
dumpMFGeometry_cfg.prod
prod
Definition: dumpMFGeometry_cfg.py:24
IdealMagneticFieldRecord.h
edm::ESHandle< TransientTrackingRecHitBuilder >
ParameterSetDescription.h
edm::global::EDProducer
Definition: EDProducer.h:32
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PbPb_ZMuSkimMuonDPG_cff.tracker
tracker
Definition: PbPb_ZMuSkimMuonDPG_cff.py:60
TrackerDigiGeometryRecord.h
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:58
get
#define get
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
impl
Definition: trackAlgoPriorityOrder.h:18
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
Frameworkfwd.h
PixelFitterByConformalMappingAndLineProducer::PixelFitterByConformalMappingAndLineProducer
PixelFitterByConformalMappingAndLineProducer(const edm::ParameterSet &iConfig)
Definition: PixelFitterByConformalMappingAndLineProducer.cc:23
PixelFitterByConformalMappingAndLineProducer::theUseFixImpactParameter
bool theUseFixImpactParameter
Definition: PixelFitterByConformalMappingAndLineProducer.cc:50
EventSetup.h
PixelFitterByConformalMappingAndLine.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
TransientTrackingRecHitBuilder.h
ParameterSet.h
EDProducer.h
edm::Event
Definition: Event.h:73