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;
107 selTrackExtras->push_back(
reco::TrackExtra (outpos, outmom,
true, inpos, inmom,
true,
119 for( TrajectoryFitter::RecHitContainer::const_iterator
j = transHits.begin();
120 j != transHits.end();
j ++ ) {
124 selHits->push_back( hit );
129 for( TrajectoryFitter::RecHitContainer::const_iterator
j = transHits.end()-1;
130 j != transHits.begin()-1; --
j ) {
134 selHits->push_back( hit );
149 for (TrackingRecHitCollection::iterator it = selHits->begin(), ed = selHits->end(); it != ed; ++it) {
150 refSetter.
reKey(&*it);
154 LogTrace(
"TrackingRegressionTest") <<
"========== TrackProducer Info ===================";
155 LogTrace(
"TrackingRegressionTest") <<
"number of finalTracks: " << selTracks->size();
156 for (reco::TrackCollection::const_iterator it = selTracks->begin(); it != selTracks->end(); it++) {
157 LogTrace(
"TrackingRegressionTest") <<
"track's n valid and invalid hit, chi2, pt, eta : "
158 << it->found() <<
" , "
159 << it->lost() <<
" , "
160 << it->normalizedChi2() <<
" , "
164 LogTrace(
"TrackingRegressionTest") <<
"=================================================";
168 evt.
put( selTrackExtras );
176 for ( std::map<unsigned int, unsigned int>::iterator
i = tjTkMap.begin();
177 i != tjTkMap.end();
i++ ) {
180 trajTrackMap->insert(
edm::Ref<std::vector<Trajectory> >( rTrajs, (*i).first ),
183 evt.
put( trajTrackMap );
ConstRecHitPointer const & recHit() const
edm::InputTag clusterRemovalInfo_
void setSecondHitPattern(Trajectory *traj, reco::Track &track, const Propagator *prop, const MeasurementTracker *measTk)
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
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
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