20 iConfig.getParameter<bool>(
"useHitsSplitting")),
29 produces<reco::GsfTrackCollection>().setBranchAlias(
alias_ +
"GsfTracks" );
30 produces<reco::TrackExtraCollection>().setBranchAlias(
alias_ +
"TrackExtras" );
31 produces<reco::GsfTrackExtraCollection>().setBranchAlias(
alias_ +
"GsfTrackExtras" );
32 produces<TrackingRecHitCollection>().setBranchAlias(
alias_ +
"RecHits" );
33 produces<std::vector<Trajectory> >() ;
34 produces<TrajGsfTrackAssociationCollection>();
41 edm::LogInfo(
"GsfTrackProducer") <<
"Analyzing event number: " << theEvent.
id() <<
"\n";
49 std::auto_ptr<std::vector<Trajectory> > outputTrajectoryColl(
new std::vector<Trajectory>);
60 getFromES(setup,theG,theMF,theFitter,thePropagator,theMeasTk,theBuilder);
74 LogDebug(
"GsfTrackProducer") <<
"run the algorithm" <<
"\n";
80 putInEvt(theEvent, thePropagator.
product(), theMeasTk.
product(), outputRHColl, outputTColl, outputTEColl, outputGsfTEColl,
81 outputTrajectoryColl, algoResults, bs);
82 LogDebug(
"GsfTrackProducer") <<
"end" <<
"\n";
T getParameter(std::string const &) const
virtual void produce(edm::Event &, const edm::EventSetup &) override
TrackProducerAlgorithm< reco::GsfTrack > theAlgo
virtual void getFromEvt(edm::Event &, edm::Handle< TrackCandidateCollection > &, reco::BeamSpot &)
Get TrackCandidateCollection from the Event (needed by TrackProducer)
void setSrc(const edm::InputTag &src, const edm::InputTag &bsSrc)
set label of source collection
std::vector< GsfTrackExtra > GsfTrackExtraCollection
collection of GsfTrackExtra objects
void setAlias(std::string alias)
set the aliases of produced collections
void setConf(const edm::ParameterSet &conf)
Set parameter set.
virtual void putInEvt(edm::Event &, const Propagator *prop, const MeasurementTracker *measTk, std::auto_ptr< TrackingRecHitCollection > &, std::auto_ptr< reco::GsfTrackCollection > &, std::auto_ptr< reco::TrackExtraCollection > &, std::auto_ptr< reco::GsfTrackExtraCollection > &, std::auto_ptr< std::vector< Trajectory > > &, AlgoProductCollection &, const reco::BeamSpot &)
Put produced collections in the event.
std::vector< GsfTrack > GsfTrackCollection
collection of GsfTracks
std::vector< AlgoProduct > AlgoProductCollection
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
T const * product() const
void runWithCandidate(const TrackingGeometry *, const MagneticField *, const TrackCandidateCollection &, const TrajectoryFitter *, const Propagator *, const TransientTrackingRecHitBuilder *, const reco::BeamSpot &, AlgoProductCollection &)
Run the Final Fit taking TrackCandidates as input.
GsfTrackProducer(const edm::ParameterSet &iConfig)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
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.