Go to the documentation of this file.
33 produces<reco::TrackCollection>();
34 produces<reco::TrackExtraCollection>();
35 produces<TrackingRecHitCollection>();
71 const std::vector<TrajectorySeed> *L2seeds =
nullptr;
75 edm::LogError(
"SeedToTrackProducer") <<
"L2 seeds collection not found !! " << endl;
81 for (
unsigned int i = 0;
i < L2seeds->size();
i++) {
89 <<
"seedPt=" << seedPt <<
" seedEta=" << seedEta <<
" seedPhi=" << seedPhi << endl;
108 reco::TrackBase::TrackQuality::tight);
125 (L2seeds->at(
i)).direction(),
129 <<
"trackPt=" << theTrack.
pt() <<
" trackEta=" << theTrack.
eta() <<
" trackPhi=" << theTrack.
phi() << endl;
131 <<
"trackPtError=" << theTrack.
ptError() <<
"trackPhiError=" << theTrack.
phiError() << endl;
134 unsigned int nHitsAdded = 0;
135 for (
auto const &
recHit : L2seeds->at(
i).recHits()) {
138 selectedTrackHits->push_back(
hit);
141 theTrackExtra.setHits(rHits, hidx, nHitsAdded);
144 selectedTrackExtras->push_back(theTrackExtra);
double ptError() const
error on Pt (set to 1000 TeV if charge==0 for safety)
virtual TrajectoryStateOnSurface seedTransientState(const TrajectorySeed &)
SeedToTrackProducer(const edm::ParameterSet &)
Sin< T >::type sin(const T &t)
double pt() const
track transverse momentum
unsigned int detId() const
Cos< T >::type cos(const T &t)
#define DEFINE_FWK_MODULE(type)
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
edm::EDGetTokenT< edm::View< TrajectorySeed > > L2seedsTagS_
double phi() const
azimuthal angle of momentum vector
XYZPointD XYZPoint
point in space with cartesian internal representation
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
double eta() const
pseudorapidity of momentum vector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Log< level::Error, false > LogError
void produce(edm::Event &, const edm::EventSetup &) override
std::remove_cv< typename std::remove_reference< argument_type >::type >::type key_type
bool appendHitPattern(const TrackingRecHit &hit, const TrackerTopology &ttopo)
append a single hit to the HitPattern
void setExtra(const TrackExtraRef &ref)
set reference to "extra" object
GlobalVector globalMomentum() const
edm::EDGetTokenT< TrajectorySeedCollection > L2seedsTagT_
Log< level::Info, true > LogVerbatim
const CurvilinearTrajectoryError & curvilinearError() const
const GeomDet * idToDet(DetId) const override
edm::OwnVector< TrackingRecHit > TrackingRecHitCollection
collection of TrackingRecHits
edm::ESHandle< MagneticField > theMGField
T getParameter(std::string const &) const
double phiError() const
error on phi
PTrajectoryStateOnDet const & startingState() const
~SeedToTrackProducer() override
std::vector< Track > TrackCollection
collection of Tracks
Geom::Phi< T > phi() const
const AlgebraicSymMatrix55 & matrix() const