50 produces<reco::TrackCollection>();
51 produces<reco::TrackExtraCollection>();
52 produces<TrackingRecHitCollection>();
96 const std::vector<TrajectorySeed>* L2seeds = 0;
97 if (L2seedsCollection.isValid()) L2seeds = L2seedsCollection.product();
98 else edm::LogError(
"SeedToTrackProducer") <<
"L2 seeds collection not found !! " << endl;
107 for (
unsigned int i = 0;
i < L2seeds->size() ;
i++){
116 edm::LogVerbatim(
"SeedToTrackProducer") <<
"seedPt=" << seedPt <<
" seedEta=" << seedEta <<
" seedPhi=" << seedPhi << endl;
133 reco::TrackExtra theTrackExtra(dummyFinalPoint, dummyFinalMom,
true, initPoint, initMom,
true,
136 (L2seeds->at(
i)).direction(), seed);
138 edm::LogVerbatim(
"SeedToTrackProducer") <<
"trackPt=" << theTrack.
pt() <<
" trackEta=" << theTrack.
eta() <<
" trackPhi=" << theTrack.
phi() << endl;
142 unsigned int index_hit = 0;
143 for(TrajectorySeed::recHitContainer::const_iterator itRecHits=(L2seeds->at(
i)).recHits().first; itRecHits!=(L2seeds->at(
i)).recHits().second; ++itRecHits, ++countRH) {
146 selectedTrackHits->push_back(hit);
150 selectedTracks->push_back(theTrack);
151 selectedTrackExtras->push_back(theTrackExtra);
154 iEvent.
put(selectedTracks);
155 iEvent.
put(selectedTrackExtras);
156 iEvent.
put(selectedTrackHits);
T getParameter(std::string const &) 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
virtual void beginJob() override
edm::ESHandle< MagneticField > theMGField
virtual void produce(edm::Event &, const edm::EventSetup &) override
double eta() const
pseudorapidity of momentum vector
void addDefault(ParameterSetDescription const &psetDescription)
virtual TrajectoryStateOnSurface seedTransientState(const TrajectorySeed &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::Ref< TrackingRecHitCollection > TrackingRecHitRef
persistent reference to a TrackingRecHit
double pt() const
track transverse momentum
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
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
RefProd< PROD > getRefBeforePut()
SeedToTrackProducer(const edm::ParameterSet &)
void setHitPattern(const C &c)
set hit patterns from vector of hit references
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
XYZVectorD XYZVector
spatial vector with cartesian internal representation
XYZPointD XYZPoint
point in space with cartesian internal representation
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
edm::InputTag L2seedsTag_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const AlgebraicSymMatrix55 & matrix() const
GlobalVector globalMomentum() const
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
boost::remove_cv< typename boost::remove_reference< argument_type >::type >::type key_type
virtual void endJob() override