CMS 3D CMS Logo

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

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

#include <IntermediateHitDoublets.h>

Public Member Functions

void addDoublets (const SeedingLayerSetsHits::SeedingLayerSet &layerSet, HitDoublets &&doublets)
 
LayerHitMapCachelayerHitMapCache ()
 
 RegionFiller ()
 
 RegionFiller (IntermediateHitDoublets *obj)
 
bool valid () const
 
 ~RegionFiller ()=default
 

Private Attributes

IntermediateHitDoubletsobj_
 

Detailed Description

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

Definition at line 170 of file IntermediateHitDoublets.h.

Constructor & Destructor Documentation

IntermediateHitDoublets::RegionFiller::RegionFiller ( )
inline

Definition at line 172 of file IntermediateHitDoublets.h.

172 : obj_(nullptr) {}
IntermediateHitDoublets::RegionFiller::RegionFiller ( IntermediateHitDoublets obj)
inlineexplicit

Definition at line 173 of file IntermediateHitDoublets.h.

173 : obj_(obj) {}
IntermediateHitDoublets::RegionFiller::~RegionFiller ( )
default

Member Function Documentation

void IntermediateHitDoublets::RegionFiller::addDoublets ( const SeedingLayerSetsHits::SeedingLayerSet layerSet,
HitDoublets &&  doublets 
)
inline

Definition at line 181 of file IntermediateHitDoublets.h.

References DetachedQuadStep_cff::doublets, IntermediateHitDoublets::layerPairs_, eostools::move(), obj_, and IntermediateHitDoublets::regions_.

181  {
182  obj_->layerPairs_.emplace_back(layerSet, std::move(doublets));
183  obj_->regions_.back().setLayerSetsEnd(obj_->layerPairs_.size());
184  }
def move
Definition: eostools.py:510
std::vector< RegionIndex > regions_
Pointer to SeedingLayerSetsHits (owned elsewhere)
std::vector< LayerPairHitDoublets > layerPairs_
Container of regions, each element has indices pointing to layerPairs_.
LayerHitMapCache& IntermediateHitDoublets::RegionFiller::layerHitMapCache ( )
inline

Definition at line 179 of file IntermediateHitDoublets.h.

References obj_, and IntermediateHitDoublets::regions_.

179 { return obj_->regions_.back().layerHitMapCache(); }
std::vector< RegionIndex > regions_
Pointer to SeedingLayerSetsHits (owned elsewhere)
bool IntermediateHitDoublets::RegionFiller::valid ( ) const
inline

Definition at line 177 of file IntermediateHitDoublets.h.

References obj_.

177 { return obj_ != nullptr; }

Member Data Documentation

IntermediateHitDoublets* IntermediateHitDoublets::RegionFiller::obj_
private

Definition at line 186 of file IntermediateHitDoublets.h.

Referenced by addDoublets(), layerHitMapCache(), and valid().