CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::ProducesCollector producesCollector)
 

Private Attributes

LayerHitMapCache hitCacheTmp_
 
std::unique_ptr
< RegionsSeedingHitSets
seedingHitSets_
 

Detailed Description

Definition at line 205 of file HitTripletEDProducerT.h.

Constructor & Destructor Documentation

hitTripletEDProducerT::ImplSeedingHitSets::ImplSeedingHitSets ( )
inline

Definition at line 207 of file HitTripletEDProducerT.h.

207 : seedingHitSets_(std::make_unique<RegionsSeedingHitSets>()) {}
std::unique_ptr< RegionsSeedingHitSets > seedingHitSets_

Member Function Documentation

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

Definition at line 215 of file HitTripletEDProducerT.h.

References LayerHitMapCache::clear(), hitCacheTmp_, and seedingHitSets_.

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

Definition at line 220 of file HitTripletEDProducerT.h.

References RegionsSeedingHitSets::RegionFiller::emplace_back().

220  {
221  for (const auto& trpl : triplets) {
222  filler.emplace_back(trpl.inner(), trpl.middle(), trpl.outer());
223  }
224  }
static void hitTripletEDProducerT::ImplSeedingHitSets::produces ( edm::ProducesCollector  producesCollector)
inlinestatic

Definition at line 209 of file HitTripletEDProducerT.h.

References edm::ProducesCollector::produces().

209  {
210  producesCollector.produces<RegionsSeedingHitSets>();
211  }
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
void hitTripletEDProducerT::ImplSeedingHitSets::put ( edm::Event iEvent)
inline

Definition at line 226 of file HitTripletEDProducerT.h.

References putEmpty(), and seedingHitSets_.

226  {
227  seedingHitSets_->shrink_to_fit();
228  putEmpty(iEvent);
229  }
std::unique_ptr< RegionsSeedingHitSets > seedingHitSets_
void hitTripletEDProducerT::ImplSeedingHitSets::putEmpty ( edm::Event iEvent)
inline

Definition at line 230 of file HitTripletEDProducerT.h.

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

Referenced by put().

230 { iEvent.put(std::move(seedingHitSets_)); }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
std::unique_ptr< RegionsSeedingHitSets > seedingHitSets_
def move
Definition: eostools.py:511
void hitTripletEDProducerT::ImplSeedingHitSets::reserve ( size_t  regionsSize,
size_t  localRAupper 
)
inline

Definition at line 213 of file HitTripletEDProducerT.h.

References seedingHitSets_.

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

Member Data Documentation

LayerHitMapCache hitTripletEDProducerT::ImplSeedingHitSets::hitCacheTmp_
private

Definition at line 234 of file HitTripletEDProducerT.h.

Referenced by beginRegion().

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

Definition at line 233 of file HitTripletEDProducerT.h.

Referenced by beginRegion(), put(), putEmpty(), and reserve().