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.

27 : obj_(obj) {}

◆ ~RegionFiller()

RegionsSeedingHitSets::RegionFiller::~RegionFiller ( )
inline

Definition at line 29 of file RegionsSeedingHitSets.h.

29  {
30  if (obj_)
31  obj_->regions_.back().setLayerSetsEnd(obj_->hitSets_.size());
32  }

References RegionsSeedingHitSets::hitSets_, obj_, and RegionsSeedingHitSets::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.

37  {
38  obj_->hitSets_.emplace_back(std::forward<Args>(args)...);
39  }

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

◆ valid()

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

Definition at line 34 of file RegionsSeedingHitSets.h.

34 { return obj_ != nullptr; }

References obj_.

Member Data Documentation

◆ obj_

RegionsSeedingHitSets* RegionsSeedingHitSets::RegionFiller::obj_
private

Definition at line 42 of file RegionsSeedingHitSets.h.

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

writedatasetfile.args
args
Definition: writedatasetfile.py:18
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
RegionsSeedingHitSets::regions_
std::vector< RegionIndex > regions_
Definition: RegionsSeedingHitSets.h:85
RegionsSeedingHitSets::RegionFiller::obj_
RegionsSeedingHitSets * obj_
Definition: RegionsSeedingHitSets.h:42
RegionsSeedingHitSets::hitSets_
std::vector< SeedingHitSet > hitSets_
Container of regions, each element has indices pointing to hitSets_.
Definition: RegionsSeedingHitSets.h:86