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 172 of file IntermediateHitDoublets.h.

Constructor & Destructor Documentation

IntermediateHitDoublets::RegionFiller::RegionFiller ( )
inline

Definition at line 174 of file IntermediateHitDoublets.h.

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

Definition at line 175 of file IntermediateHitDoublets.h.

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

Member Function Documentation

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

Definition at line 183 of file IntermediateHitDoublets.h.

References HiRegitMuonDetachedTripletStep_cff::doublets, and eostools::move().

183  {
184  obj_->layerPairs_.emplace_back(layerSet, std::move(doublets));
185  obj_->regions_.back().setLayerSetsEnd(obj_->layerPairs_.size());
186  }
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:511
LayerHitMapCache& IntermediateHitDoublets::RegionFiller::layerHitMapCache ( )
inline

Definition at line 181 of file IntermediateHitDoublets.h.

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

Definition at line 179 of file IntermediateHitDoublets.h.

179 { return obj_ != nullptr; }

Member Data Documentation

IntermediateHitDoublets* IntermediateHitDoublets::RegionFiller::obj_
private

Definition at line 188 of file IntermediateHitDoublets.h.