CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
TkGluedMeasurementDet::HitCollectorForRecHits Class Reference

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::Collectorcollector ()
 
bool hasNewMatchedHits () const
 
 HitCollectorForRecHits (const GeomDet *geomDet, const SiStripRecHitMatcher *matcher, RecHitContainer &target)
 

Private Attributes

SiStripRecHitMatcher::Collector collector_
 
const GeomDetgeomDet_
 
bool hasNewHits_
 
const SiStripRecHitMatchermatcher_
 
RecHitContainertarget_
 

Detailed Description

Definition at line 54 of file TkGluedMeasurementDet.h.

Member Typedef Documentation

Definition at line 56 of file TkGluedMeasurementDet.h.

Constructor & Destructor Documentation

TkGluedMeasurementDet::HitCollectorForRecHits::HitCollectorForRecHits ( const GeomDet geomDet,
const SiStripRecHitMatcher matcher,
RecHitContainer target 
)

Definition at line 278 of file TkGluedMeasurementDet.cc.

Member Function Documentation

void TkGluedMeasurementDet::HitCollectorForRecHits::add ( SiStripMatchedRecHit2D const &  hit)
inline

Definition at line 60 of file TkGluedMeasurementDet.h.

References TSiStripMatchedRecHit::build(), SiStripMatchedRecHit2D::clone(), geomDet_, hasNewHits_, matcher_, and target_.

60  {
61  target_.push_back(
62  TSiStripMatchedRecHit::build( geomDet_, std::auto_ptr<TrackingRecHit>(hit.clone()), matcher_)
63  );
64  hasNewHits_ = true;
65  }
static RecHitPointer build(const GeomDet *geom, const TrackingRecHit *rh, const SiStripRecHitMatcher *matcher, const StripClusterParameterEstimator *cpe=0, float weight=1., float annealing=1., bool computeCoarseLocalPosition=false)
void TkGluedMeasurementDet::HitCollectorForRecHits::addProjected ( const TransientTrackingRecHit hit,
const GlobalVector gdir 
)

Definition at line 288 of file TkGluedMeasurementDet.cc.

References TrackingRecHitProjector< ResultingHit >::project().

290 {
292  target_.push_back( proj.project( hit, *geomDet_, gdir));
293 }
RecHitPointer project(const TransientTrackingRecHit &hit, const GeomDet &det, const TrajectoryStateOnSurface &ts) const
void TkGluedMeasurementDet::HitCollectorForRecHits::clearNewMatchedHitsFlag ( )
inline

Definition at line 70 of file TkGluedMeasurementDet.h.

References hasNewHits_.

SiStripRecHitMatcher::Collector& TkGluedMeasurementDet::HitCollectorForRecHits::collector ( void  )
inline

Definition at line 68 of file TkGluedMeasurementDet.h.

References collector_.

68 { return collector_; }
bool TkGluedMeasurementDet::HitCollectorForRecHits::hasNewMatchedHits ( ) const
inline

Definition at line 69 of file TkGluedMeasurementDet.h.

References hasNewHits_.

Member Data Documentation

SiStripRecHitMatcher::Collector TkGluedMeasurementDet::HitCollectorForRecHits::collector_
private

Definition at line 75 of file TkGluedMeasurementDet.h.

Referenced by collector().

const GeomDet* TkGluedMeasurementDet::HitCollectorForRecHits::geomDet_
private

Definition at line 72 of file TkGluedMeasurementDet.h.

Referenced by add().

bool TkGluedMeasurementDet::HitCollectorForRecHits::hasNewHits_
private

Definition at line 76 of file TkGluedMeasurementDet.h.

Referenced by add(), clearNewMatchedHitsFlag(), and hasNewMatchedHits().

const SiStripRecHitMatcher* TkGluedMeasurementDet::HitCollectorForRecHits::matcher_
private

Definition at line 73 of file TkGluedMeasurementDet.h.

Referenced by add().

RecHitContainer& TkGluedMeasurementDet::HitCollectorForRecHits::target_
private

Definition at line 74 of file TkGluedMeasurementDet.h.

Referenced by add().