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