|
|
Go to the documentation of this file.
28 iConfig.getParameter<
bool>(
"useHitsSplitting")),
38 produces<reco::GsfTrackCollection>().setBranchAlias(
alias_ +
"GsfTracks");
39 produces<reco::TrackExtraCollection>().setBranchAlias(
alias_ +
"TrackExtras");
40 produces<reco::GsfTrackExtraCollection>().setBranchAlias(
alias_ +
"GsfTrackExtras");
41 produces<TrackingRecHitCollection>().setBranchAlias(
alias_ +
"RecHits");
42 produces<std::vector<Trajectory> >();
43 produces<TrajGsfTrackAssociationCollection>();
47 edm::LogInfo(
"GsfTrackProducer") <<
"Analyzing event number: " << theEvent.
id() <<
"\n";
55 std::unique_ptr<std::vector<Trajectory> > outputTrajectoryColl(
new std::vector<Trajectory>);
66 getFromES(
setup, theG, theMF, theFitter, thePropagator, theMeasTk, theBuilder);
83 LogDebug(
"GsfTrackProducer") <<
"run the algorithm"
94 edm::LogInfo(
"GsfTrackProducer") <<
"cms::Exception caught!!!"
108 outputTrajectoryColl,
113 LogDebug(
"GsfTrackProducer") <<
"end"
124 desc.add<
bool>(
"useHitsSplitting",
false);
125 desc.add<
bool>(
"TrajectoryInEvent",
false);
131 desc.add<
bool>(
"GeometricInnerState",
false);
134 descriptions.
add(
"gsfTrackProducer",
desc);
T const * product() 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.
virtual void getFromEvt(edm::Event &, edm::Handle< TrackCandidateCollection > &, reco::BeamSpot &)
Get TrackCandidateCollection from the Event (needed by TrackProducer)
void setConf(const edm::ParameterSet &conf)
Set parameter set.
std::vector< GsfTrackExtra > GsfTrackExtraCollection
collection of GsfTrackExtra objects
Log< level::Info, false > LogInfo
std::vector< AlgoProduct > AlgoProductCollection
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
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.
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
void setAlias(std::string alias)
set the aliases of produced collections
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.
GsfTrackProducer(const edm::ParameterSet &iConfig)
void produce(edm::Event &, const edm::EventSetup &) override
Method where the procduction take place. To be implemented in concrete classes.
void setSrc(const edm::EDGetToken &src, const edm::EDGetTokenT< reco::BeamSpot > &bsSrc, const edm::EDGetTokenT< MeasurementTrackerEvent > &mteSrc)
set label of source collection
std::vector< GsfTrack > GsfTrackCollection
collection of GsfTracks
TrackProducerAlgorithm< reco::GsfTrack > theAlgo
T getParameter(std::string const &) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)