CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes
TkStripRecHitIter Struct Reference

#include <TkStripMeasurementDet.h>

Public Types

using detset = edmNew::DetSet< SiStripCluster >
 
using new_const_iterator = detset::const_iterator
 

Public Member Functions

void advance ()
 
SiStripRecHit2D buildHit () const
 
bool empty () const
 
bool operator!= (TkStripRecHitIter const &rh)
 
SiStripRecHit2D operator* () const
 
TkStripRecHitIteroperator++ ()
 
bool operator< (TkStripRecHitIter const &rh)
 
bool operator== (TkStripRecHitIter const &rh)
 
 TkStripRecHitIter ()
 
 TkStripRecHitIter (const TkStripMeasurementDet &imdet, const TrajectoryStateOnSurface &itsos, const MeasurementTrackerEvent &idata)
 
 TkStripRecHitIter (new_const_iterator ci, new_const_iterator ce, const TkStripMeasurementDet &imdet, const TrajectoryStateOnSurface &itsos, const MeasurementTrackerEvent &idata)
 

Public Attributes

new_const_iterator clusterE
 
new_const_iterator clusterI
 
const MeasurementTrackerEventdata = nullptr
 
const TkStripMeasurementDetmdet = nullptr
 
const TrajectoryStateOnSurfacetsos = nullptr
 

Detailed Description

Definition at line 32 of file TkStripMeasurementDet.h.

Member Typedef Documentation

◆ detset

Definition at line 33 of file TkStripMeasurementDet.h.

◆ new_const_iterator

Definition at line 34 of file TkStripMeasurementDet.h.

Constructor & Destructor Documentation

◆ TkStripRecHitIter() [1/3]

TkStripRecHitIter::TkStripRecHitIter ( )
inline

Definition at line 36 of file TkStripMeasurementDet.h.

36 {}

◆ TkStripRecHitIter() [2/3]

TkStripRecHitIter::TkStripRecHitIter ( const TkStripMeasurementDet imdet,
const TrajectoryStateOnSurface itsos,
const MeasurementTrackerEvent idata 
)
inline

Definition at line 37 of file TkStripMeasurementDet.h.

40  : mdet(&imdet), tsos(&itsos), data(&idata) {}

◆ TkStripRecHitIter() [3/3]

TkStripRecHitIter::TkStripRecHitIter ( new_const_iterator  ci,
new_const_iterator  ce,
const TkStripMeasurementDet imdet,
const TrajectoryStateOnSurface itsos,
const MeasurementTrackerEvent idata 
)
inline

Definition at line 42 of file TkStripMeasurementDet.h.

47  : mdet(&imdet), tsos(&itsos), data(&idata), clusterI(ci), clusterE(ce) {}

Member Function Documentation

◆ advance()

void TkStripRecHitIter::advance ( )
inline

Definition at line 295 of file TkStripMeasurementDet.h.

295 { mdet->advance(*this); }

References TkStripMeasurementDet::advance(), and mdet.

◆ buildHit()

SiStripRecHit2D TkStripRecHitIter::buildHit ( ) const
inline

Definition at line 294 of file TkStripMeasurementDet.h.

294 { return mdet->hit(*this); }

References TkStripMeasurementDet::hit(), and mdet.

◆ empty()

bool TkStripRecHitIter::empty ( void  ) const
inline

Definition at line 60 of file TkStripMeasurementDet.h.

60 { return clusterI == clusterE; }

◆ operator!=()

bool TkStripRecHitIter::operator!= ( TkStripRecHitIter const &  rh)
inline

Definition at line 63 of file TkStripMeasurementDet.h.

63 { return clusterI != rh.clusterI; }

References clusterI.

◆ operator*()

SiStripRecHit2D TkStripRecHitIter::operator* ( void  ) const
inline

Definition at line 71 of file TkStripMeasurementDet.h.

71 { return buildHit(); }

◆ operator++()

TkStripRecHitIter& TkStripRecHitIter::operator++ ( void  )
inline

Definition at line 66 of file TkStripMeasurementDet.h.

66  {
67  advance();
68  return *this;
69  }

◆ operator<()

bool TkStripRecHitIter::operator< ( TkStripRecHitIter const &  rh)
inline

Definition at line 64 of file TkStripMeasurementDet.h.

64 { return clusterI < rh.clusterI; }

References clusterI.

◆ operator==()

bool TkStripRecHitIter::operator== ( TkStripRecHitIter const &  rh)
inline

Definition at line 62 of file TkStripMeasurementDet.h.

62 { return clusterI == rh.clusterI; }

References clusterI.

Member Data Documentation

◆ clusterE

new_const_iterator TkStripRecHitIter::clusterE

Definition at line 54 of file TkStripMeasurementDet.h.

◆ clusterI

new_const_iterator TkStripRecHitIter::clusterI

Definition at line 53 of file TkStripMeasurementDet.h.

Referenced by operator!=(), operator<(), and operator==().

◆ data

const MeasurementTrackerEvent* TkStripRecHitIter::data = nullptr

◆ mdet

const TkStripMeasurementDet* TkStripRecHitIter::mdet = nullptr

Definition at line 49 of file TkStripMeasurementDet.h.

Referenced by advance(), and buildHit().

◆ tsos

const TrajectoryStateOnSurface* TkStripRecHitIter::tsos = nullptr

Definition at line 50 of file TkStripMeasurementDet.h.

TkStripRecHitIter::buildHit
SiStripRecHit2D buildHit() const
Definition: TkStripMeasurementDet.h:294
TkStripMeasurementDet::hit
SiStripRecHit2D hit(TkStripRecHitIter const &hi) const
Definition: TkStripMeasurementDet.cc:263
TkStripRecHitIter::clusterE
new_const_iterator clusterE
Definition: TkStripMeasurementDet.h:54
TkStripRecHitIter::mdet
const TkStripMeasurementDet * mdet
Definition: TkStripMeasurementDet.h:49
TkStripRecHitIter::tsos
const TrajectoryStateOnSurface * tsos
Definition: TkStripMeasurementDet.h:50
TkStripMeasurementDet::advance
void advance(TkStripRecHitIter &hi) const
Definition: TkStripMeasurementDet.cc:250
TkStripRecHitIter::clusterI
new_const_iterator clusterI
Definition: TkStripMeasurementDet.h:53
TkStripRecHitIter::advance
void advance()
Definition: TkStripMeasurementDet.h:295
TkStripRecHitIter::data
const MeasurementTrackerEvent * data
Definition: TkStripMeasurementDet.h:51