23 iConfig.getParameter<
bool>(
"useHitsSplitting")),
34 produces<reco::GsfTrackCollection>().setBranchAlias(
alias_ +
"GsfTracks" );
35 produces<reco::TrackExtraCollection>().setBranchAlias(
alias_ +
"TrackExtras" );
36 produces<reco::GsfTrackExtraCollection>().setBranchAlias(
alias_ +
"GsfTrackExtras" );
37 produces<TrackingRecHitCollection>().setBranchAlias(
alias_ +
"RecHits" );
38 produces<std::vector<Trajectory> >() ;
39 produces<TrajGsfTrackAssociationCollection>();
46 edm::LogInfo(
"GsfTrackProducer") <<
"Analyzing event number: " << theEvent.
id() <<
"\n";
54 std::unique_ptr<std::vector<Trajectory> > outputTrajectoryColl(
new std::vector<Trajectory>);
65 getFromES(setup,theG,theMF,theFitter,thePropagator,theMeasTk,theBuilder);
82 LogDebug(
"GsfTrackProducer") <<
"run the algorithm" <<
"\n";
88 putInEvt(theEvent, thePropagator.
product(), theMeasTk.
product(), outputRHColl, outputTColl, outputTEColl, outputGsfTEColl,
89 outputTrajectoryColl, algoResults, theBuilder.
product(), bs, httopo.
product());
90 LogDebug(
"GsfTrackProducer") <<
"end" <<
"\n";
100 desc.
add<
bool>(
"useHitsSplitting",
false);
101 desc.
add<
bool>(
"TrajectoryInEvent",
false);
107 desc.
add<
bool>(
"GeometricInnerState",
false);
110 descriptions.
add(
"gsfTrackProducer", desc);
T getParameter(std::string const &) const
void produce(edm::Event &, const edm::EventSetup &) override
Method where the procduction take place. To be implemented in concrete classes.
TrackProducerAlgorithm< reco::GsfTrack > theAlgo
virtual void getFromEvt(edm::Event &, edm::Handle< TrackCandidateCollection > &, reco::BeamSpot &)
Get TrackCandidateCollection from the Event (needed by TrackProducer)
std::vector< GsfTrackExtra > GsfTrackExtraCollection
collection of GsfTrackExtra objects
def setup(process, global_tag, zero_tesla=False)
void setAlias(std::string alias)
set the aliases of produced collections
void setConf(const edm::ParameterSet &conf)
Set parameter set.
std::vector< GsfTrack > GsfTrackCollection
collection of GsfTracks
virtual void putInEvt(edm::Event &, const Propagator *prop, const MeasurementTracker *measTk, std::unique_ptr< TrackingRecHitCollection > &, std::unique_ptr< reco::GsfTrackCollection > &, std::unique_ptr< reco::TrackExtraCollection > &, std::unique_ptr< reco::GsfTrackExtraCollection > &, std::unique_ptr< std::vector< Trajectory > > &, AlgoProductCollection &, TransientTrackingRecHitBuilder const *, const reco::BeamSpot &, const TrackerTopology *ttopo)
Put produced collections in the event.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void setSrc(const edm::EDGetToken &src, const edm::EDGetTokenT< reco::BeamSpot > &bsSrc, const edm::EDGetTokenT< MeasurementTrackerEvent > &mteSrc)
set label of source collection
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< AlgoProduct > AlgoProductCollection
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.
T const * product() const
GsfTrackProducer(const edm::ParameterSet &iConfig)
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.