Public Types | |
typedef SiStripRecHitMatcher::Collector | Collector |
Public Member Functions | |
void | add (SiStripMatchedRecHit2D const &hit) |
void | addProjected (const TransientTrackingRecHit &hit, const GlobalVector &gdir) |
void | clearNewMatchedHitsFlag () |
SiStripRecHitMatcher::Collector & | collector () |
bool | hasNewMatchedHits () const |
HitCollectorForRecHits (const GeomDet *geomDet, const SiStripRecHitMatcher *matcher, const StripClusterParameterEstimator *cpe, RecHitContainer &target) | |
Private Attributes | |
SiStripRecHitMatcher::Collector | collector_ |
const StripClusterParameterEstimator * | cpe_ |
const GeomDet * | geomDet_ |
bool | hasNewHits_ |
const SiStripRecHitMatcher * | matcher_ |
RecHitContainer & | target_ |
Definition at line 59 of file TkGluedMeasurementDet.h.
Definition at line 61 of file TkGluedMeasurementDet.h.
TkGluedMeasurementDet::HitCollectorForRecHits::HitCollectorForRecHits | ( | const GeomDet * | geomDet, |
const SiStripRecHitMatcher * | matcher, | ||
const StripClusterParameterEstimator * | cpe, | ||
RecHitContainer & | target | ||
) |
Definition at line 282 of file TkGluedMeasurementDet.cc.
: geomDet_(geomDet), matcher_(matcher), cpe_(cpe),target_(target), collector_(boost::bind(&HitCollectorForRecHits::add,boost::ref(*this),_1)), hasNewHits_(false) { }
void TkGluedMeasurementDet::HitCollectorForRecHits::add | ( | SiStripMatchedRecHit2D const & | hit | ) | [inline] |
Definition at line 66 of file TkGluedMeasurementDet.h.
References newFWLiteAna::build.
{ target_.push_back( TSiStripMatchedRecHit::build( geomDet_, std::auto_ptr<TrackingRecHit>(hit.clone()), matcher_,cpe_) ); hasNewHits_ = true; }
void TkGluedMeasurementDet::HitCollectorForRecHits::addProjected | ( | const TransientTrackingRecHit & | hit, |
const GlobalVector & | gdir | ||
) |
Definition at line 292 of file TkGluedMeasurementDet.cc.
References trackerHitRTTI::proj, and TrackingRecHitProjector< ResultingHit >::project().
{ TrackingRecHitProjector<ProjectedRecHit2D> proj; target_.push_back( proj.project( hit, *geomDet_, gdir)); }
void TkGluedMeasurementDet::HitCollectorForRecHits::clearNewMatchedHitsFlag | ( | ) | [inline] |
Definition at line 77 of file TkGluedMeasurementDet.h.
{ hasNewHits_ = false; }
SiStripRecHitMatcher::Collector& TkGluedMeasurementDet::HitCollectorForRecHits::collector | ( | void | ) | [inline] |
Definition at line 75 of file TkGluedMeasurementDet.h.
{ return collector_; }
bool TkGluedMeasurementDet::HitCollectorForRecHits::hasNewMatchedHits | ( | ) | const [inline] |
Definition at line 76 of file TkGluedMeasurementDet.h.
{ return hasNewHits_; }
Definition at line 83 of file TkGluedMeasurementDet.h.
Definition at line 81 of file TkGluedMeasurementDet.h.
const GeomDet* TkGluedMeasurementDet::HitCollectorForRecHits::geomDet_ [private] |
Definition at line 79 of file TkGluedMeasurementDet.h.
bool TkGluedMeasurementDet::HitCollectorForRecHits::hasNewHits_ [private] |
Definition at line 84 of file TkGluedMeasurementDet.h.
Definition at line 80 of file TkGluedMeasurementDet.h.
Definition at line 82 of file TkGluedMeasurementDet.h.