CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static 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 TrackingRecHit &hit, const GlobalVector &gdir)
 
void clearNewMatchedHitsFlag ()
 
SiStripRecHitMatcher::Collectorcollector ()
 
bool hasNewMatchedHits () const
 
 HitCollectorForRecHits (const GeomDet *geomDet, const SiStripRecHitMatcher *matcher, const StripClusterParameterEstimator *cpe, RecHitContainer &target)
 
size_t size () const
 always fast as no estimator available here! More...
 

Static Public Member Functions

static const MeasurementEstimatorestimator ()
 
static bool filter ()
 

Private Attributes

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

Detailed Description

Definition at line 69 of file TkGluedMeasurementDet.h.

Member Typedef Documentation

Definition at line 71 of file TkGluedMeasurementDet.h.

Constructor & Destructor Documentation

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

Definition at line 440 of file TkGluedMeasurementDet.cc.

442  :
443  geomDet_(geomDet), matcher_(matcher), cpe_(cpe),target_(target),
444  collector_(boost::bind(&HitCollectorForRecHits::add,boost::ref(*this),_1)),
445  hasNewHits_(false)
446 {
447 }
const StripClusterParameterEstimator * cpe_
void add(SiStripMatchedRecHit2D const &hit)

Member Function Documentation

void TkGluedMeasurementDet::HitCollectorForRecHits::add ( SiStripMatchedRecHit2D const &  hit)
inline
void TkGluedMeasurementDet::HitCollectorForRecHits::addProjected ( const TrackingRecHit hit,
const GlobalVector gdir 
)

Definition at line 464 of file TkGluedMeasurementDet.cc.

References TkGluedMeasurementDet::HitCollectorForSimpleHits::cpe_, TkGluedMeasurementDet::HitCollectorForSimpleHits::geomDet_, eostools::move(), and TkGluedMeasurementDet::HitCollectorForSimpleHits::target_.

466 {
467  auto && vl = projectedPos(hit,*geomDet_, gdir, cpe_);
468  auto && phit = std::make_shared<ProjectedSiStripRecHit2D> (vl.first,vl.second,*geomDet_, static_cast<SiStripRecHit2D const &>(hit));
469  target_.push_back(std::move(phit));
470 }
const StripClusterParameterEstimator * cpe_
def move(src, dest)
Definition: eostools.py:510
void TkGluedMeasurementDet::HitCollectorForRecHits::clearNewMatchedHitsFlag ( )
inline
SiStripRecHitMatcher::Collector& TkGluedMeasurementDet::HitCollectorForRecHits::collector ( void  )
inline

Definition at line 82 of file TkGluedMeasurementDet.h.

82 { return collector_; }
static const MeasurementEstimator& TkGluedMeasurementDet::HitCollectorForRecHits::estimator ( void  )
inlinestatic

Definition at line 88 of file TkGluedMeasurementDet.h.

88 { static const MeasurementEstimator * dummy=nullptr; return *dummy;}
static bool TkGluedMeasurementDet::HitCollectorForRecHits::filter ( )
inlinestatic

Definition at line 85 of file TkGluedMeasurementDet.h.

85 { return false;}
bool TkGluedMeasurementDet::HitCollectorForRecHits::hasNewMatchedHits ( ) const
inline
size_t TkGluedMeasurementDet::HitCollectorForRecHits::size ( void  ) const
inline

always fast as no estimator available here!

Definition at line 86 of file TkGluedMeasurementDet.h.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

86 { return target_.size();}

Member Data Documentation

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

Definition at line 95 of file TkGluedMeasurementDet.h.

const StripClusterParameterEstimator* TkGluedMeasurementDet::HitCollectorForRecHits::cpe_
private

Definition at line 93 of file TkGluedMeasurementDet.h.

const GeomDet* TkGluedMeasurementDet::HitCollectorForRecHits::geomDet_
private

Definition at line 91 of file TkGluedMeasurementDet.h.

bool TkGluedMeasurementDet::HitCollectorForRecHits::hasNewHits_
private

Definition at line 96 of file TkGluedMeasurementDet.h.

const SiStripRecHitMatcher* TkGluedMeasurementDet::HitCollectorForRecHits::matcher_
private

Definition at line 92 of file TkGluedMeasurementDet.h.

RecHitContainer& TkGluedMeasurementDet::HitCollectorForRecHits::target_
private

Definition at line 94 of file TkGluedMeasurementDet.h.