68 produces<std::vector<reco::Track>>();
69 produces<std::vector<reco::TrackExtra>>();
70 produces<edm::OwnVector<TrackingRecHit>>();
86 unique_ptr<vector<reco::Track>>
out(
new vector<reco::Track>());
88 unique_ptr<vector<reco::TrackExtra>> outEx(
new vector<reco::TrackExtra>());
89 outEx->reserve(
src->size());
94 for (
typename vector<T>::const_iterator
it =
src->begin(), ed =
src->end();
it != ed; ++
it) {
100 std::cerr <<
"ERROR: bogus detid " << pstate.
detId() << std::endl;
111 out->back().appendHits(
hits.begin(),
hits.end(), ttopo);
117 if (det0 ==
nullptr || det1 ==
nullptr) {
118 std::cerr <<
"ERROR: bogus detids at beginning or end of range" << std::endl;
140 auto const firstHitIndex = outHits->size();
141 for (
auto const &it2 :
hits) {
142 outHits->push_back(it2);
144 ex.
setHits(rHits, firstHitIndex, outHits->
size() - firstHitIndex);
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
void swap(Association< C > &lhs, Association< C > &rhs)
unsigned int detId() const
FakeTrackProducer< TrajectorySeed > FakeTrackProducerFromSeed
~FakeTrackProducer() override
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoToken_
edm::EDGetTokenT< std::vector< T > > src_
Labels for input collections.
#define DEFINE_FWK_MODULE(type)
math::XYZPoint Point
point in the space
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
const TrackerGeomDet * idToDet(DetId) const override
const PTrajectoryStateOnDet & getState(const TrackCandidate &seed) const
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
FakeTrackProducer(const edm::ParameterSet &iConfig)
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
const Plane & surface() const
The nominal surface of the GeomDet.
DetId geographicalId() const
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geometryToken_
constexpr uint32_t rawId() const
get the raw id
const PTrajectoryStateOnDet & getState(const TrajectorySeed &seed) const
Muon selection.
FakeTrackProducer< TrackCandidate > FakeTrackProducerFromCandidate
virtual LocalPoint localPosition() const =0
math::XYZVector Vector
spatial vector
math::Error< dimension >::type CovarianceMatrix
5 parameter covariance matrix