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.

177 : obj_(obj) {}

◆ ~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.

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

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

◆ layerHitMapCache()

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

Definition at line 183 of file IntermediateHitDoublets.h.

183 { return obj_->regions_.back().layerHitMapCache(); }

References obj_, and IntermediateHitDoublets::regions_.

◆ valid()

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

Definition at line 181 of file IntermediateHitDoublets.h.

181 { return obj_ != nullptr; }

References obj_.

Member Data Documentation

◆ obj_

IntermediateHitDoublets* IntermediateHitDoublets::RegionFiller::obj_
private

Definition at line 191 of file IntermediateHitDoublets.h.

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

HLT_2018_cff.doublets
doublets
Definition: HLT_2018_cff.py:8544
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
IntermediateHitDoublets::regions_
std::vector< RegionIndex > regions_
Pointer to SeedingLayerSetsHits (owned elsewhere)
Definition: IntermediateHitDoublets.h:240
eostools.move
def move(src, dest)
Definition: eostools.py:511
IntermediateHitDoublets::layerPairs_
std::vector< LayerPairHitDoublets > layerPairs_
Container of regions, each element has indices pointing to layerPairs_.
Definition: IntermediateHitDoublets.h:241
IntermediateHitDoublets::RegionFiller::obj_
IntermediateHitDoublets * obj_
Definition: IntermediateHitDoublets.h:191