26 produces<reco::TrackCollection>().setBranchAlias(
alias_ +
"Tracks" );
27 produces<reco::TrackExtraCollection>().setBranchAlias(
alias_ +
"TrackExtras" );
28 produces<TrackingRecHitCollection>().setBranchAlias(
alias_ +
"RecHits" );
29 produces<std::vector<Trajectory> >() ;
30 produces<TrajTrackAssociationCollection>();
36 edm::LogInfo(
"MTFTrackProducer") <<
"Analyzing event number: " << theEvent.
id() <<
"\n";
43 std::auto_ptr<std::vector<Trajectory> > outputTrajectoryColl(
new std::vector<Trajectory>);
54 getFromES(setup,theG,theMF,theFitter,thePropagator,theMeasTk,theBuilder);
58 std::string measurementCollectorName =
getConf().
getParameter<std::string>(
"MeasurementCollector");
70 getFromEvt(theEvent,theTrajectoryCollection,bs);
72 measurementCollectorHandle->updateEvent(theEvent);
82 outputRHColl, outputTColl, outputTEColl, outputTrajectoryColl, algoResults);
83 LogDebug(
"MTFTrackProducer") <<
"end" <<
"\n";
91 theEvent.
getByLabel(src_,theTrajectoryCollection );
96 bs = *recoBeamSpotHandle;
T getParameter(std::string const &) const
std::vector< Track > TrackCollection
collection of Tracks
MTFTrackProducer(const edm::ParameterSet &iConfig)
Constructor.
void setAlias(std::string alias)
set the aliases of produced collections
MTFTrackProducerAlgorithm theAlgo
void runWithCandidate(const TrackingGeometry *, const MagneticField *, const std::vector< Trajectory > &, const TrajectoryFitter *, const TransientTrackingRecHitBuilder *, const MultiTrackFilterHitCollector *measurementTracker, const SiTrackerMultiRecHitUpdatorMTF *, const reco::BeamSpot &, AlgoProductCollection &) const
Run the Final Fit taking TrackCandidates as input.
void setConf(edm::ParameterSet conf)
Set parameter set.
std::vector< AlgoProduct > AlgoProductCollection
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void setSrc(edm::InputTag src, edm::InputTag bsSrc)
set label of source collection
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
T const * product() const
void getFromEvt(edm::Event &, edm::Handle< TrajectoryCollection > &, reco::BeamSpot &)
virtual void putInEvt(edm::Event &, const Propagator *prop, const MeasurementTracker *measTk, std::auto_ptr< TrackingRecHitCollection > &, std::auto_ptr< reco::TrackCollection > &, std::auto_ptr< reco::TrackExtraCollection > &, std::auto_ptr< std::vector< Trajectory > > &, AlgoProductCollection &)
Put produced collections in the event.
virtual void produce(edm::Event &, const edm::EventSetup &)
Implementation of produce method.
const edm::ParameterSet & getConf() const
virtual void getFromES(const edm::EventSetup &, edm::ESHandle< TrackerGeometry > &, edm::ESHandle< MagneticField > &, edm::ESHandle< TrajectoryFitter > &, edm::ESHandle< Propagator > &, edm::ESHandle< MeasurementTracker > &, edm::ESHandle< TransientTrackingRecHitBuilder > &)
Get needed services from the Event Setup.