CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
hitTripletEDProducerT::ImplSeedingHitSets Class Reference

#include <HitTripletEDProducerT.h>

Public Member Functions

auto beginRegion (const TrackingRegion *region, LayerHitMapCache *ptr)
 
void fill (RegionsSeedingHitSets::RegionFiller &filler, const OrderedHitTriplets &triplets)
 
 ImplSeedingHitSets ()
 
void put (edm::Event &iEvent)
 
void putEmpty (edm::Event &iEvent)
 
void reserve (size_t regionsSize, size_t localRAupper)
 

Static Public Member Functions

static void produces (edm::ProducerBase &producer)
 

Private Attributes

LayerHitMapCache hitCacheTmp_
 
std::unique_ptr< RegionsSeedingHitSetsseedingHitSets_
 

Detailed Description

Definition at line 190 of file HitTripletEDProducerT.h.

Constructor & Destructor Documentation

hitTripletEDProducerT::ImplSeedingHitSets::ImplSeedingHitSets ( )
inline

Definition at line 192 of file HitTripletEDProducerT.h.

192  :
193  seedingHitSets_(std::make_unique<RegionsSeedingHitSets>())
194  {}
std::unique_ptr< RegionsSeedingHitSets > seedingHitSets_

Member Function Documentation

auto hitTripletEDProducerT::ImplSeedingHitSets::beginRegion ( const TrackingRegion region,
LayerHitMapCache ptr 
)
inline

Definition at line 204 of file HitTripletEDProducerT.h.

204  {
206  return std::make_tuple(&hitCacheTmp_, seedingHitSets_->beginRegion(region));
207  }
std::unique_ptr< RegionsSeedingHitSets > seedingHitSets_
void hitTripletEDProducerT::ImplSeedingHitSets::fill ( RegionsSeedingHitSets::RegionFiller filler,
const OrderedHitTriplets triplets 
)
inline

Definition at line 209 of file HitTripletEDProducerT.h.

References RegionsSeedingHitSets::RegionFiller::emplace_back().

209  {
210  for(const auto& trpl: triplets) {
211  filler.emplace_back(trpl.inner(), trpl.middle(), trpl.outer());
212  }
213  }
static void hitTripletEDProducerT::ImplSeedingHitSets::produces ( edm::ProducerBase producer)
inlinestatic

Definition at line 196 of file HitTripletEDProducerT.h.

References edm::ProductRegistryHelper::produces().

196  {
197  producer.produces<RegionsSeedingHitSets>();
198  }
TypeLabelItem const & produces()
declare what type of product will make and with which optional label
void hitTripletEDProducerT::ImplSeedingHitSets::put ( edm::Event iEvent)
inline

Definition at line 215 of file HitTripletEDProducerT.h.

215  {
216  seedingHitSets_->shrink_to_fit();
217  putEmpty(iEvent);
218  }
std::unique_ptr< RegionsSeedingHitSets > seedingHitSets_
void hitTripletEDProducerT::ImplSeedingHitSets::putEmpty ( edm::Event iEvent)
inline

Definition at line 219 of file HitTripletEDProducerT.h.

References eostools::move(), and edm::Event::put().

219  {
220  iEvent.put(std::move(seedingHitSets_));
221  }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:122
std::unique_ptr< RegionsSeedingHitSets > seedingHitSets_
def move(src, dest)
Definition: eostools.py:510
void hitTripletEDProducerT::ImplSeedingHitSets::reserve ( size_t  regionsSize,
size_t  localRAupper 
)
inline

Definition at line 200 of file HitTripletEDProducerT.h.

200  {
201  seedingHitSets_->reserve(regionsSize, localRAupper);
202  }
std::unique_ptr< RegionsSeedingHitSets > seedingHitSets_

Member Data Documentation

LayerHitMapCache hitTripletEDProducerT::ImplSeedingHitSets::hitCacheTmp_
private

Definition at line 225 of file HitTripletEDProducerT.h.

std::unique_ptr<RegionsSeedingHitSets> hitTripletEDProducerT::ImplSeedingHitSets::seedingHitSets_
private

Definition at line 224 of file HitTripletEDProducerT.h.