CMS 3D CMS Logo

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 HiRegitMuonDetachedTripletStep_cff::doublets, and eostools::move().

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

Definition at line 179 of file IntermediateHitDoublets.h.

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.

177 { return obj_ != nullptr; }

Member Data Documentation

IntermediateHitDoublets* IntermediateHitDoublets::RegionFiller::obj_
private

Definition at line 186 of file IntermediateHitDoublets.h.