CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Attributes
SeedingLayerSetsLooper Class Reference

#include <SeedingLayerSetsLooper.h>

Classes

class  LayerSet
 
class  LayerSetRange
 

Public Types

using LayerSetIndex = unsigned short
 

Public Member Functions

template<typename T >
LayerSetRange< TmakeRange (const T &container) const
 
 SeedingLayerSetsLooper ()=default
 
 SeedingLayerSetsLooper (unsigned short nlayers, const std::vector< LayerSetIndex > *layerSetIndices)
 

Private Attributes

const std::vector< LayerSetIndex > * layerSetIndices_ = nullptr
 
unsigned short nlayers_ = 0
 Number of layers in a SeedingLayerSet. More...
 

Detailed Description

Class to loop over arbitrary containers according to seeding layer sets indices

Definition at line 9 of file SeedingLayerSetsLooper.h.

Member Typedef Documentation

using SeedingLayerSetsLooper::LayerSetIndex = unsigned short

Definition at line 11 of file SeedingLayerSetsLooper.h.

Constructor & Destructor Documentation

SeedingLayerSetsLooper::SeedingLayerSetsLooper ( )
default
SeedingLayerSetsLooper::SeedingLayerSetsLooper ( unsigned short  nlayers,
const std::vector< LayerSetIndex > *  layerSetIndices 
)
inline

Constructor.

Parameters
nlayersNumber of layers in each SeedingLayerSet
layerSetIndicesPointer to a vector holding the indices of layer sets (pointer to vector is stored)

Definition at line 88 of file SeedingLayerSetsLooper.h.

89  :
91  layerSetIndices_(layerSetIndices)
92  {}
const std::vector< LayerSetIndex > * layerSetIndices_
unsigned short nlayers_
Number of layers in a SeedingLayerSet.

Member Function Documentation

template<typename T >
LayerSetRange<T> SeedingLayerSetsLooper::makeRange ( const T container) const
inline

Definition at line 95 of file SeedingLayerSetsLooper.h.

95  {
96  return LayerSetRange<T>(&container, this);
97  }

Member Data Documentation

const std::vector<LayerSetIndex>* SeedingLayerSetsLooper::layerSetIndices_ = nullptr
private

Stores SeedingLayerSets as nlayers_ consecutive layer indices. Layer indices point to layerHitRanges_, layerNames_, and layerDets_. Hence layerSetIndices.size() == nlayers_*"number of layer sets"

Definition at line 108 of file SeedingLayerSetsLooper.h.

unsigned short SeedingLayerSetsLooper::nlayers_ = 0
private

Number of layers in a SeedingLayerSet.

Definition at line 101 of file SeedingLayerSetsLooper.h.