CMS 3D CMS Logo

TrackFitterProducer.cc
Go to the documentation of this file.
3 
8 
12 
15 
22 
24 public:
25  explicit TrackFitterProducer(const edm::ParameterSet& iConfig);
26  ~TrackFitterProducer() override {}
27 
28  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
29 
30 private:
31  void produce(edm::StreamID, edm::Event& iEvent, const edm::EventSetup& iSetup) const override;
32 
37 };
38 
40  : geomToken_(esConsumes()),
41  magFieldToken_(esConsumes()),
42  ttrhToken_(esConsumes(edm::ESInputTag("", iConfig.getParameter<std::string>("TTRHBuilder")))) {
43  produces<PixelFitter>();
44 }
45 
48 
49  desc.add<std::string>("TTRHBuilder", "");
50 
51  descriptions.add("trackFitter", desc);
52 }
53 
55  const auto& tracker = &iSetup.getData(geomToken_);
56  const auto& field = &iSetup.getData(magFieldToken_);
57  const auto& ttrh = &iSetup.getData(ttrhToken_);
58 
59  auto impl = std::make_unique<TrackFitter>(tracker, field, ttrh);
60  auto prod = std::make_unique<PixelFitter>(std::move(impl));
61  iEvent.put(std::move(prod));
62 }
63 
ConfigurationDescriptions.h
edm::StreamID
Definition: StreamID.h:30
TrackerGeometry.h
ESHandle.h
ESInputTag
edm::EDGetTokenT< reco::BeamSpot >
edm
HLT enums.
Definition: AlignableModifier.h:19
TransientRecHitRecord.h
TrackFitter.h
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
TrackFitterProducer::TrackFitterProducer
TrackFitterProducer(const edm::ParameterSet &iConfig)
Definition: TrackFitterProducer.cc:39
MakerMacros.h
PixelFitter.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
dumpMFGeometry_cfg.prod
prod
Definition: dumpMFGeometry_cfg.py:24
IdealMagneticFieldRecord.h
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
TrackFitterProducer::theBeamSpotToken
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotToken
Definition: TrackFitterProducer.cc:36
TrackFitterProducer
Definition: TrackFitterProducer.cc:23
TrackerDigiGeometryRecord.h
TrackFitterProducer::magFieldToken_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
Definition: TrackFitterProducer.cc:34
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
iEvent
int iEvent
Definition: GenABIO.cc:224
MagneticField.h
edm::EventSetup
Definition: EventSetup.h:58
TrackFitterProducer::ttrhToken_
const edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > ttrhToken_
Definition: TrackFitterProducer.cc:35
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord >
TrackFitterProducer::produce
void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
Definition: TrackFitterProducer.cc:54
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
TrackFitterProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: TrackFitterProducer.cc:46
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
TrackingComponentsRecord.h
EventSetup.h
ParameterSet.h
EDProducer.h
DeDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
edm::Event
Definition: Event.h:73
TrackFitterProducer::geomToken_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
Definition: TrackFitterProducer.cc:33
TrackFitterProducer::~TrackFitterProducer
~TrackFitterProducer() override
Definition: TrackFitterProducer.cc:26