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.

75 { return const_iterator(this, regions_.begin()); }

References regions_.

Referenced by cbegin().

◆ beginRegion()

RegionFiller RegionsSeedingHitSets::beginRegion ( const TrackingRegion region)
inline

Definition at line 66 of file RegionsSeedingHitSets.h.

66  {
67  regions_.emplace_back(region, hitSets_.size());
68  return RegionFiller(this);
69  }

References hitSets_, HLT_FULL_cff::region, and regions_.

◆ cbegin()

const_iterator RegionsSeedingHitSets::cbegin ( ) const
inline

Definition at line 76 of file RegionsSeedingHitSets.h.

76 { return begin(); }

References begin().

◆ cend()

const_iterator RegionsSeedingHitSets::cend ( ) const
inline

Definition at line 78 of file RegionsSeedingHitSets.h.

78 { return end(); }

References end().

◆ dummyFiller()

static RegionFiller RegionsSeedingHitSets::dummyFiller ( )
inlinestatic

Definition at line 46 of file RegionsSeedingHitSets.h.

46 { return RegionFiller(); }

Referenced by MultiHitFromChi2EDProducer::produce().

◆ empty()

bool RegionsSeedingHitSets::empty ( void  ) const
inline

Definition at line 71 of file RegionsSeedingHitSets.h.

71 { return regions_.empty(); }

References regions_.

◆ end()

const_iterator RegionsSeedingHitSets::end ( void  ) const
inline

Definition at line 77 of file RegionsSeedingHitSets.h.

77 { return const_iterator(this, regions_.end()); }

References regions_.

Referenced by cend().

◆ layerSetsBegin()

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

Definition at line 81 of file RegionsSeedingHitSets.h.

81 { return hitSets_.begin(); }

References hitSets_.

◆ layerSetsEnd()

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

Definition at line 82 of file RegionsSeedingHitSets.h.

82 { return hitSets_.end(); }

References 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.

72 { return regions_.size(); }

References regions_.

◆ reserve()

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

Definition at line 56 of file RegionsSeedingHitSets.h.

56  {
57  regions_.reserve(nregions);
58  hitSets_.reserve(nhitsets);
59  }

References hitSets_, and regions_.

◆ shrink_to_fit()

void RegionsSeedingHitSets::shrink_to_fit ( )
inline

Definition at line 61 of file RegionsSeedingHitSets.h.

61  {
62  regions_.shrink_to_fit();
63  hitSets_.shrink_to_fit();
64  }

References hitSets_, and regions_.

◆ size()

size_t RegionsSeedingHitSets::size ( void  ) const
inline

Definition at line 73 of file RegionsSeedingHitSets.h.

73 { return hitSets_.size(); }

References hitSets_.

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

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
RegionsSeedingHitSets::end
const_iterator end() const
Definition: RegionsSeedingHitSets.h:77
RegionsSeedingHitSets::regions_
std::vector< RegionIndex > regions_
Definition: RegionsSeedingHitSets.h:85
RegionsSeedingHitSets::begin
const_iterator begin() const
Definition: RegionsSeedingHitSets.h:75
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:88267
RegionsSeedingHitSets::const_iterator
ihd::const_iterator< RegionSeedingHitSets, RegionsSeedingHitSets > const_iterator
Iterator over regions.
Definition: RegionsSeedingHitSets.h:21
RegionsSeedingHitSets::hitSets_
std::vector< SeedingHitSet > hitSets_
Container of regions, each element has indices pointing to hitSets_.
Definition: RegionsSeedingHitSets.h:86