test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Attributes
SeedingLayerSetsHits::SeedingLayerSet Class Reference

#include <SeedingLayerSetsHits.h>

Classes

class  const_iterator
 

Public Member Functions

const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
const_iterator end () const
 
SeedingLayer operator[] (LayerSetIndex index) const
 Get a given SeedingLayer (index is between 0 and size()-1) More...
 
 SeedingLayerSet ()
 
 SeedingLayerSet (const SeedingLayerSetsHits *sls, std::vector< LayerSetIndex >::const_iterator begin, std::vector< LayerSetIndex >::const_iterator end)
 
LayerSetIndex size () const
 Number of layers in this set. More...
 

Private Attributes

std::vector< LayerSetIndex >
::const_iterator 
begin_
 
std::vector< LayerSetIndex >
::const_iterator 
end_
 
const SeedingLayerSetsHitsseedingLayerSets_
 

Detailed Description

Auxiliary class to represent a set of SeedingLayers (e.g. BPIX1+BPIX2+BPIX3).

Holds a pointer to SeedingLayerSetsHits, and iterators to SeedingLayerSetsHits::layerSetIndices_ to for the first and last+1 layer of the set.

Definition at line 75 of file SeedingLayerSetsHits.h.

Constructor & Destructor Documentation

SeedingLayerSetsHits::SeedingLayerSet::SeedingLayerSet ( )
inline

Definition at line 103 of file SeedingLayerSetsHits.h.

103 : seedingLayerSets_(0) {}
const SeedingLayerSetsHits * seedingLayerSets_
SeedingLayerSetsHits::SeedingLayerSet::SeedingLayerSet ( const SeedingLayerSetsHits sls,
std::vector< LayerSetIndex >::const_iterator  begin,
std::vector< LayerSetIndex >::const_iterator  end 
)
inline

Definition at line 104 of file SeedingLayerSetsHits.h.

104  :
std::vector< LayerSetIndex >::const_iterator begin_
std::vector< LayerSetIndex >::const_iterator end_
const SeedingLayerSetsHits * seedingLayerSets_

Member Function Documentation

const_iterator SeedingLayerSetsHits::SeedingLayerSet::begin ( void  ) const
inline

Definition at line 116 of file SeedingLayerSetsHits.h.

References begin_, and seedingLayerSets_.

Referenced by cbegin().

116 { return const_iterator(seedingLayerSets_, begin_); }
std::vector< LayerSetIndex >::const_iterator begin_
const SeedingLayerSetsHits * seedingLayerSets_
const_iterator SeedingLayerSetsHits::SeedingLayerSet::cbegin ( ) const
inline

Definition at line 117 of file SeedingLayerSetsHits.h.

References begin().

117 { return begin(); }
const_iterator SeedingLayerSetsHits::SeedingLayerSet::cend ( ) const
inline

Definition at line 119 of file SeedingLayerSetsHits.h.

References end().

119 { return end(); }
const_iterator SeedingLayerSetsHits::SeedingLayerSet::end ( void  ) const
inline

Definition at line 118 of file SeedingLayerSetsHits.h.

References end_, and seedingLayerSets_.

Referenced by cend().

118 { return const_iterator(seedingLayerSets_, end_); }
std::vector< LayerSetIndex >::const_iterator end_
const SeedingLayerSetsHits * seedingLayerSets_
SeedingLayer SeedingLayerSetsHits::SeedingLayerSet::operator[] ( LayerSetIndex  index) const
inline

Get a given SeedingLayer (index is between 0 and size()-1)

Definition at line 111 of file SeedingLayerSetsHits.h.

References begin_, and seedingLayerSets_.

111  {
112  return SeedingLayer(seedingLayerSets_, *(begin_+index));
113  }
std::vector< LayerSetIndex >::const_iterator begin_
const SeedingLayerSetsHits * seedingLayerSets_
LayerSetIndex SeedingLayerSetsHits::SeedingLayerSet::size ( void  ) const
inline

Number of layers in this set.

Definition at line 108 of file SeedingLayerSetsHits.h.

References begin_, and end_.

Referenced by SeedingLayerSetsHits::print().

108 { return end_-begin_; }
std::vector< LayerSetIndex >::const_iterator begin_
std::vector< LayerSetIndex >::const_iterator end_

Member Data Documentation

std::vector<LayerSetIndex>::const_iterator SeedingLayerSetsHits::SeedingLayerSet::begin_
private

Definition at line 123 of file SeedingLayerSetsHits.h.

Referenced by begin(), operator[](), and size().

std::vector<LayerSetIndex>::const_iterator SeedingLayerSetsHits::SeedingLayerSet::end_
private

Definition at line 124 of file SeedingLayerSetsHits.h.

Referenced by end(), and size().

const SeedingLayerSetsHits* SeedingLayerSetsHits::SeedingLayerSet::seedingLayerSets_
private

Definition at line 122 of file SeedingLayerSetsHits.h.

Referenced by begin(), end(), and operator[]().