34 produces<reco::TrackCollection>();
35 produces<reco::TrackExtraCollection>();
36 produces<TrackingRecHitCollection>();
76 const std::vector<TrajectorySeed>* L2seeds =
nullptr;
77 if (L2seedsCollection.
isValid()) L2seeds = L2seedsCollection.
product();
78 else edm::LogError(
"SeedToTrackProducer") <<
"L2 seeds collection not found !! " << endl;
87 for (
unsigned int i = 0;
i < L2seeds->size() ;
i++){
96 edm::LogVerbatim(
"SeedToTrackProducer") <<
"seedPt=" << seedPt <<
" seedEta=" << seedEta <<
" seedPhi=" << seedPhi << endl;
113 reco::TrackExtra theTrackExtra(dummyFinalPoint, dummyFinalMom,
true, initPoint, initMom,
true,
116 (L2seeds->at(
i)).direction(),
seed);
118 edm::LogVerbatim(
"SeedToTrackProducer") <<
"trackPt=" << theTrack.
pt() <<
" trackEta=" << theTrack.
eta() <<
" trackPhi=" << theTrack.
phi() << endl;
122 unsigned int nHitsAdded = 0;
123 for(TrajectorySeed::recHitContainer::const_iterator itRecHits=(L2seeds->at(
i)).recHits().first; itRecHits!=(L2seeds->at(
i)).recHits().second; ++itRecHits, ++countRH) {
126 selectedTrackHits->push_back(hit);
129 theTrackExtra.setHits( rHits, hidx, nHitsAdded );
131 selectedTracks->push_back(theTrack);
132 selectedTrackExtras->push_back(theTrackExtra);
T getParameter(std::string const &) const
std::remove_cv< typename std::remove_reference< argument_type >::type >::type key_type
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
const CurvilinearTrajectoryError & curvilinearError() const
Sin< T >::type sin(const T &t)
Geom::Phi< T > phi() const
std::vector< Track > TrackCollection
collection of Tracks
double phi() const
azimuthal angle of momentum vector
edm::ESHandle< MagneticField > theMGField
void produce(edm::Event &, const edm::EventSetup &) override
double eta() const
pseudorapidity of momentum vector
virtual TrajectoryStateOnSurface seedTransientState(const TrajectorySeed &)
double pt() const
track transverse momentum
edm::EDGetTokenT< TrajectorySeedCollection > L2seedsTagT_
Cos< T >::type cos(const T &t)
double ptError() const
error on Pt (set to 1000 TeV if charge==0 for safety)
double phiError() const
error on phi
unsigned int detId() const
~SeedToTrackProducer() override
RefProd< PROD > getRefBeforePut()
SeedToTrackProducer(const edm::ParameterSet &)
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
PTrajectoryStateOnDet const & startingState() const
T const * product() const
XYZVectorD XYZVector
spatial vector with cartesian internal representation
XYZPointD XYZPoint
point in space with cartesian internal representation
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
bool appendHitPattern(const TrackingRecHit &hit, const TrackerTopology &ttopo)
append a single hit to the HitPattern
edm::EDGetTokenT< edm::View< TrajectorySeed > > L2seedsTagS_
const AlgebraicSymMatrix55 & matrix() const
GlobalVector globalMomentum() const
const GeomDet * idToDet(DetId) const override
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry