22 std::auto_ptr<TrackingRecHitCollection>& selHits,
23 std::auto_ptr<reco::TrackCollection>& selTracks,
24 std::auto_ptr<reco::TrackExtraCollection>& selTrackExtras,
25 std::auto_ptr<std::vector<Trajectory> >& selTrajectories,
36 std::map<unsigned int, unsigned int> tjTkMap;
38 for(AlgoProductCollection::iterator
i=algoResults.begin();
i!=algoResults.end();
i++){
41 selTrajectories->push_back(*theTraj);
57 LogDebug(
"TrackProducer") <<
"In KfTrackProducerBase::putInEvt - seedDir=" << seedDir;
60 selTracks->push_back( t );
69 unsigned int innerId, outerId;
109 selTrackExtras->push_back(
reco::TrackExtra (outpos, outmom,
true, inpos, inmom,
true,
121 for( TrajectoryFitter::RecHitContainer::const_iterator
j = transHits.begin();
122 j != transHits.end();
j ++ ) {
126 selHits->push_back( hit );
131 for( TrajectoryFitter::RecHitContainer::const_iterator
j = transHits.end()-1;
132 j != transHits.begin()-1; --
j ) {
136 selHits->push_back( hit );
151 for (TrackingRecHitCollection::iterator it = selHits->begin(), ed = selHits->end(); it != ed; ++it) {
152 refSetter.
reKey(&*it);
156 LogTrace(
"TrackingRegressionTest") <<
"========== TrackProducer Info ===================";
157 LogTrace(
"TrackingRegressionTest") <<
"number of finalTracks: " << selTracks->size();
158 for (reco::TrackCollection::const_iterator it = selTracks->begin(); it != selTracks->end(); it++) {
159 LogTrace(
"TrackingRegressionTest") <<
"track's n valid and invalid hit, chi2, pt, eta : "
160 << it->found() <<
" , "
161 << it->lost() <<
" , "
162 << it->normalizedChi2() <<
" , "
166 LogTrace(
"TrackingRegressionTest") <<
"=================================================";
170 evt.
put( selTrackExtras );
178 for ( std::map<unsigned int, unsigned int>::iterator
i = tjTkMap.begin();
179 i != tjTkMap.end();
i++ ) {
182 trajTrackMap->insert(
edm::Ref<std::vector<Trajectory> >( rTrajs, (*i).first ),
185 evt.
put( trajTrackMap );
ConstRecHitPointer const & recHit() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::InputTag clusterRemovalInfo_
const CurvilinearTrajectoryError & curvilinearError() const
void reKey(TrackingRecHit *hit) const
edm::Ref< TrackExtraCollection > TrackExtraRef
persistent reference to a TrackExtra
ConstRecHitContainer recHits(bool splitting=false) const
PropagationDirection const & direction() const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::Ref< TrackingRecHitCollection > TrackingRecHitRef
persistent reference to a TrackingRecHit
TrajectoryMeasurement const & lastMeasurement() const
void setSecondHitPattern(Trajectory *traj, reco::Track &track, const Propagator *prop, const MeasurementTrackerEvent *measTk)
GlobalVector momentum() const
edm::RefToBase< TrajectorySeed > seedRef(void) const
std::vector< AlgoProduct > AlgoProductCollection
edm::AssociationMap< edm::OneToOne< std::vector< Trajectory >, reco::TrackCollection, unsigned short > > TrajTrackAssociationCollection
RefProd< PROD > getRefBeforePut()
GlobalPoint position() const
edm::EDGetTokenT< MeasurementTrackerEvent > mteSrc_
void setHitPattern(const C &c)
set hit patterns from vector of hit references
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
void setExtra(const TrackExtraRef &ref)
set reference to "extra" object
TrajectoryMeasurement const & firstMeasurement() const
const GlobalTrajectoryParameters & globalParameters() 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...
virtual void putInEvt(edm::Event &, const Propagator *prop, const MeasurementTracker *measTk, std::auto_ptr< TrackingRecHitCollection > &, std::auto_ptr< reco::TrackCollection > &, std::auto_ptr< reco::TrackExtraCollection > &, std::auto_ptr< std::vector< Trajectory > > &, AlgoProductCollection &)
Put produced collections in the event.
edm::ESHandle< NavigationSchool > theSchool
TrajectoryStateOnSurface const & updatedState() const
reco::TrackResiduals trajectoryToResiduals(const Trajectory &trajectory, enum reco::TrackResiduals::ResidualType type)
boost::remove_cv< typename boost::remove_reference< argument_type >::type >::type key_type
edm::OrphanHandle< TrackCollection > rTracks_
Trajectory::RecHitContainer RecHitContainer