67 src_(iConfig.getParameter<edm::InputTag>(
"src"))
70 produces<std::vector<reco::Track> >();
71 produces<std::vector<reco::TrackExtra> >();
72 produces<edm::OwnVector<TrackingRecHit> >();
88 auto_ptr<vector<reco::Track> >
out(
new vector<reco::Track>());
89 out->reserve(
src->size());
90 auto_ptr<vector<reco::TrackExtra> > outEx(
new vector<reco::TrackExtra>());
91 outEx->reserve(
src->size());
96 for (
typename vector<T>::const_iterator it =
src->begin(), ed =
src->end(); it != ed; ++it) {
101 if (det == 0) {
std::cerr <<
"ERROR: bogus detid " << pstate.
detId() << std::endl;
continue; }
110 out->back().setHitPattern(hits.first, hits.second);
116 if (det0 == 0 || det1 == 0) {
std::cerr <<
"ERROR: bogus detids at beginning or end of range" << std::endl;
continue; }
129 outHits->push_back(*it2);
const LocalTrajectoryParameters & localParameters() const
edm::ESHandle< MagneticField > theMagField
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.
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
GlobalPoint globalPosition() const
DEFINE_FWK_MODULE(HiMixingModule)
const Plane & surface() const
The nominal surface of the GeomDet.
FakeTrackProducer< TrajectorySeed > FakeTrackProducerFromSeed
uint32_t rawId() const
get the raw id
const PTrajectoryStateOnDet & getState(const TrackCandidate &seed) const
PTrajectoryStateOnDet const & trajectoryStateOnDet() const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
edm::Ref< TrackingRecHitCollection > TrackingRecHitRef
persistent reference to a TrackingRecHit
const PTrajectoryStateOnDet & getState(const TrajectorySeed &seed) const
TrajectorySeed::range getHits(const TrajectorySeed &seed) const
std::pair< const_iterator, const_iterator > range
unsigned int detId() const
virtual ~FakeTrackProducer()
math::XYZPoint Point
point in the space
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
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)
edm::InputTag src_
Labels for input collections.
edm::ESHandle< TrackerGeometry > theGeometry
Muon selection.
GlobalVector globalMomentum() const
FakeTrackProducer< TrackCandidate > FakeTrackProducerFromCandidate
DetId geographicalId() const
virtual LocalPoint localPosition() const =0
math::XYZVector Vector
spatial vector
math::Error< dimension >::type CovarianceMatrix
5 parameter covariance matrix