CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
TrackingRegionsSeedingLayerSets::RegionLayers Class Reference

#include <TrackingRegionsSeedingLayerSets.h>

Public Types

using SeedingLayerSet = SeedingLayerSetsHits::SeedingLayerSet
 

Public Member Functions

std::vector< SeedingLayerSetlayerPairs () const
 
const TrackingRegionregion () const
 
 RegionLayers (const Element *elem, const SeedingLayerSetsHits *seedingLayerSetsHits)
 

Private Attributes

const Elementelem_
 
const SeedingLayerSetsHitsseedingLayerSetsHits_
 

Detailed Description

Definition at line 13 of file TrackingRegionsSeedingLayerSets.h.

Member Typedef Documentation

Definition at line 15 of file TrackingRegionsSeedingLayerSets.h.

Constructor & Destructor Documentation

TrackingRegionsSeedingLayerSets::RegionLayers::RegionLayers ( const Element elem,
const SeedingLayerSetsHits seedingLayerSetsHits 
)
inline

Definition at line 17 of file TrackingRegionsSeedingLayerSets.h.

References layerPairs(), and region().

Referenced by TrackingRegionsSeedingLayerSets::const_iterator::operator*().

17  :
18  elem_(elem), seedingLayerSetsHits_(seedingLayerSetsHits) {}
def elem(elemtype, innerHTML='', html_class='', kwargs)
Definition: HTMLExport.py:18

Member Function Documentation

std::vector< TrackingRegionsSeedingLayerSets::RegionLayers::SeedingLayerSet > TrackingRegionsSeedingLayerSets::RegionLayers::layerPairs ( ) const
inline

Definition at line 112 of file TrackingRegionsSeedingLayerSets.h.

References elem_, TrackingRegionsSeedingLayerSets::Element::layerSets(), and seedingLayerSetsHits_.

Referenced by RegionLayers().

112  {
113  std::vector<SeedingLayerSet> ret; // TODO: get rid of the vector with more boilerplate code (sigh)
114 
115  const auto& layerSets = elem_->layerSets();
116  ret.reserve(layerSets.size());
117  for(const auto& ind: layerSets) {
118  ret.push_back((*seedingLayerSetsHits_)[ind]);
119  }
120  return ret;
121 }
const std::vector< SeedingLayerSetsHits::LayerSetIndex > & layerSets() const
const TrackingRegion & TrackingRegionsSeedingLayerSets::RegionLayers::region ( ) const
inline

Member Data Documentation

const Element* TrackingRegionsSeedingLayerSets::RegionLayers::elem_
private

Definition at line 24 of file TrackingRegionsSeedingLayerSets.h.

Referenced by layerPairs(), and region().

const SeedingLayerSetsHits* TrackingRegionsSeedingLayerSets::RegionLayers::seedingLayerSetsHits_
private