CMS 3D CMS Logo

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
 
RegionsSeedingHitSetsoperator= (const RegionsSeedingHitSets &)=delete
 
RegionsSeedingHitSetsoperator= (RegionsSeedingHitSets &&)=default
 
size_t regionSize () const
 
 RegionsSeedingHitSets ()=default
 
 RegionsSeedingHitSets (const RegionsSeedingHitSets &)=delete
 
 RegionsSeedingHitSets (RegionsSeedingHitSets &&)=default
 
void reserve (size_t nregions, size_t nhitsets)
 
void shrink_to_fit ()
 
size_t size () const
 
 ~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

Referenced by dummyFiller().

RegionsSeedingHitSets::RegionsSeedingHitSets ( const RegionsSeedingHitSets )
delete
RegionsSeedingHitSets::RegionsSeedingHitSets ( RegionsSeedingHitSets &&  )
default
RegionsSeedingHitSets::~RegionsSeedingHitSets ( )
default

Referenced by dummyFiller().

Member Function Documentation

const_iterator RegionsSeedingHitSets::begin ( void  ) const
inline

Definition at line 73 of file RegionsSeedingHitSets.h.

References regions_.

Referenced by cbegin().

73 { 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 64 of file RegionsSeedingHitSets.h.

References hitSets_, RegionsSeedingHitSets::RegionFiller::RegionFiller(), and regions_.

64  {
65  regions_.emplace_back(region, hitSets_.size());
66  return RegionFiller(this);
67  }
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 74 of file RegionsSeedingHitSets.h.

References begin().

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

Definition at line 76 of file RegionsSeedingHitSets.h.

References end().

76 { return end(); }
const_iterator end() const
static RegionFiller RegionsSeedingHitSets::dummyFiller ( )
inlinestatic
bool RegionsSeedingHitSets::empty ( void  ) const
inline

Definition at line 69 of file RegionsSeedingHitSets.h.

References regions_.

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

Definition at line 75 of file RegionsSeedingHitSets.h.

References regions_.

Referenced by cend().

75 { 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 79 of file RegionsSeedingHitSets.h.

References hitSets_.

79 { 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 80 of file RegionsSeedingHitSets.h.

References hitSets_.

80 { return hitSets_.end(); }
std::vector< SeedingHitSet > hitSets_
Container of regions, each element has indices pointing to hitSets_.
RegionsSeedingHitSets& RegionsSeedingHitSets::operator= ( const RegionsSeedingHitSets )
delete

Referenced by dummyFiller().

RegionsSeedingHitSets& RegionsSeedingHitSets::operator= ( RegionsSeedingHitSets &&  )
default
size_t RegionsSeedingHitSets::regionSize ( ) const
inline

Definition at line 70 of file RegionsSeedingHitSets.h.

References regions_.

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

Definition at line 54 of file RegionsSeedingHitSets.h.

References hitSets_, and regions_.

Referenced by SeedCreatorFromRegionHitsEDProducerT< T_SeedCreator >::produce().

54  {
55  regions_.reserve(nregions);
56  hitSets_.reserve(nhitsets);
57  }
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 59 of file RegionsSeedingHitSets.h.

References hitSets_, and regions_.

59  {
60  regions_.shrink_to_fit();
61  hitSets_.shrink_to_fit();
62  }
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 71 of file RegionsSeedingHitSets.h.

References hitSets_.

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

71 { return hitSets_.size(); }
std::vector< SeedingHitSet > hitSets_
Container of regions, each element has indices pointing to hitSets_.

Member Data Documentation

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

Container of regions, each element has indices pointing to hitSets_.

Definition at line 84 of file RegionsSeedingHitSets.h.

Referenced by beginRegion(), RegionsSeedingHitSets::RegionFiller::emplace_back(), layerSetsBegin(), layerSetsEnd(), reserve(), shrink_to_fit(), size(), and RegionsSeedingHitSets::RegionFiller::~RegionFiller().

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