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_ = nullptr
 
const IntermediateHitTripletshitSets_ = nullptr
 
const PLayerHitTripletsConstIterator layerSetsBegin_
 
const PLayerHitTripletsConstIterator layerSetsEnd_
 
const TrackingRegionregion_ = nullptr
 

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 99 of file IntermediateHitTriplets.h.

Member Typedef Documentation

◆ PLayerHitTripletsConstIterator

Definition at line 101 of file IntermediateHitTriplets.h.

◆ TripletConstIterator

Definition at line 102 of file IntermediateHitTriplets.h.

Constructor & Destructor Documentation

◆ RegionLayerSets()

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

Definition at line 150 of file IntermediateHitTriplets.h.

155  : region_(region), cache_(cache), hitSets_(hitSets), layerSetsBegin_(tripletBegin), layerSetsEnd_(tripletEnd) {}
const PLayerHitTripletsConstIterator layerSetsBegin_
def cache(function)
Definition: utilities.py:3
const PLayerHitTripletsConstIterator layerSetsEnd_

Member Function Documentation

◆ begin()

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

Definition at line 161 of file IntermediateHitTriplets.h.

References end(), hitSets_, layerSetsBegin_, and layerSetsEnd_.

Referenced by cbegin().

161  {
163  return const_iterator(hitSets_, this);
164  else
165  return end();
166  }
const PLayerHitTripletsConstIterator layerSetsBegin_
const PLayerHitTripletsConstIterator layerSetsEnd_
ihd::const_iterator< RegionLayerSets, IntermediateHitTriplets > const_iterator
Iterator over regions.

◆ cbegin()

const_iterator IntermediateHitTriplets::RegionLayerSets::cbegin ( ) const
inline

Definition at line 167 of file IntermediateHitTriplets.h.

References begin().

167 { return begin(); }

◆ cend()

const_iterator IntermediateHitTriplets::RegionLayerSets::cend ( ) const
inline

Definition at line 169 of file IntermediateHitTriplets.h.

References end().

169 { return end(); }

◆ end()

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

Definition at line 168 of file IntermediateHitTriplets.h.

References hitSets_.

Referenced by begin(), and cend().

168 { return const_iterator(hitSets_, this, const_iterator::end_tag()); }
ihd::const_iterator< RegionLayerSets, IntermediateHitTriplets > const_iterator
Iterator over regions.

◆ layerHitMapCache()

const LayerHitMapCache& IntermediateHitTriplets::RegionLayerSets::layerHitMapCache ( ) const
inline

Definition at line 158 of file IntermediateHitTriplets.h.

References cache_.

158 { return *cache_; }

◆ layerSetsBegin()

PLayerHitTripletsConstIterator IntermediateHitTriplets::RegionLayerSets::layerSetsBegin ( ) const
inline

◆ layerSetsEnd()

PLayerHitTripletsConstIterator IntermediateHitTriplets::RegionLayerSets::layerSetsEnd ( ) const
inline

◆ layerTripletsSize()

size_t IntermediateHitTriplets::RegionLayerSets::layerTripletsSize ( ) const
inline

◆ region()

const TrackingRegion& IntermediateHitTriplets::RegionLayerSets::region ( ) const
inline

Definition at line 157 of file IntermediateHitTriplets.h.

References region_.

157 { return *region_; }

Member Data Documentation

◆ cache_

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

Definition at line 177 of file IntermediateHitTriplets.h.

Referenced by layerHitMapCache().

◆ hitSets_

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

Definition at line 178 of file IntermediateHitTriplets.h.

Referenced by begin(), and end().

◆ layerSetsBegin_

const PLayerHitTripletsConstIterator IntermediateHitTriplets::RegionLayerSets::layerSetsBegin_
private

Definition at line 179 of file IntermediateHitTriplets.h.

Referenced by begin(), layerSetsBegin(), and layerTripletsSize().

◆ layerSetsEnd_

const PLayerHitTripletsConstIterator IntermediateHitTriplets::RegionLayerSets::layerSetsEnd_
private

Definition at line 180 of file IntermediateHitTriplets.h.

Referenced by begin(), layerSetsEnd(), and layerTripletsSize().

◆ region_

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

Definition at line 176 of file IntermediateHitTriplets.h.

Referenced by region().