Go to the documentation of this file.
60 : src_(consumes<
std::vector<
T>>(iConfig.getParameter<
edm::
InputTag>(
"src")))
63 produces<std::vector<reco::Track>>();
64 produces<std::vector<reco::TrackExtra>>();
65 produces<edm::OwnVector<TrackingRecHit>>();
84 unique_ptr<vector<reco::Track>>
out(
new vector<reco::Track>());
86 unique_ptr<vector<reco::TrackExtra>> outEx(
new vector<reco::TrackExtra>());
87 outEx->reserve(
src->size());
92 for (
typename vector<T>::const_iterator it =
src->begin(), ed =
src->end(); it != ed; ++it) {
109 out->back().appendHits(
hits.first,
hits.second, ttopo);
115 if (det0 ==
nullptr || det1 ==
nullptr) {
116 std::cerr <<
"ERROR: bogus detids at beginning or end of range" << std::endl;
138 auto const firstHitIndex = outHits->size();
140 outHits->push_back(*it2);
142 ex.
setHits(rHits, firstHitIndex, outHits->
size() - firstHitIndex);
const TrackerGeomDet * idToDet(DetId) const override
std::pair< const_iterator, const_iterator > range
GlobalPoint globalPosition() const
TrajectorySeed::range getHits(const TrackCandidate &seed) const
virtual LocalPoint localPosition() const =0
DetId geographicalId() const
edm::EDGetTokenT< std::vector< T > > src_
Labels for input collections.
FakeTrackProducer< TrajectorySeed > FakeTrackProducerFromSeed
~FakeTrackProducer() override
const Plane & surface() const
The nominal surface of the GeomDet.
unsigned int detId() const
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
const PTrajectoryStateOnDet & getState(const TrackCandidate &seed) const
TrackCharge charge() const
Charge (-1, 0 or 1)
const LocalTrajectoryParameters & localParameters() const
Matcher of reconstructed objects to other reconstructed objects using the tracks inside them.
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
FakeTrackProducer(const edm::ParameterSet &iConfig)
T const & get(Event const &event, InputTag const &tag) noexcept(false)
math::XYZPoint Point
point in the space
GlobalVector globalMomentum() const
constexpr uint32_t rawId() const
get the raw id
FakeTrackProducer< TrackCandidate > FakeTrackProducerFromCandidate
const PTrajectoryStateOnDet & getState(const TrajectorySeed &seed) const
Muon selection.
math::Error< dimension >::type CovarianceMatrix
5 parameter covariance matrix
TrajectorySeed::range getHits(const TrajectorySeed &seed) const
math::XYZVector Vector
spatial vector