CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
RegionsSeedingHitSets::RegionFiller Class Reference

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

#include <RegionsSeedingHitSets.h>

Public Member Functions

template<typename... Args>
void emplace_back (Args &&... args)
 
 RegionFiller ()
 
 RegionFiller (RegionsSeedingHitSets *obj)
 
bool valid () const
 
 ~RegionFiller ()
 

Private Attributes

RegionsSeedingHitSetsobj_
 

Detailed Description

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

Definition at line 24 of file RegionsSeedingHitSets.h.

Constructor & Destructor Documentation

◆ RegionFiller() [1/2]

RegionsSeedingHitSets::RegionFiller::RegionFiller ( )
inline

Definition at line 26 of file RegionsSeedingHitSets.h.

26 : obj_(nullptr) {}

◆ RegionFiller() [2/2]

RegionsSeedingHitSets::RegionFiller::RegionFiller ( RegionsSeedingHitSets obj)
inlineexplicit

Definition at line 27 of file RegionsSeedingHitSets.h.

◆ ~RegionFiller()

RegionsSeedingHitSets::RegionFiller::~RegionFiller ( )
inline

Definition at line 29 of file RegionsSeedingHitSets.h.

References RegionsSeedingHitSets::hitSets_, obj_, and RegionsSeedingHitSets::regions_.

29  {
30  if (obj_)
31  obj_->regions_.back().setLayerSetsEnd(obj_->hitSets_.size());
32  }
std::vector< SeedingHitSet > hitSets_
Container of regions, each element has indices pointing to hitSets_.
std::vector< RegionIndex > regions_

Member Function Documentation

◆ emplace_back()

template<typename... Args>
void RegionsSeedingHitSets::RegionFiller::emplace_back ( Args &&...  args)
inline

Definition at line 37 of file RegionsSeedingHitSets.h.

References writedatasetfile::args, RegionsSeedingHitSets::hitSets_, and obj_.

37  {
38  obj_->hitSets_.emplace_back(std::forward<Args>(args)...);
39  }
std::vector< SeedingHitSet > hitSets_
Container of regions, each element has indices pointing to hitSets_.

◆ valid()

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

Definition at line 34 of file RegionsSeedingHitSets.h.

References obj_.

34 { return obj_ != nullptr; }

Member Data Documentation

◆ obj_

RegionsSeedingHitSets* RegionsSeedingHitSets::RegionFiller::obj_
private

Definition at line 42 of file RegionsSeedingHitSets.h.

Referenced by emplace_back(), valid(), and ~RegionFiller().