63 src_(consumes<
std::vector<
T>>(iConfig.getParameter<
edm::InputTag>(
"src")))
66 produces<std::vector<reco::Track> >();
67 produces<std::vector<reco::TrackExtra> >();
68 produces<edm::OwnVector<TrackingRecHit> >();
89 unique_ptr<vector<reco::Track> >
out(
new vector<reco::Track>());
90 out->reserve(src->size());
91 unique_ptr<vector<reco::TrackExtra> > outEx(
new vector<reco::TrackExtra>());
92 outEx->reserve(src->size());
97 for (
typename vector<T>::const_iterator it = src->begin(), ed = src->end(); it != ed; ++it) {
102 if (det ==
nullptr) {
std::cerr <<
"ERROR: bogus detid " << pstate.
detId() << std::endl;
continue; }
111 out->back().appendHits(hits.first, hits.second, ttopo);
117 if (det0 ==
nullptr || det1 ==
nullptr) {
std::cerr <<
"ERROR: bogus detids at beginning or end of range" << std::endl;
continue; }
129 auto const firstHitIndex = outHits->size();
131 outHits->push_back(*it2);
133 ex.
setHits( rHits, firstHitIndex, outHits->
size()-firstHitIndex);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const LocalTrajectoryParameters & localParameters() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
TrajectorySeed::range getHits(const TrackCandidate &seed) const
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
GlobalPoint globalPosition() const
const Plane & surface() const
The nominal surface of the GeomDet.
FakeTrackProducer< TrajectorySeed > FakeTrackProducerFromSeed
~FakeTrackProducer() override
uint32_t rawId() const
get the raw id
const PTrajectoryStateOnDet & getState(const TrackCandidate &seed) const
PTrajectoryStateOnDet const & trajectoryStateOnDet() const
edm::EDGetTokenT< std::vector< T > > src_
Labels for input collections.
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
const PTrajectoryStateOnDet & getState(const TrajectorySeed &seed) const
Muon selection.
TrajectorySeed::range getHits(const TrajectorySeed &seed) const
std::pair< const_iterator, const_iterator > range
unsigned int detId() const
math::XYZPoint Point
point in the space
virtual LocalPoint localPosition() const =0
RefProd< PROD > getRefBeforePut()
FakeTrackProducer(const edm::ParameterSet &iConfig)
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
PTrajectoryStateOnDet const & startingState() const
TrackCharge charge() const
Charge (-1, 0 or 1)
GlobalVector globalMomentum() const
FakeTrackProducer< TrackCandidate > FakeTrackProducerFromCandidate
const TrackerGeomDet * idToDet(DetId) const override
DetId geographicalId() const
math::XYZVector Vector
spatial vector
math::Error< dimension >::type CovarianceMatrix
5 parameter covariance matrix