CMS 3D CMS Logo

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

#include <RegionsSeedingHitSets.h>

Classes

class  RegionFiller
 Helper class enforcing correct way of filling the doublets of a region. More...
 

Public Types

using const_iterator = ihd::const_iterator< RegionSeedingHitSets, RegionsSeedingHitSets >
 Iterator over regions. More...
 
using RegionIndex = ihd::RegionIndex
 Helper class containing a region and indices to hitSets_. More...
 
using RegionSeedingHitSets = ihd::RegionLayerSets< SeedingHitSet >
 Helper class providing nice interface to loop over hit sets of a region. More...
 

Public Member Functions

const_iterator begin () const
 
RegionFiller beginRegion (const TrackingRegion *region)
 
const_iterator cbegin () const
 
const_iterator cend () const
 
bool empty () const
 
const_iterator end () const
 
std::vector< SeedingHitSet >
::const_iterator 
layerSetsBegin () const
 
std::vector< SeedingHitSet >
::const_iterator 
layerSetsEnd () const
 
size_t regionSize () const
 
 RegionsSeedingHitSets ()=default
 
void reserve (size_t nregions, size_t nhitsets)
 
void shrink_to_fit ()
 
size_t size () const
 
void swap (RegionsSeedingHitSets &rh)
 
 ~RegionsSeedingHitSets ()=default
 

Static Public Member Functions

static RegionFiller dummyFiller ()
 

Private Attributes

std::vector< SeedingHitSethitSets_
 Container of regions, each element has indices pointing to hitSets_. More...
 
std::vector< RegionIndexregions_
 

Detailed Description

Class to store SeedingHitSets (doublet/triplet/quadruplet) per TrackingRegion

Defined in this package instead of RecoTracker/TkSeedingLayers to avoid circular dependencies

Definition at line 12 of file RegionsSeedingHitSets.h.

Member Typedef Documentation

Iterator over regions.

Definition at line 21 of file RegionsSeedingHitSets.h.

Helper class containing a region and indices to hitSets_.

Definition at line 15 of file RegionsSeedingHitSets.h.

Helper class providing nice interface to loop over hit sets of a region.

Definition at line 18 of file RegionsSeedingHitSets.h.

Constructor & Destructor Documentation

RegionsSeedingHitSets::RegionsSeedingHitSets ( )
default
RegionsSeedingHitSets::~RegionsSeedingHitSets ( )
default

Member Function Documentation

const_iterator RegionsSeedingHitSets::begin ( void  ) const
inline

Definition at line 74 of file RegionsSeedingHitSets.h.

References regions_.

Referenced by cbegin().

74 { return const_iterator(this, regions_.begin()); }
std::vector< RegionIndex > regions_
ihd::const_iterator< RegionSeedingHitSets, RegionsSeedingHitSets > const_iterator
Iterator over regions.
RegionFiller RegionsSeedingHitSets::beginRegion ( const TrackingRegion region)
inline

Definition at line 65 of file RegionsSeedingHitSets.h.

References hitSets_, and regions_.

65  {
66  regions_.emplace_back(region, hitSets_.size());
67  return RegionFiller(this);
68  }
std::vector< SeedingHitSet > hitSets_
Container of regions, each element has indices pointing to hitSets_.
std::vector< RegionIndex > regions_
const_iterator RegionsSeedingHitSets::cbegin ( ) const
inline

Definition at line 75 of file RegionsSeedingHitSets.h.

References begin().

75 { return begin(); }
const_iterator begin() const
const_iterator RegionsSeedingHitSets::cend ( ) const
inline

Definition at line 77 of file RegionsSeedingHitSets.h.

References end().

77 { return end(); }
const_iterator end() const
static RegionFiller RegionsSeedingHitSets::dummyFiller ( )
inlinestatic

Definition at line 44 of file RegionsSeedingHitSets.h.

Referenced by MultiHitFromChi2EDProducer::produce().

44 { return RegionFiller(); }
bool RegionsSeedingHitSets::empty ( void  ) const
inline

Definition at line 70 of file RegionsSeedingHitSets.h.

References regions_.

70 { return regions_.empty(); }
std::vector< RegionIndex > regions_
const_iterator RegionsSeedingHitSets::end ( void  ) const
inline

Definition at line 76 of file RegionsSeedingHitSets.h.

References regions_.

Referenced by cend().

76 { return const_iterator(this, regions_.end()); }
std::vector< RegionIndex > regions_
ihd::const_iterator< RegionSeedingHitSets, RegionsSeedingHitSets > const_iterator
Iterator over regions.
std::vector<SeedingHitSet>::const_iterator RegionsSeedingHitSets::layerSetsBegin ( ) const
inline

Definition at line 80 of file RegionsSeedingHitSets.h.

References hitSets_.

80 { return hitSets_.begin(); }
std::vector< SeedingHitSet > hitSets_
Container of regions, each element has indices pointing to hitSets_.
std::vector<SeedingHitSet>::const_iterator RegionsSeedingHitSets::layerSetsEnd ( ) const
inline

Definition at line 81 of file RegionsSeedingHitSets.h.

References hitSets_.

81 { return hitSets_.end(); }
std::vector< SeedingHitSet > hitSets_
Container of regions, each element has indices pointing to hitSets_.
size_t RegionsSeedingHitSets::regionSize ( ) const
inline

Definition at line 71 of file RegionsSeedingHitSets.h.

References regions_.

71 { return regions_.size(); }
std::vector< RegionIndex > regions_
void RegionsSeedingHitSets::reserve ( size_t  nregions,
size_t  nhitsets 
)
inline

Definition at line 55 of file RegionsSeedingHitSets.h.

References hitSets_, and regions_.

55  {
56  regions_.reserve(nregions);
57  hitSets_.reserve(nhitsets);
58  }
std::vector< SeedingHitSet > hitSets_
Container of regions, each element has indices pointing to hitSets_.
std::vector< RegionIndex > regions_
void RegionsSeedingHitSets::shrink_to_fit ( )
inline

Definition at line 60 of file RegionsSeedingHitSets.h.

References hitSets_, and regions_.

60  {
61  regions_.shrink_to_fit();
62  hitSets_.shrink_to_fit();
63  }
std::vector< SeedingHitSet > hitSets_
Container of regions, each element has indices pointing to hitSets_.
std::vector< RegionIndex > regions_
size_t RegionsSeedingHitSets::size ( void  ) const
inline

Definition at line 72 of file RegionsSeedingHitSets.h.

References hitSets_.

Referenced by ntuple._Collection::__iter__(), and ntuple._Collection::__len__().

72 { return hitSets_.size(); }
std::vector< SeedingHitSet > hitSets_
Container of regions, each element has indices pointing to hitSets_.
void RegionsSeedingHitSets::swap ( RegionsSeedingHitSets rh)
inline

Definition at line 50 of file RegionsSeedingHitSets.h.

References hitSets_, and regions_.

50  {
51  regions_.swap(rh.regions_);
52  hitSets_.swap(rh.hitSets_);
53  }
std::vector< SeedingHitSet > hitSets_
Container of regions, each element has indices pointing to hitSets_.
std::vector< RegionIndex > regions_

Member Data Documentation

std::vector<SeedingHitSet> RegionsSeedingHitSets::hitSets_
private
std::vector<RegionIndex> RegionsSeedingHitSets::regions_
private