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

◆ const_iterator

Iterator over regions.

Definition at line 21 of file RegionsSeedingHitSets.h.

◆ RegionIndex

Helper class containing a region and indices to hitSets_.

Definition at line 15 of file RegionsSeedingHitSets.h.

◆ RegionSeedingHitSets

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() [1/3]

RegionsSeedingHitSets::RegionsSeedingHitSets ( )
default

◆ RegionsSeedingHitSets() [2/3]

RegionsSeedingHitSets::RegionsSeedingHitSets ( const RegionsSeedingHitSets )
delete

◆ RegionsSeedingHitSets() [3/3]

RegionsSeedingHitSets::RegionsSeedingHitSets ( RegionsSeedingHitSets &&  )
default

◆ ~RegionsSeedingHitSets()

RegionsSeedingHitSets::~RegionsSeedingHitSets ( )
default

Member Function Documentation

◆ begin()

const_iterator RegionsSeedingHitSets::begin ( void  ) const
inline

Definition at line 75 of file RegionsSeedingHitSets.h.

References regions_.

Referenced by cbegin().

75 { return const_iterator(this, regions_.begin()); }
std::vector< RegionIndex > regions_
ihd::const_iterator< RegionSeedingHitSets, RegionsSeedingHitSets > const_iterator
Iterator over regions.

◆ beginRegion()

RegionFiller RegionsSeedingHitSets::beginRegion ( const TrackingRegion region)
inline

Definition at line 66 of file RegionsSeedingHitSets.h.

References hitSets_, nano_mu_digi_cff::region, and regions_.

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

◆ cbegin()

const_iterator RegionsSeedingHitSets::cbegin ( ) const
inline

Definition at line 76 of file RegionsSeedingHitSets.h.

References begin().

76 { return begin(); }
const_iterator begin() const

◆ cend()

const_iterator RegionsSeedingHitSets::cend ( ) const
inline

Definition at line 78 of file RegionsSeedingHitSets.h.

References end().

78 { return end(); }
const_iterator end() const

◆ dummyFiller()

static RegionFiller RegionsSeedingHitSets::dummyFiller ( )
inlinestatic

Definition at line 46 of file RegionsSeedingHitSets.h.

Referenced by MultiHitFromChi2EDProducer::produce().

46 { return RegionFiller(); }

◆ empty()

bool RegionsSeedingHitSets::empty ( void  ) const
inline

Definition at line 71 of file RegionsSeedingHitSets.h.

References regions_.

71 { return regions_.empty(); }
std::vector< RegionIndex > regions_

◆ end()

const_iterator RegionsSeedingHitSets::end ( void  ) const
inline

Definition at line 77 of file RegionsSeedingHitSets.h.

References regions_.

Referenced by cend().

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

◆ layerSetsBegin()

std::vector<SeedingHitSet>::const_iterator RegionsSeedingHitSets::layerSetsBegin ( ) const
inline

Definition at line 81 of file RegionsSeedingHitSets.h.

References hitSets_.

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

◆ layerSetsEnd()

std::vector<SeedingHitSet>::const_iterator RegionsSeedingHitSets::layerSetsEnd ( ) const
inline

Definition at line 82 of file RegionsSeedingHitSets.h.

References hitSets_.

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

◆ operator=() [1/2]

RegionsSeedingHitSets& RegionsSeedingHitSets::operator= ( const RegionsSeedingHitSets )
delete

◆ operator=() [2/2]

RegionsSeedingHitSets& RegionsSeedingHitSets::operator= ( RegionsSeedingHitSets &&  )
default

◆ regionSize()

size_t RegionsSeedingHitSets::regionSize ( ) const
inline

Definition at line 72 of file RegionsSeedingHitSets.h.

References regions_.

72 { return regions_.size(); }
std::vector< RegionIndex > regions_

◆ reserve()

void RegionsSeedingHitSets::reserve ( size_t  nregions,
size_t  nhitsets 
)
inline

Definition at line 56 of file RegionsSeedingHitSets.h.

References hitSets_, and regions_.

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

◆ shrink_to_fit()

void RegionsSeedingHitSets::shrink_to_fit ( )
inline

Definition at line 61 of file RegionsSeedingHitSets.h.

References hitSets_, and regions_.

61  {
62  regions_.shrink_to_fit();
63  hitSets_.shrink_to_fit();
64  }
std::vector< SeedingHitSet > hitSets_
Container of regions, each element has indices pointing to hitSets_.
std::vector< RegionIndex > regions_

◆ size()

size_t RegionsSeedingHitSets::size ( void  ) const
inline

Definition at line 73 of file RegionsSeedingHitSets.h.

References hitSets_.

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

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

Member Data Documentation

◆ hitSets_

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

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

Definition at line 86 of file RegionsSeedingHitSets.h.

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

◆ regions_

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