CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Attributes
IntermediateHitTriplets::RegionLayerSets Class Reference

#include <IntermediateHitTriplets.h>

Classes

class  const_iterator
 

Public Types

using PLayerHitTripletsConstIterator = std::vector< PLayerHitTriplets >::const_iterator
 
using TripletConstIterator = std::vector< OrderedHitTriplet >::const_iterator
 

Public Member Functions

const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
const_iterator end () const
 
const LayerHitMapCachelayerHitMapCache () const
 
PLayerHitTripletsConstIterator layerSetsBegin () const
 
PLayerHitTripletsConstIterator layerSetsEnd () const
 
size_t layerTripletsSize () const
 
const TrackingRegionregion () const
 
 RegionLayerSets (const TrackingRegion *region, const LayerHitMapCache *cache, const IntermediateHitTriplets *hitSets, PLayerHitTripletsConstIterator tripletBegin, PLayerHitTripletsConstIterator tripletEnd)
 

Private Attributes

const LayerHitMapCachecache_ = 0
 
const IntermediateHitTripletshitSets_ = 0
 
const PLayerHitTripletsConstIterator layerSetsBegin_
 
const PLayerHitTripletsConstIterator layerSetsEnd_
 
const TrackingRegionregion_ = 0
 

Detailed Description

Helper class to provide nice interface to loop over the layer sets of a region

The value_type of the iterator is LayerHitTriplets, which has an iterator for the hit triplets.

Can not use ihd::RegionLayerSets<T> here because of having separate classes for storage (PLayerHitTriplets) and use (LayerHitTriplets).

Definition at line 106 of file IntermediateHitTriplets.h.

Member Typedef Documentation

Definition at line 108 of file IntermediateHitTriplets.h.

Definition at line 109 of file IntermediateHitTriplets.h.

Constructor & Destructor Documentation

IntermediateHitTriplets::RegionLayerSets::RegionLayerSets ( const TrackingRegion region,
const LayerHitMapCache cache,
const IntermediateHitTriplets hitSets,
PLayerHitTripletsConstIterator  tripletBegin,
PLayerHitTripletsConstIterator  tripletEnd 
)
inline

Definition at line 163 of file IntermediateHitTriplets.h.

167  :
168  region_(region),
169  cache_(cache),
170  hitSets_(hitSets),
171  layerSetsBegin_(tripletBegin), layerSetsEnd_(tripletEnd)
172  {}
const PLayerHitTripletsConstIterator layerSetsBegin_
const PLayerHitTripletsConstIterator layerSetsEnd_

Member Function Documentation

const_iterator IntermediateHitTriplets::RegionLayerSets::begin ( void  ) const
inline

Definition at line 178 of file IntermediateHitTriplets.h.

References IntermediateHitTriplets::end().

178  {
180  return const_iterator(hitSets_, this);
181  else
182  return end();
183  }
const PLayerHitTripletsConstIterator layerSetsBegin_
const PLayerHitTripletsConstIterator layerSetsEnd_
ihd::const_iterator< RegionLayerSets, IntermediateHitTriplets > const_iterator
Iterator over regions.
const_iterator IntermediateHitTriplets::RegionLayerSets::cbegin ( ) const
inline

Definition at line 184 of file IntermediateHitTriplets.h.

References IntermediateHitTriplets::begin().

184 { return begin(); }
const_iterator IntermediateHitTriplets::RegionLayerSets::cend ( ) const
inline

Definition at line 186 of file IntermediateHitTriplets.h.

References IntermediateHitTriplets::end().

186 { return end(); }
const_iterator IntermediateHitTriplets::RegionLayerSets::end ( void  ) const
inline

Definition at line 185 of file IntermediateHitTriplets.h.

185 { return const_iterator(hitSets_, this, const_iterator::end_tag()); }
ihd::const_iterator< RegionLayerSets, IntermediateHitTriplets > const_iterator
Iterator over regions.
const LayerHitMapCache& IntermediateHitTriplets::RegionLayerSets::layerHitMapCache ( ) const
inline

Definition at line 175 of file IntermediateHitTriplets.h.

175 { return *cache_; }
PLayerHitTripletsConstIterator IntermediateHitTriplets::RegionLayerSets::layerSetsBegin ( ) const
inline
PLayerHitTripletsConstIterator IntermediateHitTriplets::RegionLayerSets::layerSetsEnd ( ) const
inline
size_t IntermediateHitTriplets::RegionLayerSets::layerTripletsSize ( ) const
inline
const TrackingRegion& IntermediateHitTriplets::RegionLayerSets::region ( ) const
inline

Definition at line 174 of file IntermediateHitTriplets.h.

174 { return *region_; }

Member Data Documentation

const LayerHitMapCache* IntermediateHitTriplets::RegionLayerSets::cache_ = 0
private

Definition at line 194 of file IntermediateHitTriplets.h.

const IntermediateHitTriplets* IntermediateHitTriplets::RegionLayerSets::hitSets_ = 0
private

Definition at line 195 of file IntermediateHitTriplets.h.

const PLayerHitTripletsConstIterator IntermediateHitTriplets::RegionLayerSets::layerSetsBegin_
private

Definition at line 196 of file IntermediateHitTriplets.h.

const PLayerHitTripletsConstIterator IntermediateHitTriplets::RegionLayerSets::layerSetsEnd_
private

Definition at line 197 of file IntermediateHitTriplets.h.

const TrackingRegion* IntermediateHitTriplets::RegionLayerSets::region_ = 0
private

Definition at line 193 of file IntermediateHitTriplets.h.