CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

Definition at line 101 of file IntermediateHitTriplets.h.

Definition at line 102 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 150 of file IntermediateHitTriplets.h.

155  : region_(region), cache_(cache), hitSets_(hitSets), layerSetsBegin_(tripletBegin), layerSetsEnd_(tripletEnd) {}
const PLayerHitTripletsConstIterator layerSetsBegin_
const PLayerHitTripletsConstIterator layerSetsEnd_

Member Function Documentation

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.
const_iterator IntermediateHitTriplets::RegionLayerSets::cbegin ( ) const
inline

Definition at line 167 of file IntermediateHitTriplets.h.

References begin().

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

Definition at line 169 of file IntermediateHitTriplets.h.

References end().

169 { return 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.
const LayerHitMapCache& IntermediateHitTriplets::RegionLayerSets::layerHitMapCache ( ) const
inline

Definition at line 158 of file IntermediateHitTriplets.h.

References cache_.

158 { return *cache_; }
PLayerHitTripletsConstIterator IntermediateHitTriplets::RegionLayerSets::layerSetsBegin ( ) const
inline
PLayerHitTripletsConstIterator IntermediateHitTriplets::RegionLayerSets::layerSetsEnd ( ) const
inline
size_t IntermediateHitTriplets::RegionLayerSets::layerTripletsSize ( ) const
inline

Definition at line 159 of file IntermediateHitTriplets.h.

References HLT_FULL_cff::distance, layerSetsBegin_, and layerSetsEnd_.

const PLayerHitTripletsConstIterator layerSetsBegin_
const PLayerHitTripletsConstIterator layerSetsEnd_
const TrackingRegion& IntermediateHitTriplets::RegionLayerSets::region ( ) const
inline

Definition at line 157 of file IntermediateHitTriplets.h.

References region_.

157 { return *region_; }

Member Data Documentation

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

Definition at line 177 of file IntermediateHitTriplets.h.

Referenced by layerHitMapCache().

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

Definition at line 178 of file IntermediateHitTriplets.h.

Referenced by begin(), and end().

const PLayerHitTripletsConstIterator IntermediateHitTriplets::RegionLayerSets::layerSetsBegin_
private

Definition at line 179 of file IntermediateHitTriplets.h.

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

const PLayerHitTripletsConstIterator IntermediateHitTriplets::RegionLayerSets::layerSetsEnd_
private

Definition at line 180 of file IntermediateHitTriplets.h.

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

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

Definition at line 176 of file IntermediateHitTriplets.h.

Referenced by region().