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

RegionsSeedingHitSets::RegionFiller::RegionFiller ( )
inline

Definition at line 26 of file RegionsSeedingHitSets.h.

Referenced by RegionsSeedingHitSets::beginRegion(), and RegionsSeedingHitSets::dummyFiller().

26 : obj_(nullptr) {}
RegionsSeedingHitSets::RegionFiller::RegionFiller ( RegionsSeedingHitSets obj)
inlineexplicit

Definition at line 27 of file RegionsSeedingHitSets.h.

27 : obj_(obj) {}
RegionsSeedingHitSets::RegionFiller::~RegionFiller ( )
inline

Definition at line 29 of file RegionsSeedingHitSets.h.

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

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

Member Function Documentation

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

Definition at line 36 of file RegionsSeedingHitSets.h.

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

Referenced by hitTripletEDProducerT::ImplSeedingHitSets::fill().

36  {
37  obj_->hitSets_.emplace_back(std::forward<Args>(args)...);
38  }
std::vector< SeedingHitSet > hitSets_
Container of regions, each element has indices pointing to hitSets_.
bool RegionsSeedingHitSets::RegionFiller::valid ( ) const
inline

Definition at line 33 of file RegionsSeedingHitSets.h.

References obj_.

33 { return obj_ != nullptr; }

Member Data Documentation

RegionsSeedingHitSets* RegionsSeedingHitSets::RegionFiller::obj_
private

Definition at line 40 of file RegionsSeedingHitSets.h.

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