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

Constructor & Destructor Documentation

◆ RegionFiller() [1/2]

IntermediateHitDoublets::RegionFiller::RegionFiller ( )
inline

Definition at line 176 of file IntermediateHitDoublets.h.

176 : obj_(nullptr) {}

◆ RegionFiller() [2/2]

IntermediateHitDoublets::RegionFiller::RegionFiller ( IntermediateHitDoublets obj)
inlineexplicit

Definition at line 177 of file IntermediateHitDoublets.h.

◆ ~RegionFiller()

IntermediateHitDoublets::RegionFiller::~RegionFiller ( )
default

Member Function Documentation

◆ addDoublets()

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

Definition at line 185 of file IntermediateHitDoublets.h.

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

185  {
186  obj_->layerPairs_.emplace_back(layerSet, std::move(doublets));
187  obj_->regions_.back().setLayerSetsEnd(obj_->layerPairs_.size());
188  }
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()

LayerHitMapCache& IntermediateHitDoublets::RegionFiller::layerHitMapCache ( )
inline

Definition at line 183 of file IntermediateHitDoublets.h.

References obj_, and IntermediateHitDoublets::regions_.

183 { return obj_->regions_.back().layerHitMapCache(); }
std::vector< RegionIndex > regions_
Pointer to SeedingLayerSetsHits (owned elsewhere)

◆ valid()

bool IntermediateHitDoublets::RegionFiller::valid ( ) const
inline

Definition at line 181 of file IntermediateHitDoublets.h.

References obj_.

181 { return obj_ != nullptr; }

Member Data Documentation

◆ obj_

IntermediateHitDoublets* IntermediateHitDoublets::RegionFiller::obj_
private

Definition at line 191 of file IntermediateHitDoublets.h.

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