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) {}

Member Function Documentation

◆ begin()

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

Definition at line 161 of file IntermediateHitTriplets.h.

161  {
163  return const_iterator(hitSets_, this);
164  else
165  return end();
166  }

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

Referenced by cbegin().

◆ cbegin()

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

Definition at line 167 of file IntermediateHitTriplets.h.

167 { return begin(); }

References begin().

◆ cend()

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

Definition at line 169 of file IntermediateHitTriplets.h.

169 { return end(); }

References end().

◆ end()

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

Definition at line 168 of file IntermediateHitTriplets.h.

168 { return const_iterator(hitSets_, this, const_iterator::end_tag()); }

References hitSets_.

Referenced by begin(), and cend().

◆ layerHitMapCache()

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

Definition at line 158 of file IntermediateHitTriplets.h.

158 { return *cache_; }

References 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.

157 { return *region_; }

References 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().

IntermediateHitTriplets::RegionLayerSets::region
const TrackingRegion & region() const
Definition: IntermediateHitTriplets.h:157
IntermediateHitTriplets::RegionLayerSets::end
const_iterator end() const
Definition: IntermediateHitTriplets.h:168
IntermediateHitTriplets::RegionLayerSets::hitSets_
const IntermediateHitTriplets * hitSets_
Definition: IntermediateHitTriplets.h:178
IntermediateHitTriplets::RegionLayerSets::region_
const TrackingRegion * region_
Definition: IntermediateHitTriplets.h:176
IntermediateHitTriplets::RegionLayerSets::layerSetsEnd_
const PLayerHitTripletsConstIterator layerSetsEnd_
Definition: IntermediateHitTriplets.h:180
utilities.cache
def cache(function)
Definition: utilities.py:3
IntermediateHitTriplets::RegionLayerSets::cache_
const LayerHitMapCache * cache_
Definition: IntermediateHitTriplets.h:177
IntermediateHitTriplets::RegionLayerSets::begin
const_iterator begin() const
Definition: IntermediateHitTriplets.h:161
IntermediateHitTriplets::RegionLayerSets::layerSetsBegin_
const PLayerHitTripletsConstIterator layerSetsBegin_
Definition: IntermediateHitTriplets.h:179
HLT_FULL_cff.distance
distance
Definition: HLT_FULL_cff.py:7746
IntermediateHitTriplets::const_iterator
ihd::const_iterator< RegionLayerSets, IntermediateHitTriplets > const_iterator
Iterator over regions.
Definition: IntermediateHitTriplets.h:186